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

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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-0.9.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.9.0-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.0-cp314-cp314-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-0.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.9.0-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.0-cp313-cp313-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-0.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.9.0-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.0-cp312-cp312-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-0.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.9.0-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.0-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.9.0-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.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 fea8250db1e2b5de1667e383066f802fe913f8195e10cfdb2e63e97d94ccc791
MD5 dc5db8f70895a93b00010d70b246c27c
BLAKE2b-256 3abefcdd2866001cda31cb41a7efbbe3d21ec4eb2da16055b5cb231dc2c7d0c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6c782c1f4792437a55ca6ce3959a968d98fcb76e9435f2d8e1859b668ea77ff6
MD5 fc708a4e1eb8b9c2d2516104929ed61a
BLAKE2b-256 c6e7927bd7628bcb85bd465d6e154245f0248716cd22a84f9449b4105a2b633b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 eca95a35e71edc46d55c39a86185d5376450569bfba624948e65f95b257d6375
MD5 e9c72b1eeebee4cd7ec42b3fd7fa2085
BLAKE2b-256 7b5ed9c96b2de61e3f7399c7535814c1cf97dcba5a14022b18d6044db59180d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 975236513c12b6a9bd368dd3b4a6c9890877552c895f3e403ecf095d40973adb
MD5 133fb5d03964b8d946f3d4d37cb141d0
BLAKE2b-256 8602abc925d9256ef0b7a8582d33a3dae7f7076bc4f0cc4a3f37446041f85509

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6de7ea25549904e48fb2a6baecec06499d580707e64a7b6c6f439757ed7e0d92
MD5 b27acd815773c7661a49982aba330812
BLAKE2b-256 fa1d22c2bbc030244a26ae8896b3ac6722a5a602ec66484da042e2540c2f10d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4f8c3147e51710054a5b39c2c44f6e9d6f08304751e367d649432a7c2c42f5be
MD5 318c3e7c28398ee56d1f54709a5b6df6
BLAKE2b-256 314693ea224c4cd1816eeefa5c79ea44bed4c0b36e89350ab16df68433ddcc0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b2100ce3f3c353a7d445a78b6f4fdf65316478af5e34da1cdde7940fd843ddc6
MD5 5cb6f8981231f18288c885147543e4f3
BLAKE2b-256 d5a9ceb5a91c9b8050a4dbc688b77e907cf9d84e3206edd73b916b9d0a826e2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3c8e88cd985c9cce8bb655df935aa48fbfac859c4ea9b3ba25199ff0574ca4df
MD5 a0f6b232e064affdc48367c001c06457
BLAKE2b-256 9c103260a6b6f8db2af72f5fd2dbc28423ea886029ab672fad81a4036b1e2faa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 045affbbd1df5e73ba2d9babc71da25dbaac0154f4ef28a950516ebdce99599a
MD5 413397ef406cfe6af51c4a1634339d00
BLAKE2b-256 759af43c288ee425d8e0749b476560ddbd1e2461b35c848eca66f322ac12147b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a01806a208f44f3e9449de8f3df747812ca32a6cb761ec6743c443c74f077dc0
MD5 c7419062a6e9c230be0c9bc08c9e9637
BLAKE2b-256 dc98eb90fbc837c540ad026e5f1f2d0300a997dd05fc46d3b25fdc486f3aaeed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a914f562b646b56c6ab0982991a92a1a4b526dae50f2e2731d050cd14fcd7592
MD5 8a470771bd73a11447ea0cb5db613f87
BLAKE2b-256 7f4d81ba748396098cddc367b0b7bcef2f1d2511daf63974b448f01a0a5d6e41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3bc4a82999156bf92c5417dfe95486639f3c467aeb6f052a1e9869ca61a6f0b7
MD5 d7ce2a6b53db5df9e87ac71824b09eef
BLAKE2b-256 4a7b98ea67e8ad8dc23c108d67a95f80a8a4578147bfa32f908e82138e0d8626

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2af0246e6a0728b62b0c023be0c9d5a8464b47e6709f3f42ec3e11569f3fc437
MD5 3134e70dde3b717ccc62acb3ac339bd3
BLAKE2b-256 fe861137c80151560926e8d8490f1692234ba91b56f4a8f706d0285dcc5a87a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15865e3c79126c74e9b0d7c03664207784703cd15155546a2bb743696d4e25b4
MD5 44c7d1ef13b2538dc4fd93bec5059fc2
BLAKE2b-256 471733ea5d6ee208ef58867923579fb4c28279310ce31a310f71a14c84dfe4a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f6886474d75e134dc7f9a60c1df35ee970710b99dd80a549059126d9b7d2f813
MD5 9198d051978a59837f37ab4e2b4eb16c
BLAKE2b-256 8cf3b050119973445392f7c5707be5e25857bf5ac9ada1118503a7008cea13fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0dc26112b28bbb55cf28698b0c458ec9983570b0e0bf4fe61af1566ae4b9d6a5
MD5 d375d24cd2c06cf4af1bb75b607ced3c
BLAKE2b-256 d4efbd5d11a783de95b36e71d46b5696e07245aa613d77e0b9f5a7de4163a53b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6cf5e9df170575f1944ee111788bc8655c05e40cf0e327c11b0bcf1bb1f4846e
MD5 f74e363ef65fe4e304c95fdfd62795d2
BLAKE2b-256 66dd06a0a22742ec83c7d061b6a5dd10d95bcb2da48c20b2fbfa4789d37e1a89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 01b7fd27132c032f2bf193fe4a4f87ace2d7a541ada45644047f498a4233bd90
MD5 7884a2ebb63d271340a0ed0004776a8a
BLAKE2b-256 9ee9c99b41d67f6018d6af256b0771779f6f07423be9c8e8f9c3482c1221678a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99d025eed079994386daba06417b19760e6206a746b1f3ce752712aa1fbbbc57
MD5 7706025b04cb98e06280ee35c852a7d0
BLAKE2b-256 659d1b372d3872c46c6844107cdf2d7333e74d8e5082b2a8671129e0446e3f05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 611b801a20885f6df1ed2ecce482b3b319971ce954f3990eab35f0b080d6004b
MD5 d71f1e11bc1a0f3b37325897b2463aa6
BLAKE2b-256 81707f3b0a759bf7ae350e189d69db78e65bc9316f38eb3c3528f3464062c04c

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