Context Manager MCP Server

by docherty
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Used for package management and running scripts for development, building, and production deployment of the MCP server

  • Client session tracking, capability negotiation, and state persistence between interactions

  • Socket-based transport implementation for reliable network communication with connection and event management

上下文管理器 MCP 服务器

用于管理开发环境和工作流的模型环境协议 (MCP) 服务器实现。

特征

  • 基于套接字的可靠消息框架传输
  • 全面支持 JSON-RPC 2.0 协议
  • 具有能力协商的会话管理
  • 可扩展的工具注册系统
  • 项目、工作包和任务管理
  • 检查点和恢复功能
  • QA 审查工作流程支持

初始设置

# 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

建筑学

核心组件

  1. 消息框架
    • 基于内容长度的协议
    • 可靠的消息边界处理
    • 缓冲区管理
  2. 传输层
    • 基于 TCP 套接字的通信
    • 连接管理
    • 事件驱动架构
  3. 会话管理
    • 客户端会话跟踪
    • 能力协商
    • 状态持久性
  4. 工具注册表
    • 动态工具注册
    • 输入验证
    • 结果格式

工具

  1. 项目管理
    • 创建/获取项目
    • 项目检查点
    • 国家恢复
  2. 工作包管理
    • 创建/获取工作包
    • 进度追踪
    • 状态更新
  3. 任务管理
    • 创建/更新任务
    • 文件更改跟踪
    • 任务检查点
  4. 质量保证工具
    • 审核工作流程
    • 修复请求
    • 工作包验收

配置

环境变量:

  • 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; }; }

消息流

  1. 客户端通过 TCP 连接
  2. 客户端发送初始化请求
  3. 服务器响应功能
  4. 开始正常消息交换
  5. 客户端可以关机/退出

发展

请参阅上面的初始设置开发模式部分。

贡献

  1. 分叉存储库
  2. 创建你的功能分支
  3. 提交你的更改
  4. 推送到分支
  5. 创建拉取请求

执照

ISC 许可证

-
security - not tested
A
license - permissive license
-
quality - not tested

模型上下文协议 (MCP) 的服务器实现,用于管理开发工作流程,具有项目管理、任务跟踪和 QA 审查支持等功能。

  1. Features
    1. Initial Setup
      1. Usage
        1. Starting the Server
        2. Development Mode
        3. Clean Start
      2. Architecture
        1. Core Components
        2. Tools
      3. Configuration
        1. Protocol
          1. Message Flow
        2. Development
          1. Contributing
            1. License
              ID: u90kc4so68