Skip to main content

MCP server for editing RFC documents using rfc-editor library

Project description

mcp-rfc-editor

mcp-name: io.github.daedalus/mcp-rfc-editor

An MCP (Model Context Protocol) server for editing RFC TXT documents using the rfc-editor Python library.

Installation

pip install mcp-rfc-editor

Usage

CLI

python -m mcp_rfc_editor

Programmatic

from mcp_rfc_editor import main
main()

MCP Tools

The server exposes the following tools:

  • load_rfc - Load and parse an RFC TXT file (creates session)
  • download_rfc - Download an RFC from rfc-editor by ID (creates session)
  • create_rfc - Create a new empty RFC document (creates session)
  • get_document - Get the current document from session context
  • save_rfc - Save an RFC document to TXT format
  • set_title - Set the document title
  • set_abstract - Set the document abstract
  • add_section - Add a new section
  • update_section - Update an existing section
  • delete_section - Delete a section
  • list_sections - List all sections in the document
  • set_copyright - Set copyright notice
  • set_authors - Set document authors
  • to_dict - Convert document to dictionary

Session-Based Workflow

The server maintains session context so you don't need to pass the full document object on every call:

# 1. Download an RFC - returns Session ID
result = download_rfc(rfc_id="791")
# Returns: {document..., "Session ID": "abc-123"}

# 2. Use session ID to get title (no document needed)
get_title(session_id="abc-123")

# 3. Modify and changes are persisted
set_title(session_id="abc-123", title="New Title")

Alternatively, you can always pass the full document object directly (legacy mode).

Development

Requirements

  • Python 3.11+
  • mcp
  • rfc-editor

Setup

pip install -e ".[dev]"

Testing

pytest tests/

Linting

black src/ tests/
ruff check src/ tests/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_rfc_editor-0.1.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_rfc_editor-0.1.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_rfc_editor-0.1.2.tar.gz.

File metadata

  • Download URL: mcp_rfc_editor-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_rfc_editor-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3e0c9cf4d4c4cbb1e917f9c3419d0828bd10e19baf6327a4322f41cea741671d
MD5 adde009d11636f95181c9ee6a72dfe67
BLAKE2b-256 05c8c4ee00bccf15c994025796d5d3ae11718a5db492367313190bb03de68ca4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_rfc_editor-0.1.2.tar.gz:

Publisher: pypi-publish.yml on daedalus/mcp-rfc-editor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_rfc_editor-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mcp_rfc_editor-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_rfc_editor-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ce5dceb0ed32edaeae9220e5a7011be54903800d73e3ad171b96a2ce1aa220f6
MD5 2a664ea8d0e82b0b4823057749d9910d
BLAKE2b-256 b59e1ce5c765e42b530710dcd7fa9f3fb749ab0747121a2247b7d0eb7c58ffb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_rfc_editor-0.1.2-py3-none-any.whl:

Publisher: pypi-publish.yml on daedalus/mcp-rfc-editor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page