Skip to main content

mcp-dispatch

A small framework for MCP servers whose tools are used by language models.

An MCP server usually shows an assistant one tool per thing it can do. Every tool's name, description and schema is read in every conversation, so a server that can do much costs much before the first call, and a permission has to be given tool by tool.

mcp-dispatch shows five tools and keeps everything else behind them:

Tool What it is for
get reads
search finds things, and the how-to guides
create adds or changes
destroy removes for good
share gives someone access

A call names a path and its arguments: create {"path": "shelf/add", "title": "Dune"}. The paths come from plugins: Python classes whose tagged methods are the actions. What the assistant needs to know about an action is made from its signature and docstring and is fetched when it is needed ("shelf/add?"), as are the how-to guides a plugin ships (search {"q": "lend a book", "t": "skill"}).

What you get:

  • A small first read. Five tool descriptions and a short first message, however many actions are installed.
  • One switch per risk. A client that lets an assistant read without asking, and asks before it deletes or shares, needs four settings.
  • Plugins. A package adds its actions by listing one class under an entry point. The host finds it when it starts.
  • A command line that falls out of it. mcp-dispatch call create shelf/add title=Dune makes the same call without a client, and mcp-dispatch help shelf/add prints what an assistant would read about it.
  • Interface text that is checked. mcp-dispatch check fails when an action is not documented in full, when an example call is not one the action accepts, or when a how-to guide names a call that no longer exists.
  • Interface text that can be tried. mcp_dispatch.trials runs an assistant that has never seen your server against it, with your tools and nothing else, and keeps what it called. A text an assistant acts on is judged by what assistants do with it, beside the text it replaces.

Who writes against it

Assistants do. The guide is written for them and ships in the package:

uv run mcp-dispatch guide          # how to write a plugin
uv run mcp-dispatch guide host     # how to set up a host

If you work with an assistant, put this line into your project's AGENTS.md:

This project builds on mcp-dispatch. Before you write or change a plugin, read `uv run mcp-dispatch guide`; before you finish, `uv run mcp-dispatch check` must print ok.

A host in a few lines

from mcp_dispatch import SKILL_SEARCH, Dispatch

dispatch = Dispatch()                  # the standard tools and the search
dispatch.find_plugins()                # every plugin that is installed
dispatch.add_initial_message("You keep the lab's bookshelf for its people.")
dispatch.add_initial_message(SKILL_SEARCH)
dispatch.server("bookshelf").run()

Install with pip install "mcp-dispatch[mcp]" for a host, pip install mcp-dispatch for a plugin.

State

Pre-alpha. It was built inside Reticula and lifted out. The texts an assistant reads have been tried only as far as trials/README.md records.

Licence

MIT, see LICENSE. A plugin or a host that builds on mcp-dispatch may carry any licence.

Metadata

Release files for mcp-dispatch 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-dispatch 0.1.1
File Size Uploaded Provenance Actions
mcp_dispatch-0.1.1.tar.gz 145.4 kB With provenance Details for mcp_dispatch-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-dispatch 0.1.1
File Interpreter ABI Platform Actions
mcp_dispatch-0.1.1-py3-none-any.whl Python 3 none any Details for mcp_dispatch-0.1.1-py3-none-any.whl

Total release size: 203.1 kB

Release files / mcp_dispatch-0.1.1.tar.gz

Download URL mcp_dispatch-0.1.1.tar.gz
Size 145.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c81b1356f9baab37e55681535e9a2186760f7e608a75b855121f8b49961ef54a
BLAKE2b-256 checksum
How to use checksums
ebcdd8bd708d90913e53ea48254952becafd496021f0ee05ab4d019fd837d1bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / mcp_dispatch-0.1.1-py3-none-any.whl

Download URL mcp_dispatch-0.1.1-py3-none-any.whl
Size 57.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba2d14b41ccaaa7a0ef5521c8315f5b5fc91c9fcc97c6ea437d0832cb695c35d
BLAKE2b-256 checksum
How to use checksums
a576188b03e8b012a7d7805b2f39aef82dda80f57ff3b3d58e4324965b334aa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for mcp-dispatch 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcp_dispatch-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page