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

This version

2.8.0

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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-2.8.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.8.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.8.0-cp314-cp314-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-2.8.0-cp314-cp314-macosx_10_12_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-2.8.0-cp313-cp313-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-2.8.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.8.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.8.0-cp313-cp313-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-2.8.0-cp313-cp313-macosx_10_12_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-2.8.0-cp312-cp312-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-2.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.8.0-cp312-cp312-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-2.8.0-cp312-cp312-macosx_10_12_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-2.8.0-cp311-cp311-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-2.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.8.0-cp311-cp311-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.8.0-cp311-cp311-macosx_10_12_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 41e26089d1f9c8be27f99460c104063b6e7be5cc4396074aaaf85c7af26638aa
MD5 77f9d3582f607175d331b5fa160adf79
BLAKE2b-256 913726a5cb92c6a46a67c6b4d50fbb4131e995f0423819ecee21553495982041

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 42669f5baa57fa3afe821eac77cb5cb0d4a5e825dce5341dcdef11e8a7fb2a2f
MD5 51d8cc45b8241fad236e10ee87232951
BLAKE2b-256 f94af0ee459f1ddc732e7dd57a1e428ba2461d81d64beea36bd7b4668bf01b42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 22e99a25fb72da2b9575582fba40d536e577614a90e1fd6b748c0d4e3b3b7f8b
MD5 a415f73b4ccc7ca50da34a6209dd18e6
BLAKE2b-256 e92db647ee7cd415d2016a79d07765e6a17c6559a5fd6722fbc1b28b2bddd9c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ce8804e4eb4fd95aac505c7c65fc25666c4129677a9bf655f5c6465b14e4f9f
MD5 ab7064c22c645f32aefd7435ce468abc
BLAKE2b-256 cd43a07f4d4c97d9d51219f439aeab459749a99e765fcaaa14f1f5a1ad5e2a7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6d2d5adca9523f5630f3405121d0d1821582c2f6cbfbdca0e4ab7a3d306af8a3
MD5 c150fa15c5718571cc711cc2ea67f2c4
BLAKE2b-256 8b5e90a2547aef240e71ee340665e07d6bca322dd1a661e4d1f1db9fc823184e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d1f77e459ab3b77c25444bdaa230bf09a5614840453fdfc37b3771ebf5438c59
MD5 8ff1c7fda2f6dccee05b73e83bd91247
BLAKE2b-256 fad35cc9abf33a92573ee2e330d273a319501a5a26e4b7d269c823a19e4a1627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 84c1d82d8e8bb950b1652bbaee5473e8e7b4f189903463b04230a3140785d364
MD5 62b883266c13f2cfc3f6ab671b1e0e7c
BLAKE2b-256 f4c8f25f4f57c900c8238ba4b8d8645f0a02f7cffef1b7618e25f9715837f54f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 02be989f7dce971f7aca089bbe459b29f238b483f5a88eed81fd593e89d1baa3
MD5 19524aa35b3ecdb42c46a0b32d72d296
BLAKE2b-256 d60c797caf7e557abbc3c04291790c9e9cbf6733b1675cf8302a47c380ca246d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f24d6ce9bc288edbb4f9701833c0a0cec548068b1f815715a61b047093d743c2
MD5 8830e98db81cc8eaf7262deac5bcb7c1
BLAKE2b-256 b0f6775d6b4555f96ea1f76a26f63c5d7b7b95a6807de5da05e0ece09e0a2bbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ce9204efc13ef3ca7944dffa07f37410fa0e52ab47ffc50a4d36a21ad55a09e9
MD5 6d8a390899dab544e10410391f4321ac
BLAKE2b-256 01c4e791d5ddea5a93e1a6562b8562dbcf27e37c2e7fd64f111e1ccf87b45543

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 34d8c3fb4eebef93f7ae021022ee395224ea2db82988344f945e6d95136a9a67
MD5 e142d5da2fd64c3224694eba39625c66
BLAKE2b-256 f4785abae534a77deaa6f93b9b965d0c6d3b33de69f281656181acc1087720e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 27c665b093ada8ed3edcbb377e62ce7649d3e0e657d227960dba66597664a2ed
MD5 9f1c226dcdc128ef4cfc128069e03831
BLAKE2b-256 1dbbc38fc4863404d0d3ac003c3a4bc43592abab603b5d64697dfedcb92c86de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 380ef04967f3307bd8b1698da03e7698e1d6e939d21cff0edb4740588099df6b
MD5 91042660989b336beadd61518b5bc743
BLAKE2b-256 477dd56ab0cb519d58aa040a98b964d8d3ed71070f07c1104a38527166ea05be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae0afb0f9723d6f9affb54e9e8c47f0bd050a3ae1f3e476bd5d39de4b966a28b
MD5 0819794c7ebf2f13d703c760081ea65b
BLAKE2b-256 01b38441d8746b9424387aa91d47143a8aaa4c6ced370f49362364600e401e24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 efb247b8c87017f791a86050b56b093cba6f7b1ae8cd78cdadd28db195b36af1
MD5 4eb9c333c991d322d3c4bd0218d76ce8
BLAKE2b-256 1eab8affb4a0f16b4be0dd0756c6a6fd15affd822a891d91ef994b11691e2633

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4a2134f91dad6aaa479907d05e4d85b4b1cb1af4bd51545027f0dbea2c8d9e80
MD5 978d1a98aa40c28e39c2ffcc8799fbe3
BLAKE2b-256 1bdfb0dd9df6375ca7dc28cf03b332afc31869f9addb6ae9d9bbc301b29bdeec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bb0474a19ff1089cb39c1098a46e6a78d2d8be834f9471b5b42d81705f5a3823
MD5 454df8bbd3f4921885ee14065ebd171e
BLAKE2b-256 0999f56ea5f6174f6569eb6d65e16d414c1b43a6db74e544636412d538269b99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e91d153819e71cad6e1796852a2dbecfefcca7f07d17e2c4ea1fb570fc28cf2c
MD5 6a45b35fb110f6bbdbf7494dd6b9df3e
BLAKE2b-256 477d367b8c6e6a0912e0a54e5d6d31cfea9b02393a05d0feaaf5c4acb16803c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f0420c3750a84a16379d6ef31af13021f8b4936f42e7bd290225251832c8c86
MD5 b334d399274ee8a08c02bbeac9aa81a3
BLAKE2b-256 4644d2ddac49c6cc0a2f291c0eba4e0abd8d12f5afc0cc810d69a5557633fafb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.8.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1373261477f8831ba1b6d7701a590cccab347c1618992b80fee4112d2875258b
MD5 e973acb9f0f7f42a02822ee13bdeb39e
BLAKE2b-256 ee0abf4d42e0e944826040d3b27b5ca24c39cbe20efbdf996502e814b34ac9ea

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