使用说明
获取mcp
Node.js获取模型上下文协议(MCP)服务器。
特性
- 流式HTTP客户端/服务器实用程序
- Docker支持(Linux)
- TypeScript代码库
项目结构
LICENSE
package.json
tsconfig.json
docker/
linux/
Dockerfile
src/
config.ts
index.ts
server.ts
stdio.ts
streamable-http.ts
utils.ts
入门指南
先决条件
- Node.js(建议使用v16+)
- npm
安装
npm install
构建
npm run build
跑
node ./dist/index.js
码头工人
Linux的示例Dockerfile在 docker/linux/Dockerfile.
构建Docker镜像:
docker build -f docker/linux/Dockerfile -t fetch-mcp .
配置
编辑.env文件以设置环境变量。
许可证
看 许可证.
贡献
欢迎拉取请求。
作者
安东
