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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-1.3.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.3.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.3.0-cp314-cp314-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-1.3.0-cp314-cp314-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-1.3.0-cp313-cp313-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-1.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.3.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.3.0-cp313-cp313-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-1.3.0-cp313-cp313-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-1.3.0-cp312-cp312-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-1.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.3.0-cp312-cp312-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-1.3.0-cp312-cp312-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-1.3.0-cp311-cp311-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-1.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.3.0-cp311-cp311-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-1.3.0-cp311-cp311-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 997b05f2743d20d503ec69da1b13be8278160692c28ff0451c515f7315e696e8
MD5 ff141e9ec6e209479a062f11f30fcbfb
BLAKE2b-256 e7f7468c9caceae477632347c9c706026a37b41b19c0fc12c727c94a0ffd85d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4bf96b517d61d2e69b948a3441f2162875543343899528ef1a2c34e8850afd21
MD5 0f34af046718684a6235cc3d6f149967
BLAKE2b-256 2e01b2688fb49f214f2e17c65eef619f48f1322ee2cfb4e9be025ee46fc23b9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0b0f92cd5bb98a24e1c19b44245968a4d1a26a2e408ffd35bd7c9b2e0282cf60
MD5 49a8b28522d9f4814dbcec58b6992663
BLAKE2b-256 0f88488f864192ef3ae3a711e6a6e0dd0ca0c2f37fcdd9945897b508b26942a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 674da2658b778324fb5f6048a4e9c699c4dabd3ae11c1bc7da79428713c7ad98
MD5 cdd12357ef4e4091193efbc6b918faf4
BLAKE2b-256 f14369b9d44e6f18b9341c76aba5287f4c9cbb0d87909f06f121f66bf61ed7fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 adc83d88120abf3091813b67c15bfe063ca8efb1f6afa7594c08b66a9f479bd8
MD5 cfdcc2eb136a3deb2fb345d2b42ffec8
BLAKE2b-256 1d2157ffa3057256d208fae1f9da2a72f7c065b2ffef497b910b9c37c1ddb313

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 149b364a678967020bd7243d3b73e88194ab8f68da2aee4ebd13fc2ff7f43c07
MD5 25e4683b27ecbe9b2a28b547dd102fbc
BLAKE2b-256 9af0d5c7cf120c6090e205b4a93dbe7198d316591984514818e1ce17eb91a959

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 69ace8aa8d0ce6bb304cb2365000a0a61237283ae4c7ceedb775d433d1dbc083
MD5 a19bd7b093d3b53ea5572658e12a8191
BLAKE2b-256 2786dcac6c782384ca88f75e239103fe940d10dc03ab1203dbdad7212daf325b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ba0deb7a9958da0206fd56b1b420e668a5c840b5f2574ce0790ef1e979a011ea
MD5 1c5dd7b3b153d023ec6c845ea8028fce
BLAKE2b-256 951a806fb4cc1809c9d4bed7a6744119989317703d9069388de87fef2ac68839

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 556fce49d2b7ce10303dffc4923ab15d0cec475dfd604717269b01c376671e48
MD5 886567ee0e6bbdc3a8a923db516b31a9
BLAKE2b-256 ed66f00f07d79514dfec4d13e7031203a75176dc2c92ef7825074c4e338916b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1203a217803d967f8bdcbe022babdb96e2ed8af245b5e11e758e714ccd3d7170
MD5 bfea75441262ce4b2cde9c5fc4f5b429
BLAKE2b-256 2fddd29d5abd65d539fbcf7c58187055763ae4516e3cac547262ee3c34476e82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 280e4accc48ec4eb4098b2527f90e462e9a509ecabc21e6f83e0ced523a3c3fa
MD5 13d2fb7c7d7211ec1b8fadc343291bd7
BLAKE2b-256 27fc4b8c6ea3773c43c1c7d114397071cff46e99aae3ba910498cf7593a1369b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 28d566eb85131bc2bf17f4da5162e67ff05fa16cb539b36516330525f195e02c
MD5 327e22e1bc69447b282e20a89474d1f7
BLAKE2b-256 a0bda1e41c9b9c90abb69ea64ff6f430e1b6858a7b5565781d7c8e8a7dd4b7ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 05d2617262ec9e6439c41b76932a7f361d17e53f4e456b90d9e0695aaa2e8fde
MD5 6dbd19e713aac752df63dc25de8d5f3c
BLAKE2b-256 aedc45c1226e034b5ab76ca02dc9cdb15938580acd7aca11d5c9552f1534695b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b28b009e5139e0d9b06953b6f4914a956245037da933f4f75a0814992476fa6
MD5 fd64e777e9117d8366c53d9624480cb4
BLAKE2b-256 97b2069068aef73170f6353d5e53c4f6e8ba437c7e484de75059138f69f546c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e7e656f8adb6890a7a9a0d8b80c42ed1deaf88efb4479cded7b68e7789c1c809
MD5 43f1453487c4e7bd2609c6f5f389642a
BLAKE2b-256 32a77c93523b0ac85746c390c02cb98a3b5a32aba2f822dff9ce4104810b4510

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 13f356bbac6fa640235df7c6d248049db5fc5a33c61903a0162d6cc2c4dafe47
MD5 1862bc71c2ddd5793b159ed7700ff9b1
BLAKE2b-256 6cb4ee1899313a02c7d331551b4cb7df2a3431c0816c606ee840c0478ecc8553

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 73597997cdbeecfea5adf76d6c1f56f52fb65e4d4845fee42ae70e2f93ba13bf
MD5 7d9ed31ae2e22addb9861c8fac48d283
BLAKE2b-256 24b7d9c5800be2f463b3cd4d7234cdb401640fef0359f3299f5acf3c6e71fbe0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 23c1aba013907e19395a849138357ed21273e0ffac937932d3982c003624ddc5
MD5 4c597efabd189359b155b686591fb62d
BLAKE2b-256 b82d2045d3029f5d75951fe7a8487950e3a74940e50a78cca069d70856dda386

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12b6b4db5a71a4453ce82300394fed4fc8a0d2108dd4a2f9adcccba7268e2ee3
MD5 aad118375d7ac64e2d86db1aec590077
BLAKE2b-256 5c1f37ffa3a06184d17430d21600c2a11398689019b43be35678bd30ac1b3b78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 13668c48c6dda1d675185612ca6a7e1382cd2189b17c775d22477d69ef2a53d8
MD5 8e8b213fc5fb8e39d8898755e63abb7a
BLAKE2b-256 171e98cfa8d4055b00064a4e19b099725178d4c677709634d0cb64396e4b29fb

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