typescript-mcp-server-generator by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill typescript-mcp-server-generator根据以下规范创建一个完整的 TypeScript 模型上下文协议(MCP)服务器:
npm init 初始化并创建 package.json@modelcontextprotocol/sdk、zod@3 以及特定于传输的包"type": "module"tsx 或 广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
ts-nodeMcpServer 类进行高级实现registerTool() 方法title 和 description 字段content 和 structuredContentregisterResource() 添加资源以支持动态 URIregisterPrompt() 添加提示对于 HTTP 服务器:
对于 stdio 服务器:
npm start 或 npx tsx server.ts)npx @modelcontextprotocol/inspectorhttp://localhost:PORT/mcp生成一个完整的、可用于生产的 MCP 服务器,包含全面的文档、类型安全和错误处理。
每周安装量
7.6K
代码仓库
GitHub 星标数
27.0K
首次出现
2026年2月25日
安全审计
安装于
codex7.5K
gemini-cli7.5K
opencode7.4K
cursor7.4K
github-copilot7.4K
kimi-cli7.4K
Create a complete Model Context Protocol (MCP) server in TypeScript with the following specifications:
npm init and create package.json@modelcontextprotocol/sdk, zod@3, and transport-specific packages"type": "module" in package.jsontsx or ts-node for developmentMcpServer class for high-level implementationregisterTool() method with descriptive namestitle and description fieldscontent and structuredContent in resultsregisterResource() with ResourceTemplate for dynamic URIsregisterPrompt() with argument schemasFor HTTP Servers :
For stdio Servers :
npm start or npx tsx server.ts)npx @modelcontextprotocol/inspectorhttp://localhost:PORT/mcpGenerate a complete, production-ready MCP server with comprehensive documentation, type safety, and error handling.
Weekly Installs
7.6K
Repository
GitHub Stars
27.0K
First Seen
Feb 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex7.5K
gemini-cli7.5K
opencode7.4K
cursor7.4K
github-copilot7.4K
kimi-cli7.4K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装