MCP.so
登录

MCP (Model Context Protocol) Server

@kritsanan1

关于 MCP (Model Context Protocol) Server

暂无概览

基本信息

分类

其他

运行时

node

传输方式

stdio

发布者

kritsanan1

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-server-kritsanan1": {
      "command": "node",
      "args": [
        "server.js"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP (Model Context Protocol) Server?

A simple server implementation that provides WebSocket real‑time communication and REST API endpoints, built with Node.js. It is intended for developers who need a lightweight server for testing or building applications that require both HTTP and WebSocket support.

How to use MCP (Model Context Protocol) Server?

Install Node.js v14+, clone the repository, run npm install, then start with node server.js. The server runs on port 3000 by default; set the PORT environment variable to change the port.

Key features of MCP (Model Context Protocol) Server

  • WebSocket server for real‑time communication
  • REST API endpoints (status and echo)
  • Static file serving
  • CORS support

Use cases of MCP (Model Context Protocol) Server

  • Quickly testing WebSocket connections with a built‑in test page
  • Building prototypes that need both HTTP and WebSocket on the same port
  • Providing an echo service for debugging client‑server communication

FAQ from MCP (Model Context Protocol) Server

What are the prerequisites?

Node.js version 14 or later and npm.

How can I change the port?

Set the PORT environment variable before starting the server.

What endpoints are available?

GET / returns server status; POST /api/echo echoes a JSON message.

How do I connect via WebSocket?

Use ws://localhost:3000 (or your custom port).

How can I test the server?

Open http://localhost:3000 in a browser to access the built‑in test page for WebSocket and REST API testing.

评论

其他 分类下的更多 MCP 服务器