Skip to main content

Rust core runtime for MCP Mesh agents

Project description

MCP Mesh Core

Rust core runtime for MCP Mesh agents. This library handles:

  • Agent startup and registration
  • Heartbeat loop (fast HEAD + conditional POST)
  • Topology management and change detection
  • Event streaming to language SDKs

Building

# Install maturin
pip install maturin

# Build and install in development mode
maturin develop

# Build release wheel
maturin build --release

Usage from Python

from mcp_mesh_core import AgentSpec, start_agent

# Create agent specification
spec = AgentSpec(
    name="my-agent",
    version="1.0.0",
    registry_url="http://localhost:8100",
    http_port=9000,
    capabilities=[...],
    dependencies=[...],
)

# Start agent (returns handle)
handle = start_agent(spec)

# Listen for topology events
async def event_loop():
    while True:
        event = await handle.next_event()
        print(f"Event: {event.event_type}")

Architecture

Python SDK                     Rust Core
───────────────────────────────────────────
Decorators          →
Metadata collection →          AgentSpec
                               ↓
                              start_agent()
                               ↓
                              AgentRuntime
                               ├─ HeartbeatLoop
                               ├─ RegistryClient
                               └─ TopologyManager
                               ↓
Event listener      ←         EventStream
DI updates          ←         MeshEvent

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

mcp_mesh_core-0.8.0b1-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-0.8.0b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.8.0b1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

mcp_mesh_core-0.8.0b1-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.8.0b1-cp311-cp311-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file mcp_mesh_core-0.8.0b1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9963104ea39c8390666906b7fec18105e96d0a77153b4d82735ba7400d957853
MD5 c49b1b6e43df314c6b4ef40431067a97
BLAKE2b-256 d7c1f993179675f1a46740d19baa256a65a4e4fbe9d0cd7bcbf41830ce08da29

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.0b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8f5df4b89eace8f62a437897df1527e1b9bc3ea617c1b32ce877de0a4fb4a944
MD5 bc122ae97ae3d7582758e6b10385892d
BLAKE2b-256 fcf726ce20474618cb36629654fe3fd52fa938a03a269a9ae9fbf95ec3fe34fa

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.0b1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1e1905d146de5716eda862051a5dfc7b09832278942d52ddf370f88873c35723
MD5 09392ca4bbc077e3cd7c3df5ebbec0ec
BLAKE2b-256 cf008315ee91a0f664027dd7e0256f4e5bbb2c4a4c88779c9b5971409f170c9f

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.0b1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d9599132fec34af5454c4267bb1e6ff19acd7e5277375f097ddeded1d6db70a
MD5 fe63fe8069037fa712f228091a8c5c87
BLAKE2b-256 58278e915525e076645126395373f3f92d2b1fe34328c5045464720f3faa0f6c

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.0b1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1e155c8d500850b599e199db9c71b6369f3ccb3aad580fb4f8fbcf8447dd7af1
MD5 4ec7ae15e03b93090933349771c88351
BLAKE2b-256 fb848f8eff5cb99385eaa88b89524260029bfc3ffec2cde56194c26de5eb50c2

See more details on using hashes here.

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