Skip to main content
Glama

RBT Document Editor

by leo7nel23

RBT MCP Server

MCP Server for editing RBT documents with partial operations. Reduces token consumption by 80-95% compared to full file read/write operations.

๐ŸŽฏ Key Features

  • Token Optimization: 80-95% reduction in LLM token usage

  • Structured Operations: Edit specific sections/blocks without loading entire documents

  • Smart Caching: LRU + TTL cache for frequently accessed documents

  • TASK Fuzzy Search: Find TASK files by index (e.g., "001" matches "TASK-001-PathResolver.md")

  • Template-based Creation: Auto-fill placeholders (project-id, feature-id, date)

  • 13 MCP Tools: Complete CRUD operations for RBT documents

๐Ÿ“ฆ Installation

Option 1: Install from source (uv)

# Clone repository git clone https://github.com/yourusername/KnowledgeSmith.git cd KnowledgeSmith # Install with uv uv pip install -e .

Option 2: Direct installation

uv pip install rbt-mcp-server

๐Ÿš€ Quick Start

1. Configure Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{ "mcpServers": { "rbt-document-editor": { "type": "stdio", "command": "rbt-mcp-server", "env": { "RBT_ROOT_DIR": "/path/to/your/documents" } } } }

Or use full uv command:

{ "mcpServers": { "rbt-document-editor": { "type": "stdio", "command": "uv", "args": ["run", "rbt-mcp-server"], "env": { "RBT_ROOT_DIR": "/path/to/your/documents" } } } }

2. Set Environment Variable

export RBT_ROOT_DIR=/path/to/your/documents

3. Test the Server

rbt-mcp-server

๐Ÿ“š Available MCP Tools

  1. get_outline - Get document structure (saves 80% tokens)

  2. read_content - Read specific section/block (saves 90% tokens)

  3. update_info - Update status/dependencies

  4. update_section_summary - Update section summary

  5. create_section - Create new sub-section

  6. create_block - Create paragraph/code/list/table

  7. update_block - Update block content

  8. delete_block - Delete block

  9. append_list_item - Add item to list

  10. update_table_row - Update table row

  11. append_table_row - Add table row

  12. create_document - Create from template

  13. clear_cache - Clear document cache

See rbt_mcp_server/README.md for detailed usage.

๐Ÿ“Š Token Savings

Operation

Traditional

MCP

Savings

Read structure

4,000

800

80%

Update status

8,000

300

96%

Add list item

8,000

1,000

88%

Complete TASK

44,000

3,000

93%

๐Ÿงช Development

Install development dependencies:

uv sync --dev

Run tests:

RBT_ROOT_DIR=/test/root uv run pytest -v

Test coverage:

RBT_ROOT_DIR=/test/root uv run pytest --cov=rbt_mcp_server --cov-report=html

๐Ÿ“ License

MIT License

๐Ÿค Contributing

Contributions welcome! Please open an issue or submit a pull request.

Deploy Server
-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

Enables efficient editing of RBT documents with structured operations that read and modify specific sections or blocks. Reduces LLM token consumption by 80-95% compared to full file operations through smart caching and partial document access.

  1. ๐ŸŽฏ Key Features
    1. ๐Ÿ“ฆ Installation
      1. Option 1: Install from source (uv)
      2. Option 2: Direct installation
    2. ๐Ÿš€ Quick Start
      1. 1. Configure Claude Desktop
      2. 2. Set Environment Variable
      3. 3. Test the Server
    3. ๐Ÿ“š Available MCP Tools
      1. ๐Ÿ“Š Token Savings
        1. ๐Ÿงช Development
          1. ๐Ÿ“ License
            1. ๐Ÿค Contributing

              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/leo7nel23/KnowkedgeSmith-MCP'

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