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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-0.9.2-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.2-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.2-cp314-cp314-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-0.9.2-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.2-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.2-cp313-cp313-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-0.9.2-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.2-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.2-cp312-cp312-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.9.2-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.2-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f2c368e9c4c69e7e3e76490088e786558e7af3cc5c265f88176a8ab6a3485e89
MD5 7e4fba618a395db7e28c635c380504c8
BLAKE2b-256 ecf7b7dac9e12e90dabcc4a2ecf7110fef67b8bd2756cfc164a065eb5b63d3ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 03e3b3c910e88ab6eb7ca9564bb21a667c1781060d1ffb4234e2bcdaea92efcb
MD5 73e819faaace7493a85d127d4412e748
BLAKE2b-256 a4a7b0c72f0ee4f6053122d19e710136f1984316214baf1f0f5aa5cfca625ebb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a0759f3a23289b78db0be3a14658bc22b1691394012839b521206ba2be70cfff
MD5 5cc2520de25c3f08a414c6abb65d1874
BLAKE2b-256 afcae150f25cc0390337f3b8fc377047d087a98890387c8bfc07b0dc77c7cdaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 abcb7ad64d2d12cc8da1ceeeab8a5f6803730d03b2b05971a3ab8a769045e103
MD5 e8940daed79af1ec89663afaef0d637f
BLAKE2b-256 5bfb1b7506e03a519f977d00af3b32623faf0767b16acc6eb9075980cb000f27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e188649203476c4ea45fc22a0c96632b06e2c44820420f9713e132acb2914bba
MD5 40910f3feb0c6b7b72e7e58f9c8ac81c
BLAKE2b-256 a2bedbf321e7949c703d406c470ee8ac356d76be86b9c659a072c650e3e5bb70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 17a409a0d102457f6ed93232bc5f44fb8cc2f97174f6e9de589fc6ba89a99bd4
MD5 0e9d2fa3393fadc022db7c8d7754f45b
BLAKE2b-256 3019eb0d55eab7ae3bbe7e79663d45c37f575a6048c49a99300dea3b8835f04d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c338ba8a34f57413b821215e2e8e1afc762a88c8ceb94c44de4f03b90cfb12d5
MD5 bff0f17c9b9fafffed1474c56fa030e6
BLAKE2b-256 3be4ee19ff2ab3b76045c49de7be6849e5cc6916cef292ec37851883852257a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ec123de426c14dd3b0a835b1dccab057fb339ead5a960245c2988a4abae3853d
MD5 8b56eac4fd6cf238fb6370f74e3e8519
BLAKE2b-256 bfb363466228741ce9419eb62ab260e5a9d25a033301e9bacf207fec01bcd830

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be1a13c5d409ea6ec0b48c6cc7e64d9dc864f80a416e7c1d05714db8da0372f4
MD5 e90629ab064e4665bde1f2736e1c4147
BLAKE2b-256 aa0c11a0264de99273e4d832562136ddfbb8076c57db9bc81a670438d5a85f6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d1b79793576ecb6e9185577f2a20044bac39dbb562da1b74338df9b2cd5ed7b4
MD5 67f99b6edd6a5a17eab6649efdf229f6
BLAKE2b-256 0724aaea367de68e1ccd3a78a9353981c3714efd968a20090d25577f78fe4589

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 61b142ab93e8a422ab67d489fd44020de95f12d9c1e5cf58faf997189548e344
MD5 6d76fa667b91db691a466277db79906f
BLAKE2b-256 aae622f618f6756a841c3a93be236314a05be14344d218d8c623312844ea58ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 56aa86a509afef37954b34ac20694539800763b845d4a7ea0d61e4c6af44f32e
MD5 572936d5d1813bed7e50ad4c477e9fe4
BLAKE2b-256 3fd96bb4b1136d220b44d57414bb2ffa999a2d2de961f508b69882e9f94cb016

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 50cc6213a93533b7800529c9627b80bd145ab5755aefbe50370979182faa81bb
MD5 dd7bb3c7b929a6119f2673fbb4913891
BLAKE2b-256 4492b31ecb7d7a58a6d3d35b3d3afa97167d6e959e11599717f435cd50a716f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc3d408cb8a5c0374313bab2c89066006ad0cdd90697db57c80c046e4330dfed
MD5 0164d51a90167e972812924654cd3bef
BLAKE2b-256 cb74face15047f5025384d86e93bb9c8f004717208e0ada619b5388badbf3274

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e0fdbfb2f52085e441b827be2a74ca9bc4ddb5d80240a4c7e7e0246d9072b76d
MD5 bc7604c3e52c0330fa0d4b43204f1601
BLAKE2b-256 de8d3f38abab36031ff4af0b3b0436ca1bb6ef32040d34cdfa04d781ae5da198

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 65419cffd99c28e28ba53431f9a05646952a74280cafe9e8199d06c126cf73b3
MD5 05ae4e6eea5030c5f8bb0e61d472822e
BLAKE2b-256 68c997c9486a509a31a7d3f98b2c590a4ab2aff451d8426539e7635cd77f5049

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6e3d0709bca706983fb8d28ae67e51a152493d4b55e5b90d01d85aa284cbe9bf
MD5 294fa74d6d84faabd084c063135de22b
BLAKE2b-256 f86f364bd2eafd705d9a2ff7e64f7f53c17800a8ff3e0b3ab1c45107d1bf5e60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a977abe2b93de48a020fa4853d764865a3fe7518012ec8c9755e222e0bc5c482
MD5 092ac86e61d8c7258ed617ea8c488419
BLAKE2b-256 e73287c37acfeee848970d0bc05bebc2c074ca2ff917b65d00b3ad0cf955d365

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5d9cdc80897ce603ff2a3014a88a33c4eb7d0c0bdac58519396bbcfab1b2f24
MD5 1cba2ec5c060535ab5086000ba21e2fc
BLAKE2b-256 29ef2cec5ed7b31f8e70bd1248dea9de069db700a06b38fd975c043cb94ca362

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ea56a3b1697a07d543ba4932122a43748b8766abecb2c31be9cf18b809cb2e42
MD5 d98d4f8df4c7b7e3f85f6ef1e7c7f3e5
BLAKE2b-256 294cadcd57972c17ff25fec6a30c1d39aa46064ecc6130cb2ac5287e20f4b133

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