文档查询服务

MCP服务器,提供CloudWarriors包的文档和发现功能,使Claude能够查询可用包、获取使用示例并随时发现工具。

  • by cloudwarriors-ai
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 cloudwarriors-ai/mcp-docs

使用说明

@云战士ai/mcp文档

MCP服务器,为CloudWarriors软件包提供文档和发现。使Claude能够随时查询可用包、获取使用示例和发现工具。

这有什么作用

当您使用Claude时,它可以使用此MCP服务器来:

  • 发现套餐 -“我们有什么包来处理大型上下文?”
  • 获取使用信息 -“我如何使用@cloudwarries ai/rlm?”
  • 查找代码模式 -“给我看看断路器模式”

Claude可以立即访问您组织的内部工具知识。

安装

添加到您的Claude设置(~/.claude/settings.json):

{
  "mcpServers": {
    "cloudwarriors": {
      "command": "npx",
      "args": ["@cloudwarriors-ai/mcp-docs"]
    }
  }
}

或全局安装:

npm install -g @cloudwarriors-ai/mcp-docs

可用工具

list_packages

列出所有可用的CloudWarriors软件包。

Claude: [calls list_packages]
→ Returns list of packages with descriptions and capabilities

get_package

获取特定包的详细信息。

Claude: [calls get_package { name: "rlm" }]
→ Returns install command, quick start, examples, config options

搜索包

按关键字或功能搜索包。

Claude: [calls search_packages { capability: "llm" }]
→ Returns packages that work with LLMs

get_pattern

获取可重用的代码模式。

Claude: [calls get_pattern { name: "circuit-breaker" }]
→ Returns pattern description and implementation code

添加新包

编辑 src/data/packages.ts 要添加新的包定义,请执行以下操作:

export const packages: Record<string, Package> = {
  '@cloudwarriors-ai/your-package': {
    name: '@cloudwarriors-ai/your-package',
    version: '1.0.0',
    description: 'What it does',
    install: 'npm install @cloudwarriors-ai/your-package',
    repository: 'https://github.com/cloudwarriors-ai/your-package',
    capabilities: ['capability1', 'capability2'],
    quickStart: {
      import: "import { thing } from '@cloudwarriors-ai/your-package';",
      setup: 'const instance = createThing();',
      usage: 'await instance.doSomething();',
    },
    // ... more fields
  },
};

添加新模式

编辑 src/data/patterns.ts:

export const patterns: Record<string, Pattern> = {
  'your-pattern': {
    name: 'your-pattern',
    description: 'What problem it solves',
    useCase: 'When to use it',
    code: `// Implementation here`,
  },
};

发展

npm install
npm run build
npm start        # Run the MCP server
npm test         # Run tests

许可证

麻省理工学院