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

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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-3.0.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-3.0.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-3.0.0-cp314-cp314-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-3.0.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-3.0.0-cp313-cp313-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-3.0.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-3.0.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-3.0.0-cp313-cp313-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-3.0.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-3.0.0-cp312-cp312-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-3.0.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-3.0.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-3.0.0-cp312-cp312-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-3.0.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-3.0.0-cp311-cp311-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-3.0.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-3.0.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-3.0.0-cp311-cp311-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-3.0.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-3.0.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 1b31799bda65e396304bcad2b3380e7efaa6145fc7796584e525f0ba0df76637
MD5 64365d2fe0faae52b62effbba71f799c
BLAKE2b-256 dfe5e501310e06caa4bda6e420f3a27f3d59f0e7f9a25fcd8cfe545b39763e9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9376ae97b438f412ee3bee85ec1bdaf703f1ed00e6610268f00b03984e19ebe0
MD5 4c80c72111d7c46f47c44e337c90780d
BLAKE2b-256 98a30a45c51e6fea15adca4d0a356e979b896fdfcb9a1ddb5c2438038db5ff84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7c1afd09333d65e8a68e66f91efe55beb9033026ee36704928848bdc07a6f74a
MD5 a102d0fbc375758cfb39a1b8c402ede7
BLAKE2b-256 87f78eb865162fd52b594bbf667244084bbf7f1fc738aa44ea82c1f536764c6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7675ce5ca511b00cafc11234d2ec5ee061d9e831b74b3f680ef5ab357363a3f
MD5 a7f1a0fec03e4b3a0dbf06a57cdb7dc6
BLAKE2b-256 f93084d54d70a45f5e3f8e4f60a2b1735ddfd98461568c66862761b1bfd77a6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 703ac6a6566e0a088ca2e39c253d2386010e46f9b75f0d7ec30e4799a19a74aa
MD5 39decd1143aebd72bdc0a53db9801ca0
BLAKE2b-256 95ba1c4cc57ac549aa0b992ab905d025bc3330272449b40a01137ed3fbf62215

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 521e457b1a0f78594311f3a5e1aa00c6e97df22fc0d10175e5e89c4b5fcf2cff
MD5 5ee3c53c17566ee08c089bd4877b9ab1
BLAKE2b-256 a377f170405105c1b3548853633d4841a44165fe1d9f981f1abbdb2f8ed775a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d9844af921dbb0b4fdddbb510bffde7123ae9cca899f01be034c875dd8e4276a
MD5 9c5ffaa09c7ba7c2c577330c1777660e
BLAKE2b-256 271cf1bdfe8a17d0b44a3f96597791232cca27d9e3e18deee9e3286bab7f7f86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e339970fcce2bbf21543a5a2274ae94cf9e3bb9352cf55c0b3c897d8631f7919
MD5 7bcd4ad3a5723088586a3355a5451a36
BLAKE2b-256 a67edfe35efa2fcc6e1ba20ae42354930ae0c61fd1087c76c8e0f47187d4011f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce65844135f1c3d23ca0e2fe715ff91e21df9f458beb3f6da8cce2af87887e92
MD5 e8dfa0c507088689544e12b73707026e
BLAKE2b-256 795ab84f8e75f12d524617b96360b7b3233e701cab29285c13ab3df35d206afb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 144be701bf340d5e6ecae6d026007db8c57e9eda702f2d55c9d21880c28f3372
MD5 ebe3bbce7699c6baa5b6fdad74648021
BLAKE2b-256 34f401b6ab10a20d8f7fabb7f098eb2549e352e49971456edd4ed2526881da53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 39d383dd23f12efd5bdeebff9b7a51bf9769fa743c308aa564b32d1ac446466e
MD5 44a14b11a2fbd0303021a6c8ad64d898
BLAKE2b-256 7ac49d266e077927c89feb40f34afefaecda8ecb013fd598dc6f44e8c164f57a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 53d9bf2a80179a5012f46d4b4a4b99fb1a908b87744da435c624e2cc9b395981
MD5 61b074835f5ad8404fdfa915e24cef12
BLAKE2b-256 7072255613e020ffe0d1bebd13ec83d5fadcd954ee1c6fd8b90ace21e3134272

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 330a3ecd27f631ecd80adc0e8f402fbee6f0dd82eef5979326c1b8c8969ac504
MD5 072a94815ee3f3ecee5ef64642709ae8
BLAKE2b-256 ee84520dc26ec9a3579de682cb3de12b86abeb78cd8318c9276fd68d2897a683

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e02d8ce306c9a318370d0120e3af2810f2ca287f28b87fea39bd5e3dabe444d
MD5 bf8bbe5ced0e40585fb7391880ac005d
BLAKE2b-256 af10ed868fc2955f9ddbcff0407a4ae6d28026afef8bb21b8e9574685415eece

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2c92603bea17df82a5edf61bd3fcaf947d6b52e637c6993e3105ac70a4b7475b
MD5 caf295ed38a63db716980916923d51fe
BLAKE2b-256 d07a358fa4ed079b980d1909d37ef6afd61a190226a803d103b57b159044c687

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6afd83769b37eb1b8a8ec32641fd25244572c4d4371baba6fa7fe5b327775e10
MD5 d153f51bb6d0e43d3f3178d5c01b9938
BLAKE2b-256 f56a24cc33e951fb8066504c73eb36e2eb2c8ce241f67e2e85535b4716f7dbcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 69b96f553d87bd91d0191100aa637cd30e5af8a765272577f3d4da4e7be31af7
MD5 30a2967ddf018f7e861b22606c080051
BLAKE2b-256 ec4eaeac3634375785ca1360bf3c04dea81fc7a3440335ae0982e56e69b5c911

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ed0a7299fae0b1df6973ac65545cdcc93a9878251f99074dd50aa874cdfa06c8
MD5 daa7ab5a7811b3d8f44a5b8f67f0a6a6
BLAKE2b-256 b0f08370295d3e35b4f13cb84dc22e0a82d18bf91961030a97f95467780e97b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f11005896bd2696b19689e47d2096c5acc7d12b5d34d556e499ee4f35a843b97
MD5 44f55dc0407e2bf2bcef535158842e7f
BLAKE2b-256 1dd68d62cd609c61176410297c91df452b248a3c54e455218894a6e352a1841b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b222719227d0a713dee06118d8e67d65d5cff4ca8062dcc4e8a3ccd995c5b3a7
MD5 85ff25938ea57cdf1b3163573b98d66b
BLAKE2b-256 312ed838c06ca91bff55fd52aa30bc7f1fbd9b2d9b93508788a3d05a03de39a6

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