{
"mcpServers": {
"mcp-server-ts": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
一个同时支持stdio,streamableHttp和sse的mcp框架,ts语言的
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 113 days ago. 6 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for Mcp Server Ts and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
目前MCP服务在AI方向的业务使用频率很高,但随着业务的加深,发现存在以下痛点: 1.不同平台对MCP服务协议要求不同,有支持streamableHttp,有仅支持sse的。相同功能重复开发,浪费时间成本 2.有些研发人员并不了解MCP,现学现开发会让研发周期加长,时间成本耗费过多 为了解决不同平台不同要求,降低研发人员开发成本,本人提出一个框架,同时支持stdio,streamableHttpless和sse三种模式,实现一次开发实现三种模式
process.env.MCP_BASE_PATH的路径请求,如果没有配置,默认/mcp
-- sse.ts: sse的配置路径,具体为process.env.MCP_BASE_PATH的路径请求,如果没有配置,默认/mcp
-- tools: mcp的工具
-- index.ts: 注册工具
-- mockFunc.ts: 模拟一个工具写法 - 这部分需要根据业务开发
-- cli.ts: 命令行解析工具
-- index.ts: 总入口
-- server.ts: 创建Mcp服务
-- sse.ts: 运行sse模式
-- stdio.ts: 运行stdio模式
-- streamableHttp.ts: 运行streamableHttp模式1.启动stdio: npm run start 是默认启动stdio
1.启动StreamableHttp: npm run start:http 是默认启动端口3001
2.更改端口启动StreamableHttp: npm run dev:http 或者 npm run start -- -t http -p 3001 -t httt: 代表启动StreamableHttp -p 3001: 代表启动端口3001
1.cd demo && npm run dev:http // 这个会启动 http://localhost:3001/mcp 这个地址 2.终端curl命令
curl -X POST http://localhost:3001/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "mockfunc",
"arguments": {"desc": "测试参数","desc1": "测试参数"
}
},
"id": 1
}'
1.cd demo && npm run dev:http // 先启动自己服务 2.npm run inspector // 启动inspector工具 3.在URL地址配上自己服务地址
方式和测试StreamableHttp方式 相同,只不过启动是用 npm run start:sse
# 监听特定内网IP(例如:192.168.1.100)
export MCP_HOST=192.168.1.100
export MCP_PORT=3001
# 使用内网域名(可选)
export MCP_DOMAIN=mcp-server.internal.com
# 修改基础路径(可选,默认是 /mcp)
export MCP_BASE_PATH=/api/mcp
MCP_PORT(最高优先级)--portMCP_DOMAIN(最高优先级)MCP_HOST假设你的内网服务器IP是 192.168.1.100,端口是 3001:
基础访问:
http://192.168.1.100:3001/sales
带域名的访问:
http://mcp-server.internal.com/sales
自定义路径:
http://192.168.1.100:3001/api/mcp
1.在 xingyun/bin/control.sh中,这段代码是启动streamableHttpless的,如果需要启动sse,需要改为 npm run start:sse
start(){
npm run start:http
sleep 3
status
}
2.在package.json中 stop的语句是 "stop": "pkill -f \"demo\" || true",这个demo是要根据你自己启动服务的名字相同