Skip to main content

Datalayer

Reactor MCP Server

An extensible MCP server built on Reactor. Three ideas, and the rest follows from them.

A tool is a contribution

An extension does not reach into a server and register a function on it. It offers a tool at a contribution point, and the host builds a server from what has been offered:

from reactor import PluginManifest
from reactor_mcp_server import McpExtension, tool

class Sandboxes(McpExtension):
    def manifest(self) -> PluginManifest:
        return PluginManifest(name="sandboxes", version="1.0.0")

    @tool(title="Launch Sandbox")
    async def launch_sandbox(self, sandbox_name: str, variant: str = "eval") -> dict:
        """Launch a sandbox for this session to run code in."""
        return await launch(sandbox_name, variant)

Offering rather than registering is what makes the next part possible — and it means what a server is made of can be read, listed and drawn before one is built.

A contribution can be extended

An extension may narrow, wrap or re-describe a tool another extension offered:

class DatalayerSandboxes(McpExtension):
    def manifest(self) -> PluginManifest:
        return PluginManifest(name="sandboxes-datalayer", version="1.0.0")

    def tool_extensions(self):
        def on_datalayer(handler):
            async def narrowed(sandbox_name: str, environment: str = "ai-env") -> dict:
                return await handler(sandbox_name, variant="datalayer")
            return narrowed

        return (("launch_sandbox", ToolExtension(
            wrap=on_datalayer,
            description="Launch a sandbox on Datalayer.",
        )),)

Without this, an extension that wants to narrow somebody else's tool has one lever: register a tool of the same name and hope to load second, because the SDK keeps the first registration. That makes the outcome depend on the order two distributions happened to be installed in — it works where the entry point names sort the right way and silently does nothing where they do not. Extensions are applied by name, in a declared order, on every machine.

The URL decides what is served

Tools belong to named toolsets, and a client says which ones it wants in the URL it connects to:

URL What the client gets
https://mcp.example.com/mcp every toolset that is on by default
https://mcp.example.com/mcp?benchmarks the defaults, and benchmarks
https://mcp.example.com/mcp?contents,library the defaults, and both named sets
https://mcp.example.com/mcp?toolsets=spaces,library the defaults, and those two
https://mcp.example.com/mcp?only=spaces spaces alone, plus the always-on toolsets
https://mcp.example.com/mcp?without=sandboxes the defaults, less that one

A toolset that is default=False costs a client that did not ask for it nothing: the extension offering it declares activation_events=[on_toolset("benchmarks")] and is not registered at all until a URL names it.

GET /toolsets answers what a deployment offers and what a given URL would activate, so a client can be told which name to put in its URL.

Running it

pip install reactor_mcp_server
reactor-mcp-server --port 4040

Every extension installed on the reactor.mcp.extensions entry-point group is discovered, started as a reactor plugin, and served. A deployment adds a toolset by installing a distribution:

[project.entry-points."reactor.mcp.extensions"]
sandboxes = "my_package:SandboxesExtension"

REACTOR_MCP_EXTENSIONS=a,b narrows discovery to the names it lists, which is what makes a tool list reproducible on a machine that happens to carry an extra extension.

In a server of your own

from reactor_mcp_server import build_host, create_mcp_app, load_extensions

host = build_host(load_extensions())
app = create_mcp_app(host, path="/mcp")

McpHost owns the reactor platform, so activation events, enablement, per-tenant scoping and disposal work as they do for any other reactor plugin, and a server is built once per distinct set of toolsets and shared.

License

BSD 3-Clause License.

Metadata

Release files for reactor-mcp-server 1.3.4

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

Source distribution (sdist)

Source distribution for reactor-mcp-server 1.3.4
File Size Uploaded Provenance Actions
reactor_mcp_server-1.3.4.tar.gz 31.7 kB With provenance Details for reactor_mcp_server-1.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reactor-mcp-server 1.3.4
File Interpreter ABI Platform Actions
reactor_mcp_server-1.3.4-py3-none-any.whl Python 3 none any Details for reactor_mcp_server-1.3.4-py3-none-any.whl

Total release size: 59.7 kB

Release files / reactor_mcp_server-1.3.4.tar.gz

Download URL reactor_mcp_server-1.3.4.tar.gz
Size 31.7 kB
Tags Source
SHA-256 checksum
How to use checksums
879441a567e96d87e55b4cee680f8b8427d83f55bbd51d7b76cea97e1467e17f
BLAKE2b-256 checksum
How to use checksums
110df58a13a70c5fd91ccefe943d61e2b49887829e8b01857eef22a8f8f18093
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 Oct 28, 2026.

Transparency log

Release files / reactor_mcp_server-1.3.4-py3-none-any.whl

Download URL reactor_mcp_server-1.3.4-py3-none-any.whl
Size 28.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c27958713eaf6a29ee20b772937c9a11085d7170beb7aa82c2bf5d121628821b
BLAKE2b-256 checksum
How to use checksums
090deaab8fbae7272cd399c44124deafad30457a21396ff3d512908910b74c4e
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 Oct 28, 2026.

Transparency log

Security for reactor-mcp-server 1.3.4

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for reactor_mcp_server-1.3.4.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 Oct 28, 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.

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