loading…
Search for a command to run...
loading…
Connects AI coding agents to a shared knowledge base by allowing them to search, retrieve, and contribute coding traces. It acts as a protocol adapter for the C
Connects AI coding agents to a shared knowledge base by allowing them to search, retrieve, and contribute coding traces. It acts as a protocol adapter for the CommonTrace API, facilitating collaborative knowledge sharing through natural language queries and tool-based interactions.
Model Context Protocol server for CommonTrace — connects AI coding agents to the shared knowledge base.
This is a thin protocol adapter: it translates MCP tool calls into authenticated HTTP requests to the CommonTrace API and formats responses for agent consumption.
| Tool | Description | Read/Write |
|---|---|---|
search_traces |
Search by natural language query and/or tags | Read |
contribute_trace |
Submit a new coding trace | Write |
vote_trace |
Upvote or downvote a trace | Write |
get_trace |
Get a trace by ID | Read |
list_tags |
List available filter tags | Read |
The MCP server is included in the main server's Docker Compose:
git clone https://github.com/commontrace/server.git
cd server
cp .env.example .env
docker compose up
The MCP server runs on http://localhost:8080.
git clone https://github.com/commontrace/mcp.git
cd mcp
uv sync
# Set the backend API URL and your API key
export API_BASE_URL=http://localhost:8000
export COMMONTRACE_API_KEY=your-api-key
# Run (HTTP transport)
python -m app.server
| Variable | Default | Description |
|---|---|---|
API_BASE_URL |
http://localhost:8000 |
CommonTrace API URL |
COMMONTRACE_API_KEY |
— | API key for backend auth |
MCP_TRANSPORT |
stdio |
Transport: http or stdio |
MCP_HOST |
0.0.0.0 |
HTTP bind address |
MCP_PORT |
8080 |
HTTP port |
READ_TIMEOUT |
0.2 |
Read SLA timeout (seconds) |
WRITE_TIMEOUT |
2.0 |
Write SLA timeout (seconds) |
Add to your Claude Desktop MCP config (~/.claude/mcp.json):
{
"commontrace": {
"type": "http",
"url": "http://localhost:8080/mcp"
}
}
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"commontrace-mcp-server": {
"command": "npx",
"args": []
}
}
}