MCP服务器

一个用TypeScript编写的最小化MCP服务器,用于基本的网络请求处理和测试响应。

  • by CubixVision
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 cubixvision/mcp-hello-server

使用说明

mcp问候服务器

用TypeScript编写的最小MCP服务器。

设置

  1. 安装依赖项:

    npm install
    
  2. 构建项目(可选,对于已编译的JS):

    npm run build
    

本地运行

启动服务器:

npm start

访问 http://localhost:3000 在您的浏览器中。您应该看到:

Hello from MCP TypeScript server!

测试

运行测试套件:

npm test

这将验证服务器是否正确响应。