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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 309b1babb04c1112720b544ed93adf068304fb36ba9d4a0ce127283dc1d33584
MD5 46935b209a2ef77bddb9c082f0823912
BLAKE2b-256 4ca2d89768f92b0b24e3d39209b1c59fcc687ccca1a97a5041fdfa412ad5e1bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f1bc9734eed144a4ffc092f767b7c2e15083e32d062de1cd17a36389223aa6d0
MD5 04587d3978945cc583f86d60a2b482c3
BLAKE2b-256 18c55305e7a6969054d147801dbca92d775d36a34c684f5d7060e82a36c643f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3baa4d717eee6f3eab9b92635f48851bf5a29f492e252b17ccc13ed41a755ef5
MD5 2670b0a98ecd2f173590a9c203c2dc92
BLAKE2b-256 61a1574e01ca88acfbc135aa1ebfb8e84dbc468c50c908322766d242b5be1493

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6dcff59834a0a3873d1c25bf227d68748cbd38f444b946aa0499f74013624832
MD5 b7e809a90c4c3769c3ada84ab86e416a
BLAKE2b-256 4aca27c8c45697c414f54e2e43ec04574bd11218abf461bfdd279f17047c6e51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a88350cb3b79af33f0c6f3e2d134dd1c1ccda4a02e8812b9471287ded3381156
MD5 9bc27618c60706af76323f5213e79275
BLAKE2b-256 845619f42701d3ec44f8890925bd97eb63d89dd503d12b0ce1010ae31a910aaa

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