上下文管理器 MCP 服务器
用于管理开发环境和工作流的模型环境协议 (MCP) 服务器实现。
特征
基于套接字的可靠消息框架传输
全面支持 JSON-RPC 2.0 协议
具有能力协商的会话管理
可扩展的工具注册系统
项目、工作包和任务管理
检查点和恢复功能
QA 审查工作流程支持
Related MCP server: CODING DevOps MCP Server
初始设置
# Install dependencies
npm install
# First-time build
npm run build用法
启动服务器
# Development mode (no build required, uses tsx for on-the-fly compilation)
npm run dev
# Production mode (requires build)
npm start
# Start with debug logging
DEBUG=1 npm run dev
# Start on specific port
MCP_PORT=44558 npm run dev开发模式
# Run with hot reloading (preferred during development)
npm run dev
# Watch mode for TypeScript compilation (if you prefer running the compiled version)
npm run watch
# In a separate terminal when using watch mode
npm start全新开始
如果遇到任何问题,您可以尝试全新构建:
# Remove build artifacts
rm -rf dist/
# Reinstall dependencies
npm ci
# Rebuild the project
npm run build
# Start in development mode
npm run dev建筑学
核心组件
消息框架
基于内容长度的协议
可靠的消息边界处理
缓冲区管理
传输层
基于 TCP 套接字的通信
连接管理
事件驱动架构
会话管理
客户端会话跟踪
能力协商
状态持久性
工具注册表
动态工具注册
输入验证
结果格式
工具
项目管理
创建/获取项目
项目检查点
国家恢复
工作包管理
创建/获取工作包
进度追踪
状态更新
任务管理
创建/更新任务
文件更改跟踪
任务检查点
质量保证工具
审核工作流程
修复请求
工作包验收
配置
环境变量:
DEBUG:启用调试日志记录(0/1)MCP_PORT:服务器端口(默认值:44557)
协议
服务器使用 JSON-RPC 2.0 实现模型上下文协议:
interface MCPMessage {
jsonrpc: "2.0";
id: number;
method?: string; // for requests
params?: any; // for requests
result?: any; // for responses
error?: { // for error responses
code: number;
message: string;
data?: any;
};
}消息流
客户端通过 TCP 连接
客户端发送初始化请求
服务器响应功能
开始正常消息交换
客户端可以关机/退出
发展
贡献
分叉存储库
创建你的功能分支
提交你的更改
推送到分支
创建拉取请求
执照
ISC 许可证
This server cannot be installed
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.