contextmgr-mcp
Documentation
Context Manager MCP Server
A Model Context Protocol (MCP) server implementation for managing development context and workflow.
Features
- Socket-based transport with reliable message framing
- Full JSON-RPC 2.0 protocol support
- Session management with capability negotiation
- Extensible tool registry system
- Project, workpackage, and task management
- Checkpoint and restore functionality
- QA review workflow support
Initial Setup
# Install dependencies
npm install
# First-time build
npm run buildUsage
Starting the Server
# 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 devDevelopment Mode
# 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 startClean Start
If you encounter any issues, you can try a clean build:
# Remove build artifacts
rm -rf dist/
# Reinstall dependencies
npm ci
# Rebuild the project
npm run build
# Start in development mode
npm run devArchitecture
Core Components
1. Message Framing
2. Transport Layer
3. Session Management
4. Tool Registry
Tools
1. Project Management
2. Work Package Management
3. Task Management
4. QA Tools
Configuration
Environment variables:
- `DEBUG`: Enable debug logging (0/1)
- `MCP_PORT`: Server port (default: 44557)
Protocol
The server implements the Model Context Protocol with 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;
};
}Message Flow
1. Client connects via TCP
2. Client sends initialize request
3. Server responds with capabilities
4. Normal message exchange begins
5. Client can shutdown/exit
Development
See Initial Setup and Development Mode sections above.
Contributing
1. Fork the repository
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Create a Pull Request
License
ISC License
Frequently asked questions
What is contextmgr-mcp?
contextmgr-mcp is a Model Context Protocol (MCP) server listed in the TrackMCP directory.
How do I install contextmgr-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is contextmgr-mcp open source?
Yes — it is hosted on GitHub at https://github.com/docherty/contextmgr-mcp and has 3 stars.
Related MCP tools
A model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
Web search using free google search (NO API KEYS REQUIRED)
A CLI inspector for the Model Context Protocol
An experiment in software planning using MCP
Adb-mcp is a proof of concept project to enabled AI control of Adobe tools (Adobe Photoshop and Adobe Premiere) by providing an interface to LLMs via the MCP...
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP