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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-2.0.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.0.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.0.0-cp314-cp314-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-2.0.0-cp314-cp314-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-2.0.0-cp313-cp313-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-2.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.0.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.0.0-cp313-cp313-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-2.0.0-cp313-cp313-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-2.0.0-cp312-cp312-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.0.0-cp312-cp312-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-2.0.0-cp312-cp312-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-2.0.0-cp311-cp311-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.0.0-cp311-cp311-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.0.0-cp311-cp311-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f1a9972ff779e31227b3bf7ba912e0d4335c78ff055fbc5a8c893c2fbba26d4c
MD5 86067727023438d506bb259c525680b0
BLAKE2b-256 7a469ce57f9b8e0903ded59b0f66ac4f343674f99ccaeff2373527bee9d66861

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d044a7949c038f3bbded03fe8fc5adb7389877c194d6d69c88749a274de85302
MD5 ca04295cf428ff650e8bc6b7150f5345
BLAKE2b-256 86ff3242595d7163b0d545932488b789de3381d6cc7e9a4a2d21ce20f7aed239

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d4d928dbd6b65cd151d1eb3c7b3a39d4a2df0c80b938c4e42156171ccddaca9f
MD5 8726a5690ebf6d5d0980b18dbf0deb45
BLAKE2b-256 36737d78d49c46f4ef9dbbbac547a6acad9dc9cd4f90d03cf89ee2ca1dd9cbc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf967efec5f35521b529d6775bcf3dcebdeca3bed6135462497e915d003b5a7b
MD5 db66e65df1b14dc9addc8242784cb872
BLAKE2b-256 87094d5a9049d05f9d22d11d29aa41c1fb19a227cbb3f096be4a7e902360eb1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 eed49272a75af067b893e6424a892e4d7fbc363c4fa352e0e3a6414dd3caabd1
MD5 7449b2883de3edfc9928bf337cd300d7
BLAKE2b-256 57966dbc386428a77794fd89c18133ecaa0f7caf18f4e212d9a3c5961909714c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 369c473b6b505832e548a344078d59e61f565cdbae6243bff25f4621a1c4aaaa
MD5 a597335751956a1743b432da68d7fe1b
BLAKE2b-256 ba03605f881095d470d74423f27d7408654b624afa787db59be2f6b273ccfe37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e603b335f94fe9aa507dc29f985e84cf45e8b5e0e5b5f839e16d159d6c3e4b3a
MD5 3ba7ee55be6389c445fc7fe8186d06af
BLAKE2b-256 680b5437a84b43003700fef0b6bb627a5feafadad4604bac53f79242dad26b26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e6092efa7baea95b21d8ec5d41b1dc130580cd89545384ac2348708e603e6321
MD5 c1d79a50a0e176d6ac6f50aabaacd724
BLAKE2b-256 f0d405e550a183e80c1fa082c38c461269b080dd4f455fa63785c3f8a746b09e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 952d4c0c0a5c1f61675b3bd07ac5ecc2f0533c7dc20f4e37d12352aaf6f68896
MD5 2a9acb001a2d17ca65255a0a1b590070
BLAKE2b-256 81aa0c23a2c38f38a1e5622d3420e4f46d536e43134bc36492dfb6b09037f786

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 aae77aef708b1cd03fc5b397f7c05b2ec2fec6a9163d649bd9f067ff0f8c68a6
MD5 cc1fb96106fd8b45361e2acb8785f665
BLAKE2b-256 78f389d3ad140bdc01c4341ed74e00433253c0a8dcd3876f44c1babe58aae18b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dd0f6edaf5a9dac56d43369ea43bc5441874c0bc6f06b076aeab86aa0a99f494
MD5 71751e8ece747650bb45675e06126b6a
BLAKE2b-256 f31032a7721a339868dfbbaed591d52b44c58b50a296756c326c2946ca881275

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1b82c81e3d12ce14e8ccd66d700b798df0045f4a59deee3b7b4534bc65c204cf
MD5 a6035b1ecc2b82c8f737e4084d25e58b
BLAKE2b-256 d9455a319e0dc5d0bfaf09212011306eb9ce72b4139a08234db96c9171608846

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6c2bf740dcec8066631fae84986366ccaeab9aa9ccfa154d671970a8ea000888
MD5 6d289b57709d090cc62e8a8c8040c60b
BLAKE2b-256 5e6e38c2df8ceea3a9ca5132eca57d8340cbc253835d6fad66ebecd22be6a30c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7cd4a3d85c829083154efde3d904cd45a241e3e81037eb38248db83bbcb2c69
MD5 3ae789875687dac4cdfa4f4148e3e186
BLAKE2b-256 ed7f4976d1720d2c80926417896e67c5217df13c98212cc6f38a7504fb983ce7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9fc5fdd2490624e0d5b31e58ce6ccfcdbcceb3bc40b94d35781043041ccdb595
MD5 4d6e30c3cc4b6066ccccca9a278adee2
BLAKE2b-256 cf1aec3283ed6fe07f0cc4af2fe58f02727d33227384d820d5997c95561173fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6cc9cf272b2c588f9137f0c20dfa285070b28473c9af54aa8fb4de4c5f618414
MD5 77c79ba577af4c6267695d9758671ff4
BLAKE2b-256 ea2c4cd4cc8adf7dbb164aa1e69ad2e4146aceb5257fddfd41f4038682550ae6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5fcaa1e5f80773304a5791048ca8cf174b402a359b6442f784eaf1b853b0fa2e
MD5 c554a8d4ce96cca7a94115ea9aa6eec8
BLAKE2b-256 5d85459e87084f2815f88d83443e64a1b8a61519808389bab81472e8b96691a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7d12bc5aeeb0a889e8ab121d77a12c963e7677f7aaf6fd89428a2c5714059d8c
MD5 c330cdd7ae023891e30d7ff8ba29e59e
BLAKE2b-256 73925bcf81e153613d9fd0a46c401994d1de12439c3655751b810c84ddac8b3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5732a057df07e463a04753da6399d896cf3b5f3a55c49aeb21873fd3264386e
MD5 dd523e765f7a9770b0a78b7e33212ee6
BLAKE2b-256 a9554bf7f14419215486c96561e1772b798dbd1bb269af763d49c5f5e7c208ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f0df5b207b81f4f565430159ad24b8749f76d99f8e6e0e53b6f98701c4d29b7f
MD5 8ca6953d78907c4d54975e27e212505a
BLAKE2b-256 8d08e30555f596888327c60d3a976feca79af2060d16cc7b678acdb4c891c08d

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