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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 634e1a49b211fb332f26f842e48c9d42705e6b877b626bb7b98d70add7e3b437
MD5 a46038bc4f31e05683422849bbe1d554
BLAKE2b-256 716e12448755c533bf7dcbae945f27a11dc16115d155752e5367916683501d07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1e0cd43c7d4334f89948369ec286348c32a68f547081556b686f5d556bd5f685
MD5 738e6871c81c49632d84aab73de65140
BLAKE2b-256 56aec4ad316642a08b40c9a4ec2ef62e1c5e2d61ab5b6efd2039a286fb42f5cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f3db620152a5714b241e6e391780b5ab86eb5a29d5fd5631ec67aaa367c72df4
MD5 0b478a417a77134aedd4153045924697
BLAKE2b-256 c61f7568ccbd82f110c74d264fbcd0f46b6aebba329e751307599ab133582694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bb448694afb068b6be6163650fd60106eecab5f690c4080de62bfd9cebcb282
MD5 4c5090e720ffbd461f48bfc8c2243491
BLAKE2b-256 3c56145915ead32c974b3d5edb092fe8b8dc90ccee9cd0747ede4b0c04280b67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b8-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c15fc4677ec7cb60be3bc9232fb7e540c39361947db40bcdafec09bc34393020
MD5 7342e55dee0d1792a36eff8ad58244ae
BLAKE2b-256 8be7dfacb1cb84d58937a858c46c80bfcbdc52a28795db5d92d2d00a1556afbd

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