Skip to main content
Glama

ceph-doc-kb

Version-aware, component-scoped Ceph documentation knowledge base. Indexes Ceph RST docs into per-component vector indices with two-tier search (BM25 + semantic via fastembed/FAISS).

Quick Start

# Install
pip install -e .

# Build index from Ceph docs
git clone --depth 1 --branch v20.2.1 --sparse https://github.com/ceph/ceph.git /tmp/ceph-docs
cd /tmp/ceph-docs && git sparse-checkout set doc
cd /path/to/ceph-doc-kb
python3 index_docs.py --docs-path /tmp/ceph-docs/doc --version 20.2.1 --verbose

Related MCP server: Local Search MCP Server

Architecture

  • Component-scoped indices: Each Ceph component (rados, rbd, rgw, cephfs, cephadm) gets its own FAISS index for fast, targeted search

  • Two-tier search: BM25 keyword match for exact terms, fastembed semantic search for conceptual queries

  • Command cross-reference: Instant lookup from any ceph/rbd/rados command to relevant docs

  • Quality scoring: Chunks with code examples, commands, and explanations rank higher

  • Version-aware: Supports multiple Ceph release indices side by side

MCP Server

{
  "mcpServers": {
    "ceph-doc-kb": {
      "command": "python3",
      "args": ["-m", "ceph_doc_kb.server.mcp_server"],
      "cwd": "/path/to/ceph-doc-kb"
    }
  }
}

Tools

Tool

Description

search_docs

Search docs with optional component scoping

search_examples

Search code examples and configs

get_doc_page

Get full doc page content

find_docs_for_command

Instant command-to-doc lookup

list_components

List available components

list_topics

List topics within a component

capabilities

Server capabilities

health

Index health status

REST API

python3 -m ceph_doc_kb.server.rest_api
# http://127.0.0.1:8100/api/search?query=erasure+coding&component=rados

See BOB_INTEGRATION_GUIDE.md for full endpoint reference with curl examples.

VS Code Extension

A VS Code extension is available for interactive documentation search:

cd vscode-extension && npm install
# Install via "Developer: Install Extension from Location..."

Features: search docs (Cmd+Alt+D), search examples (Cmd+Alt+E), find docs for command (Cmd+Alt+F), insert code at cursor.

See vscode-extension/README.md for details.

Agent Integration

Python client for LLM agents (no external dependencies):

from examples.agent_integration import CephDocKBClient

client = CephDocKBClient("http://localhost:8100")
results = client.search_docs("erasure coding", component="rados")

LangChain and CrewAI wrappers included. See BOB_INTEGRATION_GUIDE.md.

Incremental Updates

python3 index_docs.py --update --docs-path /tmp/ceph-docs/doc \
    --repo-path /tmp/ceph-docs --from-version v20.2.1 --to-version v20.2.2

Documentation

Document

Description

SPEC.md

MCP platform contract and entity schema

DEVELOPMENT.md

Architecture, source tree, maintainer guide

BOB_INTEGRATION_GUIDE.md

REST API reference, agent integration, deployment

vscode-extension/README.md

VS Code extension install and usage

Development

pip install -e ".[dev]"
pytest

See DEVELOPMENT.md for architecture details and contributing.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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/pdhiran/ceph-document-kb'

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