claude-collaborator

claude-collaborator

Enables multi-AI collaboration with Claude and GLM for C# codebases, providing auto-learning, persistent memory, and creative brainstorming to assist development.

Category
访问服务器

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 to python.exe) directly. Do not use the py launcher — it forwards stdio through a parent process and adds a buffer layer that can hang tool-call responses indefinitely. The -u flag, plus PYTHONUNBUFFERED=1 in 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 codebase
  • list_codebases - Discover codebases (.sln/.git) in a directory
  • get_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 sessions
  • memory_search - Search by keywords
  • memory_semantic_search - Search by meaning (semantic similarity)
  • memory_get - Retrieve a specific topic
  • memory_status / memory_vector_stats - View statistics

Context Management

  • context_retrieve - Retrieve relevant context for a query
  • context_offload - Manually trigger context offload to memory
  • context_stats - View context tracking statistics

Session & Task Tracking

  • session_status - View current session state
  • task_start / task_update / task_status - Track long-running tasks

Pattern Discovery & Analysis

  • find_similar_code - Find code patterns by concept description
  • lookup_convention - Learn codebase conventions from examples
  • get_file_summary - Quick file overview with complexity hints

GLM Collaboration (requires API key)

  • brainstorm - GLM thinks divergently — unconventional approaches, hidden trade-offs
  • get_alternative - Get alternative approaches for comparison
  • risk_check - Identify potential risks before changes
  • summarize_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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选