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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-1.0.1-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.1-cp313-cp313-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-1.0.1-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.1-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-1.0.1-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.1-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-1.0.1-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.1-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.1-cp311-cp311-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-1.0.1-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.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 03d5cceec3212df6161e406d7155a70123b9cb760275e12e92d75f278580b4de
MD5 d8ab891ccf6af3dfdcc3d07ba913e6e3
BLAKE2b-256 f25735ed0836565f0a0b1898430fca2e75acbc2b775167c47afc6f91e6dac07a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2e6ad364dfab5b0f60632bf7f3c770502b9e4f8eb79e6b6ef8078689e219c4ca
MD5 2c5f92f317b65c11b4be0979a7467dbc
BLAKE2b-256 7648ca7665c8b26fca4513317750c8ec0b41afc4af3571651568c81771d2af1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6c608353b7b81dcb7d7fd99ecb098b2ad499b5fafdbf97a9324af5526bc7ece0
MD5 86439d698599bc765527c770e202a6b7
BLAKE2b-256 a7c564af97f400e68b6b93ba5839c85ecd674d2bf27eb1c6866249ab14181cb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b3b07f3eba383bc7fbabd7a9c832f68f4184b66a4e01fa51dc156048ecad9f4
MD5 db18cd9f6c0a23e30b7c562133628a9e
BLAKE2b-256 999b5fcc63ef2a004023e6ccb035703d07d265d76b6e0c0412053d056b7605df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1005b283fd83f38284ffe8f7aba59b77e2910b828b87c600d542960926d833f5
MD5 043fedcbc81d11140a93a036feefa761
BLAKE2b-256 070e52d9c7f14a4525b0f1b7cf78d705f818a77be3714a205db8274c1ef5d7dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9b795523a54ee14bc74ceb59602e50996f23c45771d57bc36ffd0086630cf108
MD5 737b925f8e1c6a97a328ced530d520e3
BLAKE2b-256 ea2bd0b316a4f7fb80ddf098b959def6ad24f37583f2b7bed3853ed2a803050a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2776ccedba6eadeedaca91a78b6df7bc40f2abbc555decd24425e1f2de82afa5
MD5 5b36410c297ba4d98b643880ba1371b6
BLAKE2b-256 894ce54aba0c1318d067f9ba744f40248fe1fcf1eedba44b7d19afe8f4cf1b13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e3f6e42992a53cd78bf61d94adcec7b792c248a7b1fc010de1cac5f20b24a49b
MD5 0065f35b2743e2f579ee0d0ce35a6fa8
BLAKE2b-256 048200fbf4da8df6cb0c42251df8c9ac0dad5ef7172c6abb75017cbf332bd9bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30bcec25c5155051e40a3ccf269856fb1e8b5b029d117558bf3bc9cec6500eb1
MD5 0340c474a690b8636d2fffbba9ebd716
BLAKE2b-256 8a3c0eeac8e33ed37ac7e38f9a802d85f025c6a317e74b5d5651adf6504e4b5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 aff40b526701cdae4e20c2e966c651b3d0191ddb755ecbcd0b58af34998867a8
MD5 cc44a56a3eaad510b4e91c9f0826b603
BLAKE2b-256 fd9cd738437b3079a7cea0674a04fb90856c0af564bfd35f420a735794973f92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dd60bfd175fa50ed397a248063acef5a2643f2a133db27d468c0e49233e2f886
MD5 da9cd15e692afc5f75ee81bf4f4d2a11
BLAKE2b-256 413dd6667eb1dd2944af7d574b84cd6d672cfd3901b3d0f44d751c4fa14c5e19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 76b227355d849dd4de9877baad81ea1c9eb5b2757d4f4bddf3860224a3f3dcfd
MD5 fdacf042bd1e6ace4aac889ab3eafbeb
BLAKE2b-256 0485fcea60d590997c5e02aa185d2b1d71dc6c29fbe9d6319d9cd2154a9b873f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7f69a37d659d7871bb898e1f38ac7b361bbee57fd609c6089400073582a80d99
MD5 ffddf7570460a61443d2ae3bf9ea0e57
BLAKE2b-256 1eda2518e200ba8fb6c329897632e273ad7401f551ac83ba1e391076dc2d1e5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c53dbc5277f8c8c57da06353130b1cf8c495922254bdea1513c655cd9b70496
MD5 04ebe536cc4caa7c91d837a6a881760f
BLAKE2b-256 3730add11a385b1858321ed96a375f9b3bcf36f74a9bc3765535e7b60bc96c52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 93cb4065305d34358f725ed7295eb8a84635299f14be56366aac7f64e663b255
MD5 94fafa6e265e3683e42e3ed066c1ca66
BLAKE2b-256 80d5322d034bcf6d295bf22dade445a868156a84fb4754cec4e6cb44608cfaea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 af950477367f9ffac4511268eb12926e48e028777ca8010e23c78f871655dd52
MD5 8f12158388a70e135d88aceb81919270
BLAKE2b-256 6b43f3f403f84385ddf5934f7aa0da136274e64bc4517516b34cd1859b355fd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 93bc87f49038c25f500b04ddb83c05018bfa117d9025b300cd6e3ea0573c237f
MD5 82e752499fda358319bd09170ccdfe89
BLAKE2b-256 de79cd8fd20d116ef2e6514cb8ae2411f151f0dac407cf58d3d653c68fe48211

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2e05527f37eebec25e7583c1cb4acfacf8c43129c80cae6c0fef7ec9577cd422
MD5 831091e63012bf2a3cca8872dc23b81a
BLAKE2b-256 e6093bfd21d9de7b25ab1a443b2912286e843b9ae20a139ef26c2611904a908a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5aa2be15602294098a68148f4728a7bb515ac61a5d4b04a2e847dd2c9a48d6ea
MD5 42015359896d35f062da9fe7a8d3af82
BLAKE2b-256 8d32035b9491f450f16a28e3715c422e70a2f5a21e212543866ef17be6d962fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.0.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4ee1ab296f88f91709c8dc21851597d7beb23f402f91269b3c0c384054506df5
MD5 f02101c654975a5954825f36f89e2cec
BLAKE2b-256 df82c9cef416eef5c591dacd3c1719c5c382120323ba2bd28e88c8192552a3f8

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