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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-0.9.8-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.9.8-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.8-cp314-cp314-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-0.9.8-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.8-cp313-cp313-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-0.9.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.9.8-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.8-cp313-cp313-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-0.9.8-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.8-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-0.9.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.9.8-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.8-cp312-cp312-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-0.9.8-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.8-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-0.9.8-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.9.8-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.8-cp311-cp311-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.9.8-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.8-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 65be750b34b4850d29af9c107e42c776c35e6e31b73d9c93d3d639ef10a0ae92
MD5 e4bf2bd792c0a81f1c830d3b110c47e4
BLAKE2b-256 173d35d84ec58eda3b1bcbfdf698487f6b1d4ebc7d73b865ac348f1aa474c449

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c59b303495e4d5a2d4e8e5812cb7c4bab940a02e8bef9377dbe9dcf1237724f7
MD5 2c0f26d3f54ed57cd1e8658c2063f051
BLAKE2b-256 4a44de0b65c062dedf7d98db5d2f9e04faf03a9cbc02bf8673ee782719a7e734

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8f9a502e246d9a9b7134cd832efc3ff316cf62846f19d4ae5aa3c94af9baa261
MD5 0d3654a9816e465f6498717f08b05b85
BLAKE2b-256 9382cce82dfebb4c1d183b12999323524474bed4a987b0c55cc3e9f5c38be5c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9731d5a3a1455db854ee1223820ec37a54c42bb648839e56e3beb420b5bb53ff
MD5 ad90cb0d9580b08eaaf67e573d691a5d
BLAKE2b-256 eac855a1e423f5e1fa4ebe6e15537a89ae25856bd00b6d0360dff200b0ce0d78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9ec7e55ee81439ed2c871175e750d13e342d0a54486c1ec3e239bc79f4d16989
MD5 ece8fb87f7d3e2063c892f6c30801094
BLAKE2b-256 4e82152cc7459f935c8ceb4362b9c4e1531a363058bd9d6ee997beebbba74a27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2ab6fa0dbc7dc24a59db5e2338456b2b6af329efb27787a62504c09b63fea7ee
MD5 0418dbccd32325f67dfc8a3d57f76f3e
BLAKE2b-256 72b5048a0f322c647e8cda5366c85133f94db60a95b78f28cc589773d604fb5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 af802d9dd63dbaf2b5ae3c4a9e4e7208f36d15c64ec45a5033b91995e44fdaac
MD5 b81496bf72653442dadb60f3495fe90c
BLAKE2b-256 101fa05eab40faa462e55f2948b4e1fe19a608f3247ddcabe9a773b10d2e31b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 aa099f09c740b1e4c548680096a8b174125080b9024b27ad78d3d0b40f94fca7
MD5 d4dc2b18098c87de722ae22202a7fdad
BLAKE2b-256 1f3d7cbc7af6f29be08a3aeedd6a1ac718fc9a6d040ddd911ce2af523c60780f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ed9c05c71a0fe19e1ef025d395cc89131edfe6f24bf798aafc95fd879323d5b
MD5 b0bd3f9d162fa85b69cc8e0d64071307
BLAKE2b-256 7c5cdacdad32ee67a5d8ae7ffd61536defd54c875d94cdd8cf5d7bb00ea925b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1ea506c9d8b53047083641c99e6ef79a0c6d14fa1932be0dd70c59fce2ac2d86
MD5 5ccbac6808e0d941180ecb8a5b75404b
BLAKE2b-256 16efaf6c62280e010326ab28d0ecb6b0edc489a747333a5489602debc132e8d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5f9cc211a94917b94228133123fb2ea20379dcd824519a83b12c39e7f743a0fd
MD5 4dc1152357ba08a58035bea2c8c3c6b4
BLAKE2b-256 8e3fca63c29b8fab987b93aa713e62c755500235a8a430b281fabc3116182e1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce7d173b5591e678f5676910928ee8805470c92e7103bbaa1ed82716292474c5
MD5 903454068a06939949d6fff5b2f48418
BLAKE2b-256 ed95fd3b98eace325a62f083a18764c3d2ca6de91fcfec5aa0eabc171cea95b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4b90e7f6c895c4d7b95d9e7b07c95704d8e26386ccd34ddc824d956e4b5f63da
MD5 e304ed977d128b7bb04ca573bec06593
BLAKE2b-256 a3a935e4735fddea0fc761b09d913b8508a96afdbcd8dc44b0af65de0370d132

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3bc14ff48f4882555dc7d2e4f33680f44afca24f5470465ee7316f1f443cbaf
MD5 35c71bc6de5c0ccfaa4e1e204f0ae052
BLAKE2b-256 92ce4bf67e4fb443fb51fb6bfe60b332f8f83eecedefecb5a578537fe5ed73cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f86f6634597705ca77c686447ccdfcb641f281d21d0a65a856dda174ec70d5e3
MD5 526c969a1f4939a836da8c16808a7375
BLAKE2b-256 4b90baba6c0e704e5cdb6dbd6b0b092394f1f7516a6eb38a1cc2b6ac002f0fae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0c3808517097d3a18557cbebcd8629b2462c21f44c26177bedca98173ac020f4
MD5 413901aea4fc40285b0a5d1269f3777f
BLAKE2b-256 7baafe3bafd6ead457fe160bded51f195631a49f27ea3a7aafad5570b0982b33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e966c5e31c7a92682a1f0faa386e5af2872d9809eca8e986d1c2a7a3536b3d94
MD5 5e3cc48daea0c744cd1599bc4907a1ff
BLAKE2b-256 9e375f4c53f755b76147e35165f1a78f6817b18ea56eb370161a263f148de34f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5bd4b65f4b48e81e470f74bc88d9860d925f513e17d13490b7cfb0a46072e1eb
MD5 bddd705307ea21193f2372d84ab867ad
BLAKE2b-256 03785822ccf1d8c6a52ff12b63fc25c35fc353e0d091526930f8aa8b4d7714e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff7187f188d9b7554331f456338a534caf0d167a2a4ad79c2541f53f4c8de528
MD5 54d5f8afb7136ab40e2afed4cce487a7
BLAKE2b-256 ff9d95eb90871800eb273e5415d0a8c4f5a522084fbe717fe8d7c3528ff2ccb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.8-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 018afc549eb01b81743ee61b0a7da5d665fc234028db7e8856474457bae377f5
MD5 17af797c0125c8bfd4f76d9269867110
BLAKE2b-256 7221ea42b9dab6e02434529644b6b841b70ebea7b5cd339b10ab3e199777f2e6

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