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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-1.3.3-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.3-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.3-cp314-cp314-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-1.3.3-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.3-cp313-cp313-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-1.3.3-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.3-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.3-cp313-cp313-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-1.3.3-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.3-cp312-cp312-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-1.3.3-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.3-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.3-cp312-cp312-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-1.3.3-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.3-cp311-cp311-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-1.3.3-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.3-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.3-cp311-cp311-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-1.3.3-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.3-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 35f358a5286ef3e96f045e207c4b4c97f9ec0bcc78b0364a74f88cc801c8635c
MD5 0146f3e888d27973c09d9b4dc1fddd91
BLAKE2b-256 094827716f845bf21fb0fb94b0d216e6cb42c0b6eb95f86bae98c05aeb97e30c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1a51988291069c902c30b5cdc60652b0e68ae71a409a70ec91b754a708eded8a
MD5 7f84889558a9fbf068161ccc363289b4
BLAKE2b-256 f3b977cd479296000ba05f07f58579c36d0dd9a7c2b9014fbed3a11539032adb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3c5feb37fcd33c20ee566a247849a1cfed1564d9c5e5c27758a84b8f70a0557d
MD5 3313ad2cd3aa4dd47f1710f8b1d7b7b8
BLAKE2b-256 893a589f07fbc6009a7e36964cfb46d18a0acabc392b0a15e1b7d6b7ff9a2aba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6d3839fe798f4256baa6c54d6b26bb7fa5611b8c40b0856b785a66100b8541b
MD5 9073f03ab35f28bfd2aea92fb8c87966
BLAKE2b-256 e4da35e1fa97c720aa4c4ccdd6a5c29c477728b5dba3cd101b8048f5ace397b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bbecd05f711bacd4743342ca4a45e45195bc6827a49ac189002b88c37b988478
MD5 9f95189e186dd87c89c6b074438df6d1
BLAKE2b-256 c6bf114ba112c7695860213c3266740ffe4e2dc7394044054e75ca692f92b1f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 488e6c1ec1736405dc3b4ec127bec4010ea5eb661ee24c37991383dda0f224fc
MD5 b809cd9670bdaf456b99b64ec92de80c
BLAKE2b-256 94ea4b561699d6dcf692d57dcd4bbef4dcf22196c795a426d2731a031143b5bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d17d7c4c8f1bb2e6393d2f75ebade791cca82d30a45f6009ee1d058ac0d5c67
MD5 53ca5ca16a36003f7e8fd9c5e374ab67
BLAKE2b-256 7205f73cd5785f80367630c8b9a726b94b4930247792f142295ef2d088b678fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d96c532f087eb3d7fc0fb020d3ac4a7736db583cee49721b589f5f80bb1cb9d6
MD5 9513633f240e26d5fe4430ebdd5fbb9b
BLAKE2b-256 59e3f9f77081fd4bd0798976a1c466f49114e3bf58fa8a52d6ba201e9b71eeda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e279d7d922834879a11642b32f0f68bb6dd09ef3be031dd06a321ffd989db68e
MD5 fff5ccf6a5ed47c47bd8cb76ac4622fe
BLAKE2b-256 c8a2244fee7c80ec0db62112d8fa3aba11ba35224c2c147e21fd17b444529a37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 23450a0917c6f8815190981181a67ee25087839f06b549039ee0ceabbab21736
MD5 5dd32b7891edc53967aca32c8dfc28d3
BLAKE2b-256 ffc12d2205acefd0b150d49c881e91dc66ae87fd31c5c46d430f9502694058d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 72290f56bb508c3b4f5ea37c4ece72ce907bc774af031cfa85c1cc7993fa4ef6
MD5 2f4b8bd160d236cf9bd9dbb155686f67
BLAKE2b-256 f6877b55d3b1d0eca11901da514e3743d39ca25cd9e3b8322ac93dc71e7a274d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4217d1e1c021611e82417be5fb41654182fde306a01b916250461732e73ce4ba
MD5 2f2789a5e67316652cbeb970b3125b5b
BLAKE2b-256 7a12a6e787c8aaa68fd1c6aaa9e9ac6baab7f24145f96d360bd6db2000c64707

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1e1c6c7d990cd84cfc5ac560e3c1bffd45f363ec37b383d2c5fc5edcee1ba9ab
MD5 0c07b6c4d4282e6a95199169b7181311
BLAKE2b-256 9f9b24919e1ce39707434e3084a9f1455afa26406b1a3d954b82aa9e085ad9dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0234347d522736c95a0190ad676003ed2256961c684dbf7af65dc669df03b0f2
MD5 9fee1e5fbfa427f0d240f3905024d385
BLAKE2b-256 e9d6ee9146f1ae8b5723ddaef3c34780a2ae4de6a941be91ed6079fc75385a39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 54851f4b28184d477575ccff34e45d0a91f1c8d03ea4484395af875af10a6d89
MD5 15a7563b9edd2d74cb1c355896bc0359
BLAKE2b-256 353e3fb60af567ee9e4ab2007ee21e1b53910e8834e339c4b4c9137190d03ffd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4e83343c224cb512b72a46c879143d12a3cae18f5f88e6cbc176b9ce9cf3e83b
MD5 97b0e450a6ddcad90adff73383d01f5d
BLAKE2b-256 a158c1df2e23f7314145a270675ba66d8a02f150dcb1615342536f6e99bb274b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e24fe8f87ba0b6dec286229e0b2e881e8a00a979d99a57c61d2b4d03e25c5920
MD5 bc94542e4a49b5e22fc633c37bf1e214
BLAKE2b-256 40424a104640abf43cf20641277b496701cf8176587fcbf64dd83e7377469b6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0fcac61a9b160d3f63d01c2d8909385c0bf37d2e172476ec7fbf78ada6ac861a
MD5 5445063d6e2645f479c0d33eb776269d
BLAKE2b-256 698d11ed78b49687a0552214cd30df82ee7f47fc79edd545fa5813c5acaf385d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ec7c705cfad0e08b2cd2feacdc64133faf7dd8afc1709e4615494d045907ebd
MD5 a5b1a0ead5c7764ffa062cde766adbef
BLAKE2b-256 b5b1b0fa7c0d200d26a0d35fdde266cf2ea73f987b65be52bea851d1cb39a158

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 47ba7e5fe5728e237d5be79abfdbf72697de7e72d6861d1119bfadbeda157b0a
MD5 964445341bd5d5dc8bfc7d58d39bc2f5
BLAKE2b-256 292c85d3c5bbc215fe68f77d351f73b700190305f8d35589b9f7bc3d032e99c0

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