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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3a75300d2a59c72a8613645bf71f202880aa016b09f37c8fdfd7bf77ee27d086
MD5 a5a79a4889ed4c0d958a27fb95820a02
BLAKE2b-256 06adeab2d5ba7a52bdb4b1f12e09b56f20a056b701ff4914251a05208e2b15ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6763ef24d258f649c2b92e456631dd14feb5a8783797bae1df00be39289e83ce
MD5 49daeeceb1b3072bd802e6d1fa56e221
BLAKE2b-256 70a4aecb6d62f1433da587e247f9b15e324bd763860268183ec1a57357472339

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 34487f951c4b47798ef0aa70316cb114b674ed9ef4c052809b380020ec63b2c1
MD5 a8746533382a0c58d4d25b514ecab8fd
BLAKE2b-256 4bdf3586b5c28b42642328a94cfb9b3b4d9016f9ab218d91115e0a25c3f4992c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0005de3f9c0ad3a2977ee1cc2d23b27628739659a96b90573206d3c2a7c6c0d6
MD5 51854b0c6f8bdca12397cda0cfc4c856
BLAKE2b-256 27c419910b483a73d798d3203d8436d6ef899af649f22c889305c66931c23540

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0b2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8df092a0bc941e525745bd0ee2a00af378358a965eaa446d1d80ef8e73e4fbc0
MD5 3034cb48ca7b93f72fa3464a38da1303
BLAKE2b-256 8c06f3c7aea67012fcde910a5119c875e56690950a935a04c465e53a8d953604

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