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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-1.0.0-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-1.0.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.0.0-cp314-cp314-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-1.0.0-cp314-cp314-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-1.0.0-cp313-cp313-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-1.0.0-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-1.0.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.0.0-cp313-cp313-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-1.0.0-cp313-cp313-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-1.0.0-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-1.0.0-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-1.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.0.0-cp312-cp312-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-1.0.0-cp312-cp312-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-1.0.0-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-1.0.0-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-1.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.0.0-cp311-cp311-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-1.0.0-cp311-cp311-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 d932043fa707366bd1f712fe9fcfa97217361720283cc3a75962742e78727e11
MD5 4a7dd69bc27c7ad9bc98b9ee983ca4aa
BLAKE2b-256 f23c96dbfc78f9f90ced8c8720e0f0bcd6894e48d7057697bcb1ea66750d71f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2405f4410e9d8cfdb23d3c2c49622ac62c9752814806b7d383d23239d60661c8
MD5 0f28880fe429e64957d2fdac93e38e58
BLAKE2b-256 bb9a80a27c41be4721574aba4123d127374b8791565830e66c2fb70b87de175a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ad4b7ba6f1b8097aaf005a6ec815474f86e95ccf5fb9724bce46b94332dd81e6
MD5 d42349b8f76f79cda7c5d4a872f90741
BLAKE2b-256 2d0dc0e646bf5bc72654e385cc1f8a9931e2f799b0fdb19bc0eceb2f0909389c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e449d288d4b0b48ab71ee6aad0934cfa0fd8b53d6b2a311c653e38390af6276
MD5 158cfa7792335e4dc93be78a7c4d184b
BLAKE2b-256 055849d277c25e07cdd5b3839ac11a194b40595a8cf640b3345f4dcbf4f6a495

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3a440cd8df9eadd75af0a78ada860a34c41ab24ab58f8c80edb26b13f9dcae83
MD5 fdc07f6a8de74b78644a6a32a27cd246
BLAKE2b-256 4e136b061c4f1bfe0936d3170e8d9d5c2ab047204e5e6b8fda0454357a88c63b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ad371c76bbaff8578444b2eece6e4d9015844a8721fa99071465ebda32e8f597
MD5 27ec71440b46265b8b8783375c5dd0d6
BLAKE2b-256 7baec59ac2b39b7c660917ed6709c39971d0f8dc3a4afe87263c85331b96e704

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 13c80152dabd955d796684b94a2ec50ab72aa5bea87f952428035e905ccfd3ce
MD5 929d749b8d7e58092f6af9741b3c42f1
BLAKE2b-256 46ce30f8bcc79ce468c35870f36d2ed5a36cbbdd48ef0b68f2fe19250083e4c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a481c72111933c78368f3f12f17d54800afbeb0e74bf63d0024c5e83ac3b2cbc
MD5 43a650e5f31b911e3774cf258106919a
BLAKE2b-256 23eef99d1796646762329dbb2a04771b9298b77291dd7048f36c0b7319786240

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0331197571735ed7d741e5c226777ebe9cead99a589c5314b8f4635ebe4fef8a
MD5 beced7a001e5967e62d6f756a9ab9572
BLAKE2b-256 296d36f8e4dfe2fb27556c923a56aef6bddf1cbf7106546286db59c879fd55f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 700ff636b28cbdb565d01d248e47e4e98130b346c287f49d4bfcbb6b5b14735f
MD5 5f552af48b4e569aa43e7c6c88e89117
BLAKE2b-256 d02fe29fc6b6b321239a9c4f24fa39aef0edee958b3cb2d6009ef273ab8a7a49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 24c2f14e4bf3d84e565ed39ef043a97202b49c8876572198a0992f10245ddf6a
MD5 2bf91c72c63d9d790f5d825d5b15e655
BLAKE2b-256 25f8134fc2fc4bdc050686fc6c7a52e24d70fa0106443327fb3139a92a1f7b38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7ea4281c40d166a03c5b606bb90f5082f93f82c41637e0bd41132978862e0a68
MD5 408c85a44ef3720010d3a6ee453abcdf
BLAKE2b-256 74c7904bc0ea0a74c82a382fd2f117dc8976a0295d06d5ae249c371202997f23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1a517852adce7cc36ac43fd31adf066849e8250736c2615cc3acd50db9c663a4
MD5 3f36f3efb057996ec24090f6fbc23906
BLAKE2b-256 8bef4ee46d91a89cdbe7a2c22ab482a8401f3dad178f1d5c94f052ba470008cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc0b8ce3c2fb138d379495813010700a08a5db50e2e9c96a35282acd808dc78e
MD5 4f38b4bdba830a851554f9e1e0cbdaac
BLAKE2b-256 e9ea34f918e5b1e1f15b6935076e8e123872e3fdf96a4858f89be2384fab8ed4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 87dbc229108d63a9eb69b46dbfdd92ac8900444dcad8d2a75b407ea918dbb245
MD5 508df1a081893f736125f4df9c01e663
BLAKE2b-256 825dd5fd9859ca33c5c493c4832c7bdfe9b827a48c4c60f6502e363d1fd21a7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a55ad370b47d7fbbc0550ebdc41f59c069c156f0303b7a7f1b390fd1f7707b77
MD5 03a74b78301a28273df914c497987eb5
BLAKE2b-256 7af2a21fdfe3d462a482b1a1bee2b30f9352d9720b1a8a93fa944051b37cea07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a86fed98019283033a4b1e1710e64beab76065079e4562dba481e9417e0166b8
MD5 14f20c843e624e08418fcc28f2c6248d
BLAKE2b-256 accf9e95db2da3b499f7431196ac4668fd75ca6ccb06f4ae7e0aa19efe9e34c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e0263344891757dae630190386511269947773da56f29ccfd093813648b50713
MD5 914ec168110891e9661dc9eae1c92064
BLAKE2b-256 7c1340f3ab2e5e7389b31b87355c2184953f85f6bee391f7e60d001c465e5580

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b78dede1428c18df6e145a7678c470fbe1c5b968087353d6d46015fc8b34233
MD5 f51d24565c784dc71b52923b83eb3ce5
BLAKE2b-256 3a825d9b7aff4a4f5df806226892329d3d92660707170da50f1a1ab932d1f4fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 137e91634573f7f44c0dfcf6be8571dfcf0a04bbeb57a97660df62a4f6cf050e
MD5 ee6ac17ca261533e8e70009c65af041f
BLAKE2b-256 17590f3349f55e6eaec57473455702cb67a005d650398f05a3025f27ba22f097

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