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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7972516c6b123127e6a864a87e3777bc9fabcae6f04cf6cbb971ca16c14055b6
MD5 10b9f1726252e8cf061f6b69ab7a5d74
BLAKE2b-256 775da3bf6f3b0ab7499d035110161eeddf87b7dd507db315aebdaac4c4c29496

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d80113e03456137ae0bce2d54768323ac536d42ac3181be777511c3dd3801505
MD5 efd88c95a6a96c6d27ac3e820d143241
BLAKE2b-256 bbca4129d3214b011720adb31f618480626f75673abee31de519754b9db44265

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 085ca9d241f6fe496bd6668047a17c79b373c82216722934605ce2475ea0fec5
MD5 ba36b7afd1550033fc37d6e3308df82c
BLAKE2b-256 54db3f9834e29eee232956046ed8de1424d97cf94a9a6e044507802585ec2710

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2791ba68c0500187a1e8525a064fc6a5fbbbb36b8b5a7c357bb196d7d0a34c6
MD5 2f2edb4a605ee4eea30055983e37040b
BLAKE2b-256 8699fe1701c0766ce67856880e91df74d10fda1cc95a5953a91ad0d1c2fcb9b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b9-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f885d7476ffeb555ecf3698c5eaa3b661c21e87ec226a9a0be42c8afef0309b4
MD5 2f1e5ad694f890c9fc51f1441e264333
BLAKE2b-256 2d325f9ed835d58889a43bf1863b57f72e1702af5a07445538c4a84e0c576c62

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