Skip to main content
Glama

克劳德服务器 MCP

⚠️重要提示:项目状态⚠️

该项目处于早期开发阶段(v0.1.0),尚未准备好投入生产使用。目前正在进行重大重写,以解决几个关键问题。请查看“问题”页面,了解当前的限制和计划的改进。

我们建议等待稳定版本(v0.2.0+)发布后再在任何关键工作流程中使用它。

模型上下文协议 (MCP) 服务器为 Claude 提供复杂的上下文管理功能,支持跨会话的持久上下文、特定于项目的上下文组织和对话连续性。

当前限制

  • 服务器目前与 Claude Desktop 以外的 MCP 客户端存在兼容性问题

  • 如果没有特定的项目 ID,上下文列表功能将受到限制

  • 安全功能很少,尚未投入生产

  • 错误处理是基本的,可能无法提供有用的指导

  • 尚未建立测试基础设施

Related MCP server: MCP Memory Server

发展路线图

该项目正在积极改进中。即将推出的主要增强功能包括:

  1. 稳定性改进——修复主目录解析和上下文列表的核心问题

  2. 增强的错误处理——更好的错误消息和恢复机制

  3. 安全增强——输入验证、路径清理和数据保护

  4. 高级上下文管理——版本控制、搜索和更好的组织

如需更详细的路线图,请参阅我们的综合分析分支。

特征

  • 项目上下文管理

    • 层次化上下文组织

    • 亲子关系

    • 上下文之间的交叉引用

    • 项目特定的元数据

  • 对话连续性

    • 基于会话的上下文跟踪

    • 对话链

    • 元数据丰富的上下文存储

    • 灵活的标记系统

  • 高效存储

    • 有组织的目录结构

    • 基于 JSON 的存储

    • 快速查找索引

    • 异步操作

安装

服务器会自动在您的 Claude 桌面应用的 MCP 设置中配置。所有上下文都存储在~/.claude/中,以便更好地组织:

~/.claude/
├── contexts/           # General conversation contexts
├── projects/          # Project-specific contexts
└── context-index.json # Quick lookup index

工具

项目上下文管理

// Save project context
use_mcp_tool({
  server_name: "claude-server",
  tool_name: "save_project_context",
  arguments: {
    id: "feature-design-v1",
    projectId: "my-project",
    content: "Design discussion...",
    parentContextId: "requirements-v1",
    references: ["api-spec-v1"],
    tags: ["design"],
    metadata: { status: "in-progress" }
  }
});

对话管理

// Save conversation context
use_mcp_tool({
  server_name: "claude-server",
  tool_name: "save_conversation_context",
  arguments: {
    id: "chat-2024-01-01",
    sessionId: "session-123",
    content: "Discussion content...",
    continuationOf: "previous-chat-id",
    tags: ["meeting"]
  }
});

上下文检索

// Get context
use_mcp_tool({
  server_name: "claude-server",
  tool_name: "get_context",
  arguments: {
    id: "feature-design-v1",
    projectId: "my-project"
  }
});

// List contexts
use_mcp_tool({
  server_name: "claude-server",
  tool_name: "list_contexts",
  arguments: {
    projectId: "my-project",
    tag: "design",
    type: "project"
  }
});

文档

发展

  1. 克隆存储库

  2. 安装依赖项:

    npm install
  3. 构建服务器:

    npm run build
  4. 服务器将构建到build/index.js

配置

服务器通过 Claude 桌面应用程序的配置文件进行配置: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "claude-server": {
      "command": "node",
      "args": ["/path/to/claude-server/build/index.js"]
    }
  }
}

贡献

欢迎贡献!请随时提交问题和拉取请求。

执照

麻省理工学院

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidteren/claude-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server