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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b5-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.0b5-cp313-cp313-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b5-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.0b5-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b5-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.0b5-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b5-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.0b5-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5beda80792bf2d70ea9e861b04ce5001ce71206cbe9c12129d86291d940b7e99
MD5 4956a9794b843ae187513b23f23d8cdc
BLAKE2b-256 f459fd4cf4cf7c966ccb18f0b1806f79cf023555f60bb92ee806c329ebc9bb71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 160de0ec105058873d7c5e4f955a13835b9bb42bf82c5f2d369a118dc24fe628
MD5 cbd6fa998a9cd87b09ef3b19ad039f93
BLAKE2b-256 6e2fb91979f6bc566aab43ed2728b7f210a3d2c43faf4d84e79e369eff9618e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6a4386f5430b56edba59e0c567c8966ac675046938526ef80077063ba6a1cd47
MD5 0b20bae5454b69257a16c6d748059dd3
BLAKE2b-256 8510127c4095ce515af22d721b8a1733627c231b04379f38e3eab27533dab4ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac052dfb9525ba96c8f89654ce8b5df78c2f3f6df1808c75adc2dd741d7793b2
MD5 a79353625829121e0947a759a819f0fc
BLAKE2b-256 9c0cda052700c2270b7f0e1094f13db576872a3028d9d0f6f15f6b3477bf9111

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e2fdf0a9790929e3f58e38dcacb0b656fb595f67ff96e7cae6f9a5c4cbc6b97c
MD5 4a5d46fb458b4aef1ec17e6e34977768
BLAKE2b-256 db3d75b2b0a433bcc8ec339663cc5dcecb7a79b82540f249504bdbcc86358fb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a474412b9fa7b140495bb4b193c0abf8f9768bd5209cadec59827821112375af
MD5 e9c0251e2d9ef126cfd9667ef40c1578
BLAKE2b-256 2067625e822c2e3752538a35005b7e14ea4bbc60053553022d81d915237d7774

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf12c53ed08bfafeb02f6fcaa4ed0decfa036245ca00c348c5b194b3ac3acca2
MD5 8e051f840b31ec0d9e81995a7f84edaa
BLAKE2b-256 cd16df175d8bb3533c5e2156492b6c9ee92d1088680e63f4d48c70ccd0b8c255

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 367d0c238cc03447cae04cf594412eba6232f69a1573624b34b2fa64153af853
MD5 6cf413b2df79bd0dd981d570d8a02d5f
BLAKE2b-256 8d0ba2e7ba5bc503b14e89e2ff3a2315838ccaa39b708f83bf9f1845936ee94b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a100b485ff68f546934dfb3e49d0d3bc787e4f3b6feb8d6456b659a5a540a0d
MD5 8e0a755808c51ead6866430d7d02dd5f
BLAKE2b-256 997bc7b768ce0a2691bee4ba99a999838b3e6ac177585b058bd79f83159517ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b939b26aa4aa82167b59afb1fbe0b966056c0b42f1a0947e839c507ddf9c052d
MD5 6d1225963f590b2824aedf742f97b106
BLAKE2b-256 ff0f4d8da536b126ff66f364fba3d1440bf6bf3e46f58f4748dae54a72f9c030

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cb4ec07c634ee26cda773644babc0987123dcb12f11a6b73530dd507e5285b84
MD5 a2b74c328c5ada6f250638dc60e4521d
BLAKE2b-256 2a54129600d1c3eeca8c9889607e9dab46f6e332855a9d36446470add3af247f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 39b66cfc0a9bea44bbef1ccce6a34d230693d0822591396878002132639f97b1
MD5 dbea80fe865359e4d7e9eb5814a9cac3
BLAKE2b-256 4027de4d8c68a07885321e47108a4a8f9ef1b5487a178cca6be8a1c9d8470213

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9dac6677316bcfd7bff2d31bfe4b2a75a618bace3a34c7846f94cd25c40c495a
MD5 078a8e4fcf494e4502ac610a735d7c08
BLAKE2b-256 a6d608f61e85c1c7c26cf7335b057765a54f5c4a5b91a2b92b40bb790a7c876b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3410ef9d44511f2adaf2c8ee47cb17bc6da41f99628e485bd4f4212773accd6
MD5 bc0923ad1f1385462debbfc618f5705a
BLAKE2b-256 1f4db8593add1f48787a64c0f5929fb70059097c488f7aa5dc705a6bc290b0af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 752dd90dde524db937a91d331fd204354c9b80e230966f04eab2738a95c2d0f9
MD5 33c59eb14602a021c4b886a35622afa1
BLAKE2b-256 13de8a9efa6ae9bcb3e65a0bafccdb571993cdce7f3e8ec5f99f62979c95ce00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8f1398b65ab392877a881ddb38db9f71e5511cdfd6e7c6ca3d6c937724799ff6
MD5 dc8a683ce6e25e290e21ece8c27f6b74
BLAKE2b-256 6920512db478454bc705f755d8f2b9593dd9cc25e37d51d5ab7cc597f14d8405

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b06041e6c37ad3218d3b1d555252b2911b00f08825e0e8b492fe6e6774be547
MD5 aba0316b1a1c42d8ad2fdb07ebd60f78
BLAKE2b-256 38c5ed572d84eeb28554c35d0f083ca747b072d8f9a129931f25889f3e9d0525

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e3cd931d622201735083ed4890c2bf5d207a8631ff9fe1951071e8ee459c852e
MD5 6e1753c2a61521f74b3293dcc731be8c
BLAKE2b-256 78fd5f2385d49b9751377b5fd7d10dd15e742784612acaca3ae838fd586f549b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9746b15deb1cd7867272b2d290da0c2088e62df5161e0747be2cf808c703d21
MD5 402318a18557c435e5ac1865441b8df1
BLAKE2b-256 7e24ffc6d22190a70bd1c3272076b841071e5bdabac6c3589aad05161d2061f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b5-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3a2613a2d24b77e91c96ce292d159fa0a5a0c8b179241a3bbd958ca88251363a
MD5 34459ab5a7450bcdc7decc5457ce9970
BLAKE2b-256 ed158b776b6334a34c6396bc663933a40c63709f3929869ab1583a39ad94e07c

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