MCP状态服务器
一个基于TypeScript的模型上下文协议服务器,实现简单的笔记系统。
快速入门
安装依赖
运行以下命令安装依赖: npm install
构建服务器
构建服务器: npm run build
开发时可以启用自动重建: npm run watch
配置
将服务器配置添加到Claude Desktop配置文件中:
MacOS路径:~/Library/Application Support/Claude/claude_desktop_config.json
Windows路径:%APPDATA%/Claude/claude_desktop_config.json
添加以下内容: { "mcpServers": { "state-server": { "command": "/path/to/state-server/build/index.js" } } }
调试
使用MCP Inspector进行调试: npm run inspector 并访问提供的URL以在浏览器中查看调试工具。