A
securityA
licenseA
qualityA production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.
Last updated -
1
7
12
JavaScript
MIT License
Built with TypeScript for type-safe development, allowing creation of robust MCP tools with proper typing and improved code reliability.
Integrates with Vitest for testing the MCP server functionality, enabling test-driven development of the note management capabilities.
一个简单的 TypeScript 模板,用于构建具有基本 CRUD 操作的模型上下文协议 (MCP) 服务器。此模板为创建返回 JSON 响应的 MCP 工具奠定了基础。
该模板包含以下 MCP 工具:
getNote
:通过 ID 检索注释getAllNotes
:获取所有笔记createNote
:创建新笔记updateNote
:更新现有注释deleteNote
:通过 ID 删除注释使用以下命令运行测试:
或者观看模式:
您可以使用此模板作为您自己的 MCP 服务器的起点,通过修改src/server.ts
中的工具来满足您的需求。
You must be authenticated.
用于构建模型上下文协议服务器的 TypeScript 模板,使用 JSON 响应实现基本的笔记记录 CRUD 操作。