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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 466485642f06948998e1275952b50dd1824e644c8a825352a35c6e6a4b73eb7f
MD5 c9d875052b7478e3ad6f6fbd9abbfb97
BLAKE2b-256 97c27782b31038d6da7ea4d6a6203fdf3699dbfdceb8eee8170ed8fc013906f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa04be4e1831d0fbc2fe97c55c15b524be9b0b905909b4eff68d3fbf40e62e0f
MD5 6754d7adfb66936dbf7ccbb1c77351fb
BLAKE2b-256 459993ae135961ed628239a9cf54862d43d06eb1308d1f1dd3b50ce1b3f54900

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 16352c87832742df3be8f7479c2f332ad53bef91377e9a5a0a954f8391c26783
MD5 1819c0bd5b09d70a6bc25513cde5454f
BLAKE2b-256 df46ade7afea07393ae3fb8dbf4ee34bb33119b7174c50c80d08167fcb743f1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6267690df1d39a66db67de0a0a2d6c5e6ef8fc0e83d1a693894f859036e97ed3
MD5 b314e3e67c87cd901d1f472bfcd6f040
BLAKE2b-256 bae0959333155b5d115b3d62197d7d3929c8e9d82dd6607df939a4026e5adf94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e0a9522918714a108cf17f1313717b76cbdaee57082d27911f14b3fb51ba1a10
MD5 0a4d5909a1bfdc261c25884c9b8bc91a
BLAKE2b-256 cb5987ab3d5914b398082157534cea7c416b54e01f3f71b06f57b1a0bb58a818

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