Ceph Command Knowledge Base MCP Server
Enables AI agents to verify Ceph CLI commands, config parameters, and review test scripts using a pre-generated knowledge base.
README
Ceph Command Knowledge Base
Verified knowledge base of 1,254 Ceph CLI commands and 2,660 config parameters for Ceph 20.2.1 (Tentacle). Ships pre-generated — no Ceph cluster needed to use.
Exposes an MCP server and REST API so AI agents can verify commands, configs, and review test scripts before generating automation. Eliminates command hallucinations.
Setup
1. Clone and install
git clone https://github.com/pdhiran/ceph-command-kb.git
cd ceph-command-kb
pip install -e .
2. Connect your agent
Choose the integration that matches your agent:
Cursor — add to ~/.cursor/mcp.json:
{
"mcpServers": {
"ceph-cmd-kb": {
"command": "python3",
"args": ["-m", "ceph_command_kb.server.mcp_server", "--kb-path", "/path/to/ceph-command-kb/knowledge/ceph-20.2.1-tentacle"],
"cwd": "/path/to/ceph-command-kb"
}
}
}
Restart Cursor. The MCP server starts automatically.
Claude Desktop — start the server, then add to claude_desktop_config.json:
python -m ceph_command_kb.server.mcp_server --transport sse --port 8080
{
"mcpServers": {
"ceph-cmd-kb": { "url": "http://localhost:8080/sse" }
}
}
Continue / Cline / Windsurf — start the server and point to the SSE endpoint:
python -m ceph_command_kb.server.mcp_server --transport sse --port 8080
Connect to http://localhost:8080/sse in the tool's MCP settings.
IBM watsonx / IBM Bob / LangChain / CrewAI / CI pipelines — use the REST API:
python -m ceph_command_kb.server.rest_api --host 0.0.0.0 --port 9090
# Verify a command
curl -X POST http://localhost:9090/api/verify_command \
-H "Content-Type: application/json" \
-d '{"command": "ceph osd pool create"}'
# Verify a config parameter
curl -X POST http://localhost:9090/api/verify_config \
-H "Content-Type: application/json" \
-d '{"name": "osd_pool_default_size"}'
# Search commands
curl -X POST http://localhost:9090/api/search_commands \
-H "Content-Type: application/json" \
-d '{"query": "nfs cluster create"}'
# Review a test script
curl -X POST http://localhost:9090/api/review_test \
-H "Content-Type: application/json" \
-d '{"script_content": "ceph osd pool create mypool 32\nrbd create img --size 1024"}'
# Health check
curl http://localhost:9090/health
Additional integration guides:
- VS Code Extension — Inline command verification, search, and script review for VS Code / Bob users
- BOB_INTEGRATION_GUIDE.md — REST API integration guide with deployment options
- examples/bob_agent_integration.py — Ready-to-use Python client and LangChain/CrewAI tools
3. Use it
Once connected, agents automatically verify Ceph commands against the KB. You can also ask directly:
- "Verify the command
ceph osd pool create --size 3" - "What rbd commands are available for mirroring?"
- "Show me the default value of
osd_pool_default_size" - "Review this test file for issues"
Available Tools
Command Verification (12 tools)
| Tool | Purpose |
|---|---|
verify_command |
Verify command + flags + arguments exist |
find_command |
Look up a command by exact name |
search_commands |
Search across names and descriptions |
list_subcommands |
List subcommands under a prefix |
search_flag |
Find which commands accept a flag |
search_argument |
Find commands by argument name |
get_help |
Get parsed help metadata |
get_raw_help |
Get original help text |
get_examples |
Get usage examples |
list_versions |
List available KB versions |
find_binary |
List all commands for a binary |
search_keyword |
Search by keyword |
Config Verification (4 tools)
| Tool | Purpose |
|---|---|
verify_config |
Verify config exists, get type/default/constraints |
search_config |
Search config parameters by name or description |
get_config_help |
Get full config metadata |
list_configs_by_section |
List all configs for a subsystem (e.g., osd, rgw) |
Test Validation (2 tools)
| Tool | Purpose |
|---|---|
validate_script |
Quick check — extract and verify commands |
review_test |
Full review — verification, flags, cleanup, risk, duplicates |
Supported Ceph Binaries
ceph, rbd, rados, cephadm, ceph-volume, ceph-authtool, ceph-bluestore-tool, ceph-objectstore-tool, crushtool, monmaptool, osdmaptool
Further Documentation
- Development Guide — architecture, project structure, adding binaries, design decisions, maintainer guide
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。