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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-2.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.2.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.2.1-cp314-cp314-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-2.2.1-cp314-cp314-macosx_10_12_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-2.2.1-cp313-cp313-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.2.1-cp313-cp313-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-2.2.1-cp313-cp313-macosx_10_12_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-2.2.1-cp312-cp312-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.2.1-cp312-cp312-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-2.2.1-cp312-cp312-macosx_10_12_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-2.2.1-cp311-cp311-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.2.1-cp311-cp311-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.2.1-cp311-cp311-macosx_10_12_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f3c026fc8537af4c103726a4eb433ec8cb940f57ceab4bfe4268883f3c8464f2
MD5 84c78b1fa18cf9a8bd44c5cf8e9a8102
BLAKE2b-256 04ebccbbbc2b6de7fdc859e6fdd67bb895a4ec015b90987344cabba015476572

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e4594c65a85f8124a3e6aa2b35785dc3f48f79e2db238ef8dfa20891bd445659
MD5 046e7bfccdc40ead2666eb444fda3c43
BLAKE2b-256 ffc3b9eae9dac22b4517ad84079aca7245508f68ef4db3c4519416588b906cbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dee6d73c69b8fe39dcfb32e8202d05ee58c97908c8437f927ee6864dae4a78dc
MD5 2ae65eb269dc76875f996c61aeb5c0f8
BLAKE2b-256 646593e79786949f5583152d652bed2b3a8eeca156ca3bc7ec175bcc637ebdbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b1f839ab6d963ead971be17a1e938fcda861d0afa148830468e1a3d469b7558
MD5 389d42d38838886e0fbc7ef0865805e3
BLAKE2b-256 d8b14512628acbb91eb0cba24722f91f79f506be81546f01e3b452ef4d550a2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6a1c37e56de96275e9774084b3dbf1646351a6ecb5ae0c4d3fbb06a7a9fc50cb
MD5 7812f0e98c2d5fa274e5cc242275e3be
BLAKE2b-256 2ad9cf67e178020428406a00480ee41e2287182c253ad8e6eaa02fa7cab2a102

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c0895e6f94bd6abee1a7b2a86991d205a28eea365189478d949fd118688caa88
MD5 bf9c58a9a0ff8962fb117d4fd97ccf31
BLAKE2b-256 ebbeaba10e343ed12f0ec0d6085a933cfc6fbaa2158705eea83f9b2ed3aef5aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 28501cdb48b14bdadc86948e3dd7d4194186c007e74f53129bb2a50b113d69b3
MD5 e30133940897eb8b5f651038edc6fe12
BLAKE2b-256 be956ee8ae82a42c0dfbe16025c011e7af2f2023154c0b23eee763b83f3135fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4a56b6681acaf751eff5c346733a64729a12257ce35de84833e6be838706dbed
MD5 d1e6530f7646484f3e6e7e37fbfd129a
BLAKE2b-256 5797f9e8d9e0787f453f0ff07b16ea5f4b5ce1c00acc2dd2d9212cfc93ccf29d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f217c03b2c2d6ce8b6981bedc924589d7ece3e1034f2fc5b0b828b06aa91d65f
MD5 35073f7eddbf83ff47f376567fdfe2f2
BLAKE2b-256 170e24e71f375beb611b0fea73fd94e1d537f1af00ac2346b49e1a2945fd9eb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a4885b2ea90e2ad7d6843adf9474540c157ccf91cf34905e4a56298c34a2b302
MD5 d4eb195ddc391b198a8c8679eaca1b98
BLAKE2b-256 49d61f2b45176eeab8de0e61f093455b2fe9a5a46fa69f7b5a7c7edf2dd64809

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2f3485f25ea7cc963081a08c98d614feb9a4a70965f44fa05cd92af92ef82170
MD5 e341b9d6281b9eb2fa669d0c87cfc6fa
BLAKE2b-256 a5885fa72477a749976290b2853b425506404c493bebef70b47e00a331f0af86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b207ee93a6cb4b165dc26860c390e0d09b0101853e92345193357e0b1ed9e04c
MD5 1a4c8f30b1cf776fe90db828c976b822
BLAKE2b-256 22cd6d5f52af4702bd54682102a24ef7a17aae88cc26685c2d86652405cfbbca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7218204e8829de96c331bb0c3643212a2043fdb7e943fbf831e0aa282c28b2df
MD5 63ced382264cbe0bae9d391a9dda5c2c
BLAKE2b-256 0781ad15359be0f5c3570602f61289f8415da58f66977346b21b05c53b3fad54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0eaf0052aba10b06cc594d527a92176a62593668e11395467b7195664e30dbd
MD5 f9a1bb01508c92fb6224b33c1255c664
BLAKE2b-256 f7ab6c8375fda4e6f2b592aaae92d7451e5162784fd85de0d19576c1798d801a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ae1669bd2055dc81a0d8ab993ca993e3ff3f18081e71ad1e3aa773798f94ad44
MD5 2c8b723f53233e8946ded7eac059b56c
BLAKE2b-256 0a3eefaae1975cc744ba627652f172f2e3ac9a1d925f80bd890eaf153812860f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2ba4dd62703ef4c6bec906a6617827eda1da797f086187841d378aad86c7193d
MD5 df35857175a0b7e97b162478db70409b
BLAKE2b-256 8a5a32e5ab7776b793d03cda22feedef51136c143247c68bb650b7d4193e1880

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 47316d4490cd6670e0ca61908c78e54ef92a5c4fcdcc9273c824b7dd51212560
MD5 f418fd6705fc7c32c75db71713f38ad6
BLAKE2b-256 7103b49847f8c2be3233ca053f8020e6b0be67182d7393d6bc152329d1d97af9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5e700ce66544490305c7f33814b89de0d722a2d5164a07283212f80b05e51845
MD5 bd34d43e86a95af391afe9dc267ba168
BLAKE2b-256 dfb90653b60271c553f3b0886f4bff778a48b76ce669d64f66c2b6729b84d427

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78418499eb2e1cc7073adf61709a2416cfdbcf8c57901b1e242c03a955d0a3b5
MD5 88afedf73f3a73016fc644506f8a6950
BLAKE2b-256 63e7aae45c99d1cad7e0b69227d4b1f1edd79ed9a9dcb906ca04e7828ad4a76a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0f59528d759f055184be134f27a233afa101ba10c83b61f63eb2ca7f21c90a65
MD5 e8d2192803dfca9ac9c0fcb671427fff
BLAKE2b-256 dbd062776490b75bca762dca56b1c2aeff62519920bef634b79443708f8677f3

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