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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-2.6.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-2.6.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-2.6.0-cp314-cp314-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-2.6.0-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.6.0-cp313-cp313-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-2.6.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-2.6.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-2.6.0-cp313-cp313-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-2.6.0-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.6.0-cp312-cp312-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-2.6.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-2.6.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-2.6.0-cp312-cp312-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-2.6.0-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.6.0-cp311-cp311-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-2.6.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-2.6.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-2.6.0-cp311-cp311-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.6.0-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.6.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 8d0d13a03f1b70361e44a78e768f3bf71c5e928aef5ae501cf3a9aff8b8d2d60
MD5 dbc9434988709abd50d247ba45164745
BLAKE2b-256 a6cd465e63cd73f6bbecdf984be5b03db565801325bfd28d96b75f92f205cd60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 006610f985317bfd7bbbe5b4eee05813e003c70088363e3b021b05002ab2afaf
MD5 bc774d63446557b60a0e5b86690c8fdb
BLAKE2b-256 78c72e00c7223c3671912d6afb9424dbadea3b370f82e363d5c88275a43eb70f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e4f79bb6ba8944ec7e7a8f9cb0418311340a8b3eb83cb634138c5e38ee3c2fa3
MD5 d61cdddba79b40a38082e89a18ba1d3c
BLAKE2b-256 0297ba1313bdd845158be41e3e514b08db73b191509b81029b7ae83af8c6a4b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce7a8593c829f9318ee22cc5d9696bbeb92eecfdeee458afda08965d041410f0
MD5 d855c60f9e9ab9a364e696727b6cfd60
BLAKE2b-256 b7064f7ea31f37b1723c5700663f44fd5d24b83ecbcace7b6986d197c19ccbf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7815050056226a6284bfc0aff674a7ae29ef1b87b55ff0cca3c848dc1c2aae07
MD5 6745c0115176f9b07df7897d6cbb1198
BLAKE2b-256 3518a9c8d79ea762b5729f282335977620c5149c56ba9d2a656b4f1ed4b309ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b909a801dd7125be07859f8156285b0ab8fd28ac774d5fc962a08af78f21874f
MD5 cc8086ed4acf7d08e4d27e20ab66ea6c
BLAKE2b-256 86e5f00d8fcc12d87d5e6577510164ba1f4ba2ba1c253c147984204895b97f94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c1068ec86b795f0fffbe53aaaa9110fa7b75b17e573d7b938b832dbe60911e8b
MD5 37d4e01ee8249bc4d7d2833796523326
BLAKE2b-256 68a8667d418f5fc465f8a21ba435d5cca9c9bc51cd3d64dbcb21ff2e8aea6cd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d2ce044d22e48ffa9ab5e3c919d56238fd3d26afc060979f9355e5fc0d38c7dd
MD5 31e962b9d99862266be12be5b04f710f
BLAKE2b-256 bf760da434dfd8f3cb26c8e46bc63771bc67e88b47427f0972e984e0c06e5add

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b60e5bc2ae9421835bcc0546e0366cec6957ee83cf12a44e7ba0a52fce5db628
MD5 78132ccf169ee48b69510f6df7cad381
BLAKE2b-256 acccc6b25260e85a2bf2c644eedf109857130742e762c877ac1f173584df9e24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cd048eda747e2f6ecb41fc4ed08ce13c4c53ff4ba8bcb909a8410a6a977173b8
MD5 f30cbdf8bc6b1c57feedcfcc7192f7a6
BLAKE2b-256 62fe123065ba76af0c173ee52c3d6042601aaaa80516e42b94f0d05505091b11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6a4e63ce19ab2e5e9cadf38c16cfb8797533c09c9ed2ebda4956e75f3f71cb5f
MD5 7ec7777eb176b18492c9b28a0e9f8226
BLAKE2b-256 f171b374cf0e233f1a47fe93d02a75a8093de4cde9d043ab0726c7f4db206fee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e71e1843b0c8bf2c9b22361e10b7afd9734ba0a4de89a68bb3bff8aac22aa539
MD5 1ad7796561edc26fac7a548f3f185df3
BLAKE2b-256 8507585a5304f4bb10e22758a48156d0e94278cce979ac12cf9160716494f8ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2f4239627251c45514e9f64c1cfdffb14da170c2e2532e022e6a9bcd08b42d0a
MD5 644bf5c17b207e775a5e20a3de2f0df5
BLAKE2b-256 dc5f00d944258420a500956d086807c0063562d448b3f219518b168a5c2e6f5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84b9ca30c04c58b9799e3144543420729f686c7e764914e3414fb91d0d35d020
MD5 c28b0149a2076e881f1f9757547b063f
BLAKE2b-256 a9b6142a0f95102f7d62e6c9feb052a3c58f874582cf372415bce0dbf7ee7bd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 58bf974a1b047946dd01510f7c323c86bfa72c1e0f175c2f370c141f5ca7f15d
MD5 567e509b919e820e904b74c7a2131495
BLAKE2b-256 2eefcb0f717f89bb63507557a504c93216a56589312a6ce2b253c3581b6a64db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6ab0bf36249db78fe09b2c88b603a2eee30eb20b630f632ff77e84029d79dce7
MD5 eeaeaa13712281e295f5a51de35ee85a
BLAKE2b-256 f29cc648ca17e03670383e886af2a9c8465044bf9d19b0e772eff580867c7f47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8ad907759109a6fe200425c8936b73d181490b31bc9d954eb96029a22496a567
MD5 10275e9a0dac78ee4fb3cb61c972c9e5
BLAKE2b-256 149163cd2e1b39a0e65134f9482f0d3da7723ad176c62f83dc53238514827c7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e124b5b18863952cc33faf8f090e9e943a219237fe7cd3cde5884a0891d0519a
MD5 334f7e4097c3046a6c93b38d154b8960
BLAKE2b-256 6bf4393676f3b27185aa3bb5e0283e1698c816c4b4e2b69bb745f3084682fa56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd38d4afdb8f326074ef177369e71c14d8a006265eef3be4c7dad72f09b8067b
MD5 2c59c0dadb1caac760febf6eae172b02
BLAKE2b-256 28d7d225079c1243b27afc164e7d3817b4906159d5fcfa8e654f7910667b0b46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.6.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 da602ad034b83567f9b345b215b03bd1b486ec56dc9ba44259a98947eea1ad10
MD5 08305cfc6090124b463c6303a702e4c4
BLAKE2b-256 16779bbfb475214b2eba13582c0f1d7c7c9960b26a15d0136f1e84e6b0b4888f

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