{
  "markdown": "# mcp-rfc-editor\n\nmcp-name: io.github.daedalus/mcp-rfc-editor\n\nAn MCP (Model Context Protocol) server for editing RFC TXT documents using the `rfc-editor` Python library.\n\n## Installation\n\n```bash\npip install mcp-rfc-editor\n```\n\n## Usage\n\n### CLI\n\n```bash\npython -m mcp_rfc_editor\n```\n\n### Programmatic\n\n```python\nfrom mcp_rfc_editor import main\nmain()\n```\n\n## MCP Tools\n\nThe server exposes the following tools:\n\n- `load_rfc` - Load and parse an RFC TXT file (creates session)\n- `download_rfc` - Download an RFC from rfc-editor by ID (creates session)\n- `create_rfc` - Create a new empty RFC document (creates session)\n- `get_document` - Get the current document from session context\n- `save_rfc` - Save an RFC document to TXT format\n- `set_title` - Set the document title\n- `set_abstract` - Set the document abstract\n- `add_section` - Add a new section\n- `update_section` - Update an existing section\n- `delete_section` - Delete a section\n- `list_sections` - List all sections in the document\n- `set_copyright` - Set copyright notice\n- `set_authors` - Set document authors\n- `to_dict` - Convert document to dictionary\n\n## Session-Based Workflow\n\nThe server maintains session context so you don't need to pass the full document object on every call:\n\n```python\n# 1. Download an RFC - returns Session ID\nresult = download_rfc(rfc_id=\"791\")\n# Returns: {document..., \"Session ID\": \"abc-123\"}\n\n# 2. Use session ID to get title (no document needed)\nget_title(session_id=\"abc-123\")\n\n# 3. Modify and changes are persisted\nset_title(session_id=\"abc-123\", title=\"New Title\")\n```\n\nAlternatively, you can always pass the full `document` object directly (legacy mode).\n\n## Development\n\n### Requirements\n\n- Python 3.11+\n- mcp\n- rfc-editor\n\n### Setup\n\n```bash\npip install -e \".[dev]\"\n```\n\n### Testing\n\n```bash\npytest tests/\n```\n\n### Linting\n\n```bash\nblack src/ tests/\nruff check src/ tests/\n```\n",
  "bytes": 1881,
  "sha": "c0ea2c67020d9a2e14be03492acf86eec4fa11d1d6dfb94c8fd438e73f4e5c89",
  "repo_slug": "daedalus/mcp-rfc-editor",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_daedalus_mcp_rfc_editor_56b53794/readme"
}