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.0b7-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-0.8.0b7-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.0b7-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.0b7-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.8.0b7-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.0b7-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 81d6562305f71f590f2690b8661929b8e8c4b3dc71d509d6cf1c128b4dbac70f
MD5 192dec3f3b69f8735b78191354fdc752
BLAKE2b-256 fadc10e53b5173caac4adde4a5e95d43bd821ca967d45d6b11d78edb5de50ec9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3e5dee41a6bb583dd1e19f365a1d01abe0070804aa515e8b911461080993ba1
MD5 c7fad4557a47d011c6f49f5e8d3a4631
BLAKE2b-256 16f0b4fd0b135e3c5e55084e2404719d0dc4eb1bc82b23b96c622d070292e1b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c1567221a87aca2c3991e5a97ea7b771c8a9dd19e6fc885498481f97b727181b
MD5 81665e31bff45edeec2ce8e3b195a7bd
BLAKE2b-256 edae91ea221d555826a1356ef48bfbf4e8f5add677e210deefdf3bc73ff3ad3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a512cf6923de311c85d957a7a06e44269dcc5e1ffba7beb7ce35c035fbf0d008
MD5 cd416b9dc12d23c8ea0d8869ff8052a9
BLAKE2b-256 700a00c9cce32576175b8903d774133683562f16a1602e3d90129ccee3885ad7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b7-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 13c328d8895af2c3f52738acbe225e7fa21f26d4270d1953f8739325f3a356f8
MD5 82cc5f70ba1ee4a377bbb6b3c1accc15
BLAKE2b-256 afaaaea76c5fec4ad351e1eaa21451e03061614a11116bf8a6117241eab915fe

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