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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.9.5-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.5-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2401bab86fa9e22f7f6d3cf77e6ca828c937eebacb015f21b9954c4a8f765b1b
MD5 7321c926e7503b26d9f76899e99e2873
BLAKE2b-256 bb790015ce302b5c6a9f09cc7273edd8f2e2cb89ef3632062bbcbc8750ed8070

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f5fb58c45ab9ae7b56ee4c1f95420db40dbb5575968a9e1dd0412028e1c06e4
MD5 b2a85e38ba7a2817ffd32b1256440395
BLAKE2b-256 59b928c6226783ba49887baad38de4f6065ec50c6db247aa608c165b5aca6703

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6d57fff027f350cbb1fdb5c4155324591402da674a7c7cc77d9ec82326d1ef26
MD5 5bded5f75105df05c017628eec281e29
BLAKE2b-256 add248eb7a3726872497fbd537f420a706a517c2f4e1ea17adbd6b5a7419fb67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f06d80161cd4e2203bc3aab83943203be546bc43e1f976c87b8c503cc1a69e97
MD5 1eac23b81d88115b4e64682fcea516cd
BLAKE2b-256 3b249d27d99845dcd36bd13b1f06c7600567adbb9dc53a5fccbd178cdd7772ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f0f97075445f34a6ec927678202f92307321d805d2a5e7d86b10e2dcb0bbd966
MD5 9c19d3daaed6fe79a7a2169a69738610
BLAKE2b-256 382340c4e57a330a08f4a51f55060a4e52f8310a99f5202fd0bec1c16f9d3eb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 68a90d8deaa1ddafd1ab383357cb82c25de77866cc562f8e264e362b72668961
MD5 4e8e7345d214d2bc5277df7e4630a43a
BLAKE2b-256 c80946becd7362223163de35ae397065e92a0bdf9c645570831f631c2f493d41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 76f708c66f1d029da8c25be6cec7fc7f73ad80fac3ef2bf8007a1327d48fa616
MD5 5774f1930fe65835f2c12a75297cbd50
BLAKE2b-256 08508ba336a0c398e3482a6d79083f8a0aeac30eb3ef02fde4d88fb934b00cf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e402b3aca161d27bc41d69f3a58f51eb9bbb540a9bfec88ac0eb6b2a4e849aa7
MD5 00f6a238267eae769dd71b4c0fbaa8a2
BLAKE2b-256 46a09f238e120f816468f090ec462d694974f8111abce3f17137a4b591cb57fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb85c6439c4a220ec3acb3ced5e91ac709ff2e3312b5d3aaed071326c4817928
MD5 421af5943d2c3aa1d3e2a979a17d3e26
BLAKE2b-256 4a320155d2fe972045fe5b86a66f8094ac3a2eaf152091e80a0a552f43df92ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 15a2068fa5670f6560a7f28d4ee592eb6aa09bd3e8584d93d1e2ced2adb0965c
MD5 ce741867a16355e32aeadc7b5e327a50
BLAKE2b-256 0c067a428edc4320ca7ef01752e35f49070f44f8550b6f213844873a82d8e17c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ca994fb5485e5f3d6c678c8a488207f1a787bd6991e4ddbbff2faa8f4a6a9a0b
MD5 f88823373ab1ab9bc77a946e02e91693
BLAKE2b-256 c5accafe7634a187c1e6f29c336bfec4198df75e0d4bc5455a74f909c63f919c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1ee1a69e5232a69c38d464870fb8c214fcbf7ee484b615d8accff8c599236a78
MD5 f0ff558ca4f0cdd010da65d051656acc
BLAKE2b-256 d60018c3986f04103b28ae5ecd3cd2aaf38914be852fec02f37aaba531f09f9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0d32eacc08860bd1146d23c0283b4c6789e16741df3656ba0afa27535991cc1e
MD5 663aab6907f278f92e545e3f1dc21dfc
BLAKE2b-256 dbe0a65025804036913c5bb06a832e23f251514a0644d55d4daabe235512310c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0869054059d7ea78703cc6715a26b806c134f9539167167d7c93c5a5c7322fc8
MD5 1f18c3012f9e0d3ce676f1e5577af36f
BLAKE2b-256 d2476f66ab019125507495bc8a4138b8e35ad62dc1ca344b8abffba8d8fcb70b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 54c899c728502bc5c7cafd89ed350d5a05266122acd73b08347343c583ea9e2c
MD5 39fe30b193c07b5af5dc7ddf6bb9aabe
BLAKE2b-256 1a055c8fd42da19da7084ea3987f2461fd4670dc2e357dda6ac8799b974015f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 027e261262786dab6e6168755dfb6a8cbeb5730da346517148648e2f8bff6a07
MD5 f40d556c29887a11670a7dd902cacee6
BLAKE2b-256 88ab0f72ee588d45f0ba3f135481ebbe4b300c3cdf3a28f9a90eb6174e73265d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d1acba8baa1524345b733900e236aad0d04b8e879f9ed6dffc6bca2fbb796b57
MD5 4b1516462aff62c73667f87197728579
BLAKE2b-256 e48481ea47295eedd9eb4fa0a747c0c0a28196ce142be4187c3c377d737147fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5ab7572362c0e7ea825ea9b226f96e718dd33c5177b7ab5d94bc0cfc72238ef0
MD5 026bda7ff0c30121441fb3177a404e08
BLAKE2b-256 e214453789832f23c2ef21de7266cb699f08682311bb49ef3c4290f8ecc53206

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a00720b6a3815236516da629c84b7620634d58f9baca8faf3b958df8b1b97f8e
MD5 9ca1b6aea0057d270747d9bf3bbb0a71
BLAKE2b-256 e06fdc11428c1239d4b6dab43a06eb4cd32c492f461bb46ef8df3d17fe6561c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.5-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 dae784d264ee1a3935d8cb8819d8fc9da321b2810cd12db774d56e4b079572ba
MD5 d007efb145decec07dd2aabd77010451
BLAKE2b-256 93771f34280583d57499ec56deac6e81e9bbfc4f9af46eb7c16774b3357a81bb

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