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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7d110a973312aa8320e32bbde97b5c1048ece7ffc9311a7a415585fc1d3896e2
MD5 f223a5b6d70dc53f5dada453bc3088eb
BLAKE2b-256 3040ddbb6ce431465470b943bc4dfa06c3e57e1b1f281825b9d88c017b92546a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bdbcb323b0bbbd17bdbda1e3388462f2c1608dd14f8b401b188ec3e9c31698e0
MD5 7636c2c98fa9e0b81a83e6bdac16ac0b
BLAKE2b-256 391cffb68ad86fe18b69fc86dfada4fed0751dd6ba7ec0c4e655a81d88a10907

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d6e14b9f525384a6ed5ff99f501801639b54c00e6844cc7a697d2e1bb98a9317
MD5 9d12c3954a777249949da776ba026425
BLAKE2b-256 49fbf244d4b9edddb5dc003d319dab8b5c818fd9a5cf0307ede964eefc9ca6d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1623afb4a94d5c0aa4524869e08badccfc56cc5dee41ee5a94a18219804fdbd
MD5 3327473fdd440f1061a81332eb1fdb96
BLAKE2b-256 05e708cec33a0913421aa40da019ff16adc3133bf91870f7f2f7e827c6b566e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b6-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7d147ece0d9b29aed8987222ec2acf9248363b082ac4b5e867e2158f54b2c4e8
MD5 c40920edf7e00e69c5922ee92fe88376
BLAKE2b-256 19fe7674f327929445c2d6bfb4ca0c8720d783ac9ffd741f2776a839da6b5678

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