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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 65308b6688bfa6dfb56be27ad4ef84b21eb2b2075f18d8ea40fe41f9b5e48ae5
MD5 ecfdf5bc510b3cab8a41344cf1286870
BLAKE2b-256 69a665408d37febdb0707fd9efb497b75ed5406212282250e2c4c4816bf91553

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 426bdcb808ef0ac47012052dc8adc0c0325a7813183463fef4925ccb31d4d15c
MD5 613b158401850fbb3ca55b1d2cdced7c
BLAKE2b-256 c47f8129b05d380730fb251f350b1efb0e748a10bc604942080157e8ebbe525c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d60d6da719130e832be03166185e00ff3bad42943be5dc7f72fb68d76b9c09cb
MD5 8edf4c14172bb9030530fbd01eb97af3
BLAKE2b-256 651cf9b82301eae2c125e0a94f174dfa7ac7a2a398b62c91e71003abc8954c07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a3ffdaefdf71bb320ad2d86573ec4681c4bd35f254f3208d3759d47c6ad63b1
MD5 d466eaf60e43864c087353c50a63f769
BLAKE2b-256 2223003f7a0985edd00fc026b4fb06a527a635b55e5d6750eb4671455955f3fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 41a63881deee42e72510d8a66c7a7fb963bbc880383c30e1c53ccb4ae9c35d89
MD5 64080ccee8ee4aff8b776d8cd6ecad3f
BLAKE2b-256 4c8ea20576fd00e7cc8e0b3ce2f4f83a26b933a1966148491ce62bf2c682a477

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d2e7bfb953d6efe1697b84ca98393c8dc9bb8e0f6ccb79eed0445aeac9e9e726
MD5 f5b65a9dc0ea9247e005f639e511739d
BLAKE2b-256 0232dc17e793c1facf424da77140112c9f074003b88ea98ea4041c55fbb103de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3870c12ffed4cf22a02985ea6ff96a8c08f71c31dee62fdc0cdd2d56594ee49a
MD5 b83a37a9c98128b6113d76f862049c35
BLAKE2b-256 0d3c5fa8517bf228436690c030dcb7d12f9cbc5a5cd1e16eae4ec091864642e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e79a00f0506cffd68322df08bb350e23d87c923cb7543cf3e6de3e7fe7cdab64
MD5 6ca30c914b93af2b0c8741142cbadca3
BLAKE2b-256 df374136b38ff0c556a55f7a37d487501e53f171b16901087d85a70f92d2ba24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d222b99e10a53fae891af543651d893aed94a4bdd173f450d215d57c7542376
MD5 f467c14c7d3c7fd151ea13e1095f3399
BLAKE2b-256 175300b0cdbc2c64f9d45e96c4358c7dc35f754f853107596f766c35a91c3eba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c8343f257a7587e72a90cc38f98771c9d0a2c70fee9f1b32dfc581a1e10c7654
MD5 6a13c94f11f02663281feaa746969a37
BLAKE2b-256 6ea719d04e066aad49389f6afa90130c5d94099021fbba0569903f52cdb72a52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2a9b39e477efe666a8f20742fe84e2b7aa4ee6ced087b6ae010d4db3027002e2
MD5 f3da5abc6367e05351fe58d5043c86f4
BLAKE2b-256 1db7d87b13f715708207fcf3e8db896c989eb80e3d038852ec864f01d75922ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0212d5e8b86ac2cfb03e8e6fc51542d09eb084e7639c1fae86967f023ff43726
MD5 11f769adb35958d32561900c08323891
BLAKE2b-256 ed56804b2fde3a644efdab85d1a1366003e169e6b3ed360286498cb69122852b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b545e66ad1af1f08af927f0a251096b509b9123151ede922b860c4b56af202bb
MD5 969c057105ef0e6845c2090a23ae718a
BLAKE2b-256 c14dc0bb464e34a0132e03d8dfa0657ad5120baf4394c44b06020931f7c2922d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea1ef4ee53d5ac31d2a3527b3ec262877f3dc8a4f43b5ea2204fe971c77b4fc9
MD5 2f2e6d29de1bb2596fb02353941a03ec
BLAKE2b-256 741e40009b2c3048e8c7f7eec54703114f0c57eb346561ec763692e675225d7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 70be5cd3c617d9729c79306117778016ade8d2ed41cca906cc43b36b4bba3824
MD5 02fa60953f40eaf9d6923b28606fcbf0
BLAKE2b-256 24e86b80c2042d303bf44e046d6dce656c83d1d8d6ad8f8435187aa5a4e3f0f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 786e0d8638d9dc6da5ed66e38a892c3df742b380015db6460c851fc92ab4d431
MD5 40700baaabbc20e024fb036a9961b779
BLAKE2b-256 53afff589232a2c06e0497712caa16320d4905f6da482cf9cde876fcb8543e7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ca93e9c9114edaaf31c18dc878e07352262c8b998c92b0c935db6832a5e5cc02
MD5 9a3cac7cb06aed246c3f5b700fb3560e
BLAKE2b-256 868bb608935c0f6d1e94d2e316ea27bf8b265dc059a4ced550d94949a360ed8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 992ed0853be4055461a31f52c8c911b155b29d4472c05b9a61c6fa5eca89f01c
MD5 b177ec78db6cee36d9097611296872fd
BLAKE2b-256 7f82479f13bad5b6382ec7794b9c0f490a8b9c9b5c875e87875df90a224ccc4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7865fe80af87bd622cf4efd8234f70aebd9306b0f002c012d60cf5dfda0cc4d
MD5 218074994975515d330ceef4c0b80f7b
BLAKE2b-256 d64a58f9364a2c41ebb8b9dfa4a79169dbeb5b60c0f324dc7df9acf24fa85940

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0f9cc17f2634759eda27ab4800a740701167371f9b3fc716f935327d953c4fc0
MD5 36f7862a813b5dd00a1c39631b741adb
BLAKE2b-256 4fe58e72ced44e3280504dbe89dbf2cf91ba85969efb53969366631272d2551c

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