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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-2.0.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.0.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.0.1-cp314-cp314-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-2.0.1-cp314-cp314-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-2.0.1-cp313-cp313-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-2.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.0.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.0.1-cp313-cp313-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-2.0.1-cp313-cp313-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-2.0.1-cp312-cp312-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-2.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.0.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.0.1-cp312-cp312-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-2.0.1-cp312-cp312-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-2.0.1-cp311-cp311-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.0.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.0.1-cp311-cp311-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.0.1-cp311-cp311-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 328a1d0663d8f8e07b28b1510f945f5abf6ccd066396299d7f2fb16ca5c306b9
MD5 7bbc3c758a7892ab2ce7c4bf1ef978ab
BLAKE2b-256 bc0bce4bcdceee1ac5823a02997139a2a5245c7fed9c19a8bb041c772b759dd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 358102bb1121b9eec277fa0648680f9fe921a8b91c8ce0c76ab1aa520c8ecd1f
MD5 284030c940c002c9142fb96dcb6dcb85
BLAKE2b-256 fdf2e1f7b90ddfa5cf4a4d16afa285d6e0f56d0a611ffac9388d318bb7990cae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 827866314181d79b441fc5d39694da9e1109a49c226224bf535660a6eced5255
MD5 746a8340c3d3d621153f6534a192a3c4
BLAKE2b-256 9df949cf3d69c596bfc359a8f652e7360cfc4d94e38cc21c59ae84222fa849ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c5fea7baacdcbd88c47defc2a1f30aeeb7990934d358f0c40395265aa316a65
MD5 b790854b3ccf4ff0bb6ae93e975e0e4d
BLAKE2b-256 fdc0c95318d9962008c4d67074dc6fe56f6689a5871bc0b27264ff69a0f8bfd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8abb915bfdc6a055400a9888b740ef2791854fb4270d35a731d2f304a4dffec3
MD5 79478e2e41c05c95b4fc3f9ccf38af1d
BLAKE2b-256 337358b4b0a8e4bcb113532ccf9e83619a88ae2b85f89152c7c82b455f497fd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 506e98a0a92e278abcc34c76d7cc570a37a630787707ef6ae66beb82aa69d70c
MD5 f1e70478dbc71930359ffecdd413a311
BLAKE2b-256 33f9a7b989113d27f21c51391389626085c3b2951ef9c864a68f863249939717

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce0422fd9f552aa2d30154d681a793e52e6273ae00a20affccea342b8595f69f
MD5 0b0974e7c31d7039fff497ca03fc7b6d
BLAKE2b-256 9052310695a663805b3c62ec18581b144f93a0b8c9ea4d94b50f2861a3be6ab0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f80aae311d6829c613a9239caf53ffc2b285a771f30b0c5a13b7a4b99c21c297
MD5 3ff9a6e726ae12ea36eac1207af456e7
BLAKE2b-256 dfb9a54ffadda08d0209da70f35aa561db571167d9b86fc35af587ab5df938ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 efd4829fefcefd65b836ca3070bf82c10e7f055bb533211b2ec4741d89584aea
MD5 7f9268a3da3e79aeb85c6cefab8016f9
BLAKE2b-256 707b7abcc7352311c7749ddf11127b32e0ee2e5d7a762ee8c1a00af7aa770d25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4e3f35d66cf9ec342932e12980a1bec0a885ef0cd9ae41535c41aed05ef8943b
MD5 d65637318a7ec3a9c49f2af7cdf5ada9
BLAKE2b-256 81553731a2b068dba27970cadc082b17e9e784db1d12536e078d6d33db145d84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3cb62d651a2916b6091a220442a4b3410faf924c533288deabd8013fc0596a8b
MD5 93a0475889a74e7d6bd367e6071851cb
BLAKE2b-256 57c5c7554fab6e239149e1705b67cd55b5d455f4ffe8c7a0de8a8f399e052f1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 95bdb491eead033116d68137da9082182c1d2ad9cf412421c03d397f9ec354e7
MD5 dae0fd0fd9f30e8137487bb9bbf914b8
BLAKE2b-256 09e9bf8cf9b4c871e0e5595fcffe2574cb7cde7106f74e5c50f1625ab4529cea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8e81f7a901a43d229b34ab23e69c97750290109ddeb72a9dd19b1f024fdc7efb
MD5 6b6e0e70ddd1674ac3b3b3db6211ff45
BLAKE2b-256 136ea884934814027def5190621bfdf12d3c8bdec136ff4d25ac686e6a011006

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e2e33c786c001a353e21f0eb9e21ae36d5befdcf67d6e9c3878dca01e10110b
MD5 623734757eb666cf10c3de18ea683a93
BLAKE2b-256 cc67f7c7e381207ff81f122c480fc12ada29bdb1447b9d47b1a9a3f0d07ef169

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fcc804f18eb9ee2d6f1354ee0d7345d417463c8c7cdbf195292ad5cd3e80255c
MD5 6ad13d9e5ec20f96b03fd37314f0a401
BLAKE2b-256 3501b89e17fd892d606658cc338d37334ee6d3fa2828a4a486259a8cbcf12028

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 277992f5f28a54c62b82ca3226722947347f8770bf3745c303c54ede0821312f
MD5 215a7c7a6916c8096ade544df0d425dc
BLAKE2b-256 d5114139dd2f8679c2f37486de1ccd1a22f56bbe03a44300329931f2d2d4a41b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 de511fb9c7ba1392cc79959459438dd6a7aee5697abf94adf428a3489604f642
MD5 377deeda537651f453e2b23f8b5f6f0a
BLAKE2b-256 28bd32988437b8a0861a02ba703e0496d514ff63f99e582278b7b1602d4c4acd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 00fedb6e93b92219dead79dfae5ab2ab6c4d92358a33c88d6391925ff49a6337
MD5 65e3d081e0e2820b3540f7a37bedf6a8
BLAKE2b-256 b2248bca397cab1781c2fd71d1cf04a3fdca295c2fdc49a3b1d3fff8bf286d3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06d99fbe7800153bf73179e84b9a734857b63fe48bb4e3f34bfae0f61038ab4e
MD5 f0aa17f21c479166ed9aa42b2c31d77c
BLAKE2b-256 7044017cea8ac25f8b8f1980aa9fb34e8ed7b9a5d0737c4655d1b91b6a200ab7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cc85fc552ca8c1cd8acfd2fcf62e364d65dddb3c96c2e6971cb0f16f16c716ca
MD5 67cb8b1fd898b067c6696f2a3ab3c161
BLAKE2b-256 5a2d2e5fb57ca363c7b9fff940e2df954ac5dd65f4d1dd270b11b098ae93af2e

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