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.9.0b1-cp314-cp314-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-0.9.0b1-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.9.0b1-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.9.0b1-cp314-cp314-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b1-cp314-cp314-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-0.9.0b1-cp313-cp313-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-0.9.0b1-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.9.0b1-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.9.0b1-cp313-cp313-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b1-cp313-cp313-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-0.9.0b1-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-0.9.0b1-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.9.0b1-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.9.0b1-cp312-cp312-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b1-cp312-cp312-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-0.9.0b1-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-0.9.0b1-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.9.0b1-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.9.0b1-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b1-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.9.0b1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 1d059da9b5f703aa5f40785e435c89cbc2b475ca5c7172f3653f72bb5e61ebf2
MD5 eae96ceb6eed7ed489063719f9065864
BLAKE2b-256 202cfb052e75c425b64e11efb1d11238724388084e4ee175d988ba5bfcc8774b

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 20ae4805e2e6bc5ccf8c46cc55ea1df2f784529631c06dbdfc273ef62fe2b2a6
MD5 ddf75dd50137fe413467d853b71639f6
BLAKE2b-256 e6a6c90071f06238ca7bb5edadd53769bef51064d70678be2a459bfa6e689a30

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7f4853ad220f0cc3d785534ea7a0327f85e322b97e97929f2a09fda212a789a9
MD5 04d6003572a281c646e393c138e961d4
BLAKE2b-256 df86fc15a8e71321c0614165317b3e1be6ce2ab9501c578a404b75c206107aa8

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61b3a2d1c3c682683186b8d7ec9258627816b5d7718f1d3b68b1ed6994248e16
MD5 cc4be68cb461b6cad1ac06b25495132e
BLAKE2b-256 bf1093df2745524a9cb1476b8aee41c1e121681f74769a5b0896d8a9e6b94113

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 abec4b79d8f4e8767b05cbcbea108432adca411d2b954d153f16c17be51cc7dd
MD5 c413d08408a051216002e1a9bd7571d7
BLAKE2b-256 6f91d6a5853b5bf246257c8acc17fcf0e6b02e2678f680e605e93adf9c78e44f

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8fca95444a44cdd69a67e27595b3f03c3208ccadd73e3b8592a10ba19eefd874
MD5 b0e72e25dcfd840139e90bef008a50c8
BLAKE2b-256 d150c299e5c42894e19028652595ab968838ebba3a516d7073a941f6e9d83de9

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 57d24931910e6ce7cba44060bb35e10745f1a76594f9c3ce5431856654855751
MD5 f1040dfab6963117bc46feb2580e52de
BLAKE2b-256 b7f474ffbc0022ee18d78852b0089c16fafbd6f4e22bf469490d549d6b9d8435

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c4986a74d75b3cd9d91b402851989b2b3277c97e43ffe1a881d45862f219800d
MD5 83e40727ba156a044cf697d668b0af62
BLAKE2b-256 e33fb6696399c722a064c82f51fae4caa9b0d9f463a35517b62e5e095dfd2829

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1a4324b30f66026ea3e9fbc5d559beb5d631863eeaa876d783469c7ab65d026
MD5 da90a66a4dcf83a3d07342a21f2ae391
BLAKE2b-256 b1b8e3d9c220bca6a2f34b8f809847045136c7556972ba281061a40788c7b77d

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 102049521bf4b89074f8df73a52e2d6eda07cdb5c09d399f9ca0ac2865481309
MD5 21df6d541302cb852cf9adc95e28e390
BLAKE2b-256 bfd84c39b4fef1c229047b0c1027fa436ef93d75337e68e685754e4b46e2accf

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 47495ae6e1af3195f4b5d074edb464d9e5905b81b3ccd675c50592871a2d7853
MD5 0d0d99c10c6b46d818799b96712e1ff8
BLAKE2b-256 ed529de156af4c2ced6c265c217e9284f2174afac77a14e0e355da565c6ed452

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ebe090b09307311bc2097ff7a9f2bd74c83cfdde0b97bbdf99e34e82e67001a7
MD5 1ea1eed3b9986ab996ad478f88b7eb89
BLAKE2b-256 ebe4302edf6b4e7d0d87f48684a50a78370e7198325931aa2ee101bd8f1a51ef

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 28596427ee29294f51e3c8d7a9175c82c04a144a055e74b8df2718a411e8c3c3
MD5 3e1b7dc73917324bf733ba7436c3f90b
BLAKE2b-256 e0baf7ef424e89ef309ba33e7487dd505898dcf03c4d76480e5fa54c46330f8a

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75adbe22812e62c3129ce27f491515cdca2571a31d8367a8e33616ed3a58a8b2
MD5 f63103f764b448d7c58ec11f1d63b18b
BLAKE2b-256 acd37b81342e3bbc3f91cf2172e3eb218a5fecf99e03c73a6c7a11b02c6df523

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 236bf1ce07279f90223740f707f8b2c5c26041c45b93229a5b48e6570e586f4c
MD5 153c29bd3d365c2e69a9a57e181ed4e3
BLAKE2b-256 aa92da8c29d02cfb9b45d41acde8f07878a55b73637dbf1696332b349cc94ddb

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 49c505e903c01c21e408e13bd1366e70d84f545d61e7821a845786c188ff4136
MD5 af2b7f84cf2e1d0d257a5f188eeb6d78
BLAKE2b-256 aa3c962d2e712cf18b0cbc9da5233bb45e4c8fa78411286055e1150002a18882

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0f48706e5b26249a22c5a695fcee0609f51ab7f0afc02514bb668809db2af41c
MD5 2697982ec54a25f3b0cf2d6bea5ec099
BLAKE2b-256 5d6aa3309a4f9802db4b492659cef4a07f5fd6f5a26360d7fef193a0b49707c8

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b4082e20cdf213868097db06b06cc5c427ecb54ed9b2c3120bc7ab42aaaf751c
MD5 57409a103ac08f3cd37458579fb1e64a
BLAKE2b-256 31a01bd29b1fe44fdfefcdc6b671f319667c068c838361634872665990fab2d4

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3cdc554fb46c0ac05243c5332d4db08e519e6300f677900cad5cdd46c74fee34
MD5 81943d8db0610be5d9f557328aa5c7a9
BLAKE2b-256 3398cfd1f95f464d3d3d1625f99e6008e9786d45773794674ce3ac6ca6855557

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5a58139a1a08a0fa50f31cd8318cad762a695030e8517a39dcfae8f2152ee9b8
MD5 72cba55c61bc26c05301ba1b140e7a21
BLAKE2b-256 16a6fd90e33e906b67eb5926c6fa71dc6188d0a7cb4e917dc5c4e83f97f49f58

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