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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f00a24e61ff3e18388debe9c8ffccaa142f0da860dae94c709b911e2e0d4a884
MD5 27b6cc0fffee442a019e7cce8dac56b5
BLAKE2b-256 6e5cdf245b1f7419a9aa7a156092c646ee0beeb722a705546e9f5983bfed4d51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 56b7a38ed0c4aa22f384f13baa40b1edb0ab1ee5ba6bac959bc57996316bc975
MD5 6914bdb9e15c4107ed73aed8c324e08a
BLAKE2b-256 34c53ca49a66eb0081761eef70f18fb66c884690d629893cb5a490912985c261

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3fc7d0aefe5249872ae9b1c6e86badc8f3cd526244d017deced2098fcf902b74
MD5 cf557a7250bd45394805c84a28a3a4c7
BLAKE2b-256 7edcffb7a3a24fbb81aa94f66c980c09364a08be43370f44a31dda21b13d812e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aaa2bf23a2ba4058b63bf8aa9805e1d2c4cffd16e71f11aa5f3ff70f6cbb36e0
MD5 878ce2ed1ad990cd13d9b9a9a00a49b1
BLAKE2b-256 8ad069bb81db500198aa45d9c52cb436656ad9ca1dc6243ba74f7b24e34aac5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b5-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f7faecf2a135df9edb58ee587b38652f510f0b70f3e24e2788155371ebc4c887
MD5 39b390ae68bc691787c297e9a9d530b8
BLAKE2b-256 7e2aa88973bf75af4bb6b8a0507fa38afbc4cec85f1798738d05e7dabd82f7b1

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