claude-collaborator
Enables multi-AI collaboration with Claude and GLM for C# codebases, providing auto-learning, persistent memory, and creative brainstorming to assist development.
README
claude-collaborator
Multi-AI MCP server for C# codebases. Claude + GLM working together.
Philosophy
Claude is the architect. GLM is the creative sidekick.
- Claude (the Boss): Makes decisions, directs work, synthesizes information
- GLM (the Sidekick): Explores alternatives, challenges assumptions, offers fresh perspectives
GLM is configured for creativity and deep thinking — it considers multiple angles and unconventional ideas. Claude evaluates these insights and makes the final call.
"The enemy of art is the absence of limitations." — GLM explores the space; Claude finds the best path.
Features
- Auto-Learning: Proactively captures knowledge during work — patterns, workarounds, preferences, architecture insights
- Two-AI Collaboration: GLM brainstorms creative approaches; Claude evaluates and decides
- Persistent Memory: Semantic vector memory that persists across sessions
- GLM Auto-Enrich: GLM automatically provides deeper insights on learnings and architecture analysis in the background
- Context Management: Smart context tracking with automatic compaction
- Pattern Discovery: Find similar code by concept, lookup codebase conventions
What This Server Does (and Doesn't Do)
This server focuses on memory, learning, and two-AI collaboration. It does NOT provide semantic code navigation — use a Roslyn-based MCP server for find-references, go-to-definition, rename, etc.
| This server | Roslyn-based MCP server |
|---|---|
| Learn & remember across sessions | Find references |
| Semantic memory search | Go to definition |
| GLM brainstorm / risk check / alternatives | Find implementations |
| Find similar code by concept | Rename symbol |
| Lookup codebase conventions | Extract method |
| Session & task tracking | Diagnostics & code fixes |
Installation
pip install claude-collaborator
Or install from source with all extras:
git clone https://github.com/coreeye/claude-collaborator-mcp.git
cd claude-collaborator-mcp
pip install -e ".[all]"
Quick Start
Claude Code (Recommended)
Register globally:
claude mcp add --scope user claude-collaborator -- python -u -m claude_collaborator.server
Or project-only:
claude mcp add --scope project claude-collaborator -- python -u -m claude_collaborator.server
Windows note: Always invoke
python(or the absolute path topython.exe) directly. Do not use thepylauncher — it forwards stdio through a parent process and adds a buffer layer that can hang tool-call responses indefinitely. The-uflag, plusPYTHONUNBUFFERED=1in the env block, ensures the server's stdout is never buffered. See docs/configuration.md for the full env recommendation and troubleshooting.
Configure GLM API Key
# Windows
setx GLM_API_KEY "your_api_key_here"
# Linux/macOS
echo 'export GLM_API_KEY=your_api_key_here' >> ~/.bashrc
Or use a .env file in the project root:
GLM_API_KEY=your_api_key_here
GLM_MODEL=glm-5.1
Available Tools
Codebase Management
switch_codebase- Switch to a different codebaselist_codebases- Discover codebases (.sln/.git) in a directoryget_config- View current configuration
Auto-Learning
learn- Record observations during work (auto-categorized, deduplicated, GLM-enriched)session_learn- Capture session learnings in batch (GLM-enriched)
Memory
memory_save- Save findings for future sessionsmemory_search- Search by keywordsmemory_semantic_search- Search by meaning (semantic similarity)memory_get- Retrieve a specific topicmemory_status/memory_vector_stats- View statistics
Context Management
context_retrieve- Retrieve relevant context for a querycontext_offload- Manually trigger context offload to memorycontext_stats- View context tracking statistics
Session & Task Tracking
session_status- View current session statetask_start/task_update/task_status- Track long-running tasks
Pattern Discovery & Analysis
find_similar_code- Find code patterns by concept descriptionlookup_convention- Learn codebase conventions from examplesget_file_summary- Quick file overview with complexity hints
GLM Collaboration (requires API key)
brainstorm- GLM thinks divergently — unconventional approaches, hidden trade-offsget_alternative- Get alternative approaches for comparisonrisk_check- Identify potential risks before changessummarize_large_file- GLM summarizes large files to save context
GLM Auto-Enrich
GLM automatically enriches certain tool results in the background:
| Tool | What GLM adds |
|---|---|
learn |
Deeper pattern extraction from observations |
session_learn |
Recurring themes and knowledge gaps |
find_similar_code |
Pattern comparison and best approach analysis |
lookup_convention |
Whether conventions should evolve |
Enriched insights are stored in vector memory for future semantic search.
Configuration
See docs/configuration.md for full details.
Key Settings
| Option | Default | Description |
|---|---|---|
codebase_path |
auto-detected | Path to C# solution |
glm_api_key |
(none) | GLM API key |
glm_model |
glm-5.1 |
GLM model to use (glm-5.2 is newer but needs API entitlement) |
embedding_model |
all-MiniLM-L6-v2 |
Embedding model for semantic search |
auto_glm_enrich |
true |
Enable background GLM enrichment |
CLAUDE.md Setup (Optional)
For richer proactive behavior, add guidance to your CLAUDE.md:
# Global (all projects)
cp docs/CLAUDE.md.example ~/.claude/CLAUDE.md
See docs/CLAUDE.md.example for the template.
Development
pip install -e ".[all]"
python -m pytest tests/ -v -s
License
MIT License - see LICENSE for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.