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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-2.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.2.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.2.0-cp314-cp314-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-2.2.0-cp314-cp314-macosx_10_12_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-2.2.0-cp313-cp313-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-2.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.2.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.2.0-cp313-cp313-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-2.2.0-cp313-cp313-macosx_10_12_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-2.2.0-cp312-cp312-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.2.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.2.0-cp312-cp312-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-2.2.0-cp312-cp312-macosx_10_12_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-2.2.0-cp311-cp311-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.2.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.2.0-cp311-cp311-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.2.0-cp311-cp311-macosx_10_12_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 0499ebcc75d4330106987eb2bbc117b02f4cbadac5897843715901ff0ef8c4a9
MD5 2fcdb12cb5b7bfcd36f506c2d70a2e31
BLAKE2b-256 97609b1f72538aaef3a8d619df873acbc92e36cc9a5a62f119273c56aa5fe808

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1a4357864df28e34e96aa0174674f969605ba1c08c5b1183767ad5ffe079b64e
MD5 82658947aca282cf43c90344b03f88d7
BLAKE2b-256 73190b6fe27c7cfc176a41f438cceffc916a09b8dfac9c5a1bb2389229d81f66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 acdd3930774824dddf44f1e660c321605b3b7c49d1fca2d75c8cb49cbcb90dde
MD5 cdb4e8d56f1359eeaa36109b34489733
BLAKE2b-256 4a90da447ea8c0ae556c8472d5d23bd7b6832744f33e42c77e763fa114eff257

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22dd6b85c89b4805dbec1c7f006881c17623a12cf8b56e263a0cd4ae47d343c7
MD5 044727ab604efc5d8c1051c97f8214a3
BLAKE2b-256 6c650e811aa053dd0f8518710c617334e54b53c14edaa3bc3b6639191c7de01f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0b3e146e38b74f89502b2262d2c67f363c11eb2d3cee8aada00e0f59fc45574b
MD5 114a95e28447d09b742f5dbd5966970f
BLAKE2b-256 fa6dc2142a0b2f6491019f7854b570830dc0a1e84b46e61b15fd89dafd5cfd6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 62657823cf4bdf3dae48e8fec778b512ad71c32644695bcd4e838cd0be23dbd0
MD5 3f7b542494a81ffa6bcd6f5c216cc5d5
BLAKE2b-256 f953cfc38303137f805898b83f39ac51ea3c4f80d084dd53a922fd49f62a80cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7effd02763a11ce1d1d0ecfa9fa57c0f8f9803e401dfdaff4ae4d45af62b35e7
MD5 a87c087da7bf17ff65e0fee92d7f78de
BLAKE2b-256 4260c249de44b0114c622005759947f7383c0f9326cb02729dd77be438de98e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1277e58e01c6007bf4c868d9ff54e1154f23d1000bd749071cde764dd42786ed
MD5 b304f0c57285a355bc9c8b7caf0f0660
BLAKE2b-256 4b7d780b2159fd646f365b91b24a3473d8d8c7f34882747bc5058cd81bf8854f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43f7151a419cc665e24a22c4d264d00b42ae83bcd7759683f5f2d4f95a74767d
MD5 46ae30c9d70be91f714a7792d028b484
BLAKE2b-256 0e3752f3e9010778c1391282efc146aacc60c52ca5e0290dbc26880419cb2a72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 84283a945353ccb5a782ce2025f04169851a16941a8793710090da0abfc07fbc
MD5 0fef66a3b4b3e61cda4db9cac8b1aac8
BLAKE2b-256 bdcf8ba5d42605a6c43114047d21623dc811e6ab356df2d9c770df4f307973bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f5450ee7b4b3f09569ebea7ff8b8544ac3ee77c013230a73b6954119fcb034f8
MD5 673f6686a59020c9d85bbcaab5984dcd
BLAKE2b-256 7246865e4b1d329467fe4ad94a87346c9e6c4413e0abf49afe1e2c0eb0f699a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c777c11bca576c6a0104e8102fa6c2fce5f015551bb3cad9c7d855615edebf9
MD5 3ff57dffe3bef350aa5ce32d29369af2
BLAKE2b-256 1c41b3f64e9ab6f4d8bca861e87a2f622a0795343fcc087fe13c666d9196a59d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ebbba797223be7d383c7538fae36b0365548d96946ffd1d0c9533aa15dcb26aa
MD5 0dde86d24ab3212fe367e8bb48d37d88
BLAKE2b-256 5a52eb2d01c4170a0817bef7c14b595e0687ece945ce2eb33f08fd213868a0e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8dbaa66abf6805650ad414705bb0af1dabd915de4f7f3b4f588164fd6a9d29ae
MD5 2052d0806234fff907dcafa9498d20db
BLAKE2b-256 c78782ff3ed6302c492940c1eb417a5f9a10a5e796260e8a2153d50cf60daf14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c6e92bc4c7519d9402165b4d0483b448a9902f1875b594e1bb5e118f7ddef3b4
MD5 6fd326569d79d83ca4cd9a61c01fe9d7
BLAKE2b-256 ed724a0a8950ff839ff78238945184e2ffa4698d902667f88e7de9cee63060f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f44ee4b0b94c1cd92620b8a1721514c5e2936d2aa26cf3acb8000de27eac2a04
MD5 fbfa7cb11879ea3fd9835224229fc8a1
BLAKE2b-256 2e81ea8308a0bf49ad88d7c584896548a8ce510df0ebf4f3a5a0ce24bf2f0398

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b67d684c89308a2e6db67058025b440f65e9c7e9631f960910bf1c7009802062
MD5 bc866991db23db1ec3d3f01f70b12b96
BLAKE2b-256 1917d4eeee58e790152143623c6ef399aca4a030959e1ad11322157c63c01881

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 306b1ace589765baadb9e2364061c89e31639a2b676665f208a604c3fe804067
MD5 d6ca5f63b80d22b518cd36b407403c02
BLAKE2b-256 3684848a34b909b108cf9424f04943b53f2ffb29dc8884f0dea3ad08caa21bd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74283ad509a037d6dd8830d7b2e52e891e7466ff535cba775dc5ef58fe5d8cd1
MD5 2001d3e16d23216116c66e4f97b7c1b9
BLAKE2b-256 6d10ecfa6f937714b9f6c4b3a7240ac0ef2e3ec0279606ab772f76340621017a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 074d9cd8b7c086ad07b315fa660f1871b7560a8c1ca6ffa7ad7c604666fb6776
MD5 deaddcc3b3862eef48174570cad3e2c0
BLAKE2b-256 63e2c402f24aeaf1ada16dcc77c6fd46f259af7c620e15ebb581aa0b24714e40

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