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.1-cp314-cp314-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-0.8.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.8.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

mcp_mesh_core-0.8.1-cp314-cp314-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-0.8.1-cp314-cp314-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-0.8.1-cp313-cp313-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-0.8.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.8.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

mcp_mesh_core-0.8.1-cp313-cp313-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-0.8.1-cp313-cp313-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-0.8.1-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-0.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.8.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

mcp_mesh_core-0.8.1-cp312-cp312-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-0.8.1-cp312-cp312-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-0.8.1-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-0.8.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.8.1-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.1-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.8.1-cp311-cp311-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file mcp_mesh_core-0.8.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 81dfdb8b6af21f6ddddd6a80f1fc5ca01240e5bc9a515a88cbc3999e9758f01e
MD5 306110bca9206e18d4933b7a59c60d71
BLAKE2b-256 118dbc3176103a0fd4ac799ac81d3135164440fde40c76cf0e6b4bdaefb75c06

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b7bf93b0987aa36e520e633142c55120b4dd92e2b1bd55d9abe0df5430ec180
MD5 dcf3a6db6bb67b85957ea55103596cfd
BLAKE2b-256 2fa1c6a74b2817d5054ba54a0fb8cda9052e79425e75cb23db890e9065c46f48

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f15b3cf3679bd8ee3f94b8fc517beaae5a6948eb382f9734fc2dd7a5f8baf4d5
MD5 ad879d788efb7fe87f313b847fe341c9
BLAKE2b-256 505e361f22ed337c76e8bd3a2ecf05e9368de802045c965bb1f39bc3f73f3d3a

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c2eab7d81eb7b06ef1e652542e772c8a12dd17322d08c4d1d2e893c3dd2ea6b
MD5 1219dfb5e5d96952dc35f966be951f0c
BLAKE2b-256 1b318315d43302fd66df63505711c03d196c2574cac8f61bd34451b52ea8afa9

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 78f5f0f3058962eab89dee8e50fcd7f7871d1ab4556b630f0c038f93d4eede07
MD5 eb0826b2cca551abc16300f15fe7edd5
BLAKE2b-256 49ca1ed96ac5822757ddf99443f19d89a91a289a8d05bfc1f8ef30e21c70d464

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 62edef2ef245074c73a37f7393c9481807ede8857b2ca3988c37faaf92836bef
MD5 c609998725568be7284dbcc0550b78ad
BLAKE2b-256 c30398bb373939ddddd66d6b2d77299581f1a88657ac2d62fadd005e685b5596

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f0f0e70c1ba4e80040d50a6fe1016a214df817efb01bbfcbe52e5db9c2cfe47e
MD5 d95a284320e24b8f292bca5b841e2bd8
BLAKE2b-256 e11141b452d4a9a45bffe1d83bc782901aa48b56529f17ecc64efbf072044b6e

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d199499836ead12191c551794f62d52071b1b5252703ff6378deb7e82378911c
MD5 9a2cc97e87b37f4e123eb156087bca72
BLAKE2b-256 19f0f4c4590ffefab7f0ee827f7fb9e53abf722b5fc5bc070486866636796a9e

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5b3bf2971a29411d94e55e3874622e1aad04bd739fb71506d3edb1c75d675ac
MD5 32e7523fad7295bb5ebfb45ebb1b5c08
BLAKE2b-256 fb0952516ca2807d79311d72a65a7e14b3b7cc9c9baf30712095b84f3061446a

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cc912abdc8540efa57799ef44c1e35116dacfb88be2b2b7ead7f6090b8f1f5cc
MD5 1db0db2a9afe078e05284dfcb9de24f0
BLAKE2b-256 9af92ef6c161ca1c1fa094e167a13f8b63e27f302cbe63aac3a1fc0d8c1dcaed

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4cc4d0b95a4a067ea09c1eccbad79180697637546817fa544e5aadb1ef0febda
MD5 636c947c0ebab92805da6f7069cbd6f9
BLAKE2b-256 5dd9716f5f13fc925f114e75a8610f6662d696d564d269ffc53a8de611270698

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e96ca7120eab96285c141e4bdec6102a87382df1c04bd2851cef10d123ee2b1
MD5 823870f951bff62244c1d08ecda30f62
BLAKE2b-256 9164bef652a6f43d705a6a328cefec0035a789af4e77d059cbed61aec0139ff5

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e2273bc0bbc50b0cbee1899aaad56af2f741597bf8f34e48c02be1b7ad5ea776
MD5 eea130ba783c067941a6044788111a75
BLAKE2b-256 ccfc26652cf28a3e4f6a03be81bfaa7701bbf90b8f3f12a35df975f3e6958025

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6370c8ee8506cad7448910d705ff70bd232fd1a46bfddfb66618662c501e139
MD5 73170f9b3074b36b936cbc3073cfe264
BLAKE2b-256 e929fe07c5b19640630c601ff5aafb18dfb9217ea867f1900298b81560f40518

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9ca634d0fb7b9c1b315647840beb8bfa6714d2438682be59abc16998c273768b
MD5 1f240bd60a8da5cdbd10232b61d4f277
BLAKE2b-256 44bb28fcf6fe3cb2ec85369a2d96d6d18255f1c01cbaeedd91d1fa3e2b149329

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5d33e7cbdb76d11ead3c2561226e62e741be76c4e1b601329ebb9dc4bf97c494
MD5 d86c91ac4fc82507b4086c6195bd8bff
BLAKE2b-256 63d549ab595c8ef5a6f6b9533546f38d8754f38885618bfe65f4b5e70a064d13

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fdd72050b4afd2d3d64e6537eec488074a5e634ee04766fbbb427c2a110df138
MD5 0367c3d69d809f0389d53b819b263367
BLAKE2b-256 f963fae39a620f78e9c68732c951bbd282a24168b6835d6c91cdbc27ae093433

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5e922d5c1d3c1b0bef7484549fa4bce53f25441b8018cf8ee36ee8c2a0eb50b7
MD5 c2be7c6010638776c7995dce0724e4c9
BLAKE2b-256 ab0178be4f793be006179110a7f676914aad47dbd7c5d247de1479ba694ef992

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f7f7d237002540a72b7b23a2c9f056ed03a734c28bfdfe29bcc18b35b246e3a
MD5 19c1dcfa28a4e9b8c237a82d571c9ffc
BLAKE2b-256 4315c46f502714b20d828b7dd22f6159690894bec4f10f17cb0bdef385a5e123

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.8.1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 94e3b43489e1ac60a6fe0592030c9430f4fd68789bda4bb53a6234ba683c4837
MD5 23c7720ca29c6443feb7df366db1df64
BLAKE2b-256 1a9255acc13f5944406cd168596ec27bb8995408cface78883d2088b0aa41ecc

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