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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5c5748cd34fec57e1919b07895e7461903d796bd1eaeabb48e10699659da1f18
MD5 1407605a5b28f5d59c689834cf7b4852
BLAKE2b-256 ae637e50aae1a7d8ad6717da6f2626832af64d2591719bc25b01e145ff15f6cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 259dfd173c019dd4e4cfb8d0c7eeb27dcdfc0a00dc9e28d59c5d639e0cd5ec1b
MD5 68d06198893206777a588a0acd946636
BLAKE2b-256 bc323f4cdb03468286ee0024f079060d4fd430c0ab955d9ea413639e2f7dccac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 151bf708a4f21ed0c1a51512298f0827e8f624123defa07a24d386bd2c5802e2
MD5 61e1f23a0e800d3a410664b08a8b0707
BLAKE2b-256 2fce2e97d70074eeed45f6d9c140d2df8d1e3a4f653fbfd1693f91d1061e9a7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94f1e55fd6080bc8b57473655876c704b555a450999bd0cef9f61c6a450eaa81
MD5 424e0cbd2eadb1c320f35c9ad0bd28ef
BLAKE2b-256 2000fafe9888a41a98b343ade7a5cc5e1ab97df5b90b659e5a1c0064a027f06f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9ca1ab5a50a4894d80075b442574a1047d843b7739529c33413e46cbe33650a1
MD5 5a9edfc28e2fc2ab623b4d4e2cccd06f
BLAKE2b-256 519f56bbbe8a58073aad57387768c7082a5e1624a20760daf6cb71d8c3152c4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0fd5d656e0fb34b5fe7cee53c8a3b18094675cb53e36e8193bc95f368ab2601b
MD5 abdce65e893d32dd13a1508a6396ff9e
BLAKE2b-256 ad50b412636367fdda4c8d8743cf1e8cd68886b0116af163fb412f7b60d9abb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cfc22f41391903094f8d81de1c1fd7837eee14a4ca09dec18c6e18defafffd46
MD5 e9037438d7f3e92b401130cfd9bdf256
BLAKE2b-256 17560202f9d655fcb4341ee28843d62c4183b0174da1cd4352d881f0aec52f41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 27a292ca781f528519f2d0d5e259025d3f6d6943339efedc1097d291e0a6e0d3
MD5 00e5258af42f5c988809d8c717c3a857
BLAKE2b-256 37ce0bc987cbce22989ba4d21dec9f4d1d6ce17dee608dcbd957145baccb9194

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 874b6f17c89e88618c717b6fccea9507463f4f404ba576173e451b129e1d1254
MD5 5cdb7850335274cd5f1d8eb6c384d8ee
BLAKE2b-256 f3fae928a361882b65797c7a09c7c7efd50bf889effceb68eae95c0da044e448

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 75d2711827b4d48b1a105ea4025a98a2cf7f8fe84b14b564bd6fd4aa89d2175f
MD5 bc1990b6077fb4507e01ddc70c40c64d
BLAKE2b-256 a1ee489f5e69e3be5afe9241442c8b1d9e709bab3b3ee6f13fb267bcea366a88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 39c360e160723d2b339cf9c37d1ac4e9784a0403bf8fa8a03f7cc254d194d61c
MD5 a30081a1350683e2c0a37f88299c5039
BLAKE2b-256 6aa8e4cb135893cd72f6043ee572543089e37d21c851385a24c501a8468d3278

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ca277c34981e0d97c13eecd1aceab5e95e8a2ba9f6185046b0ac2f4fad409074
MD5 f4ff2304e4e92cf4e489cc5bd352a548
BLAKE2b-256 e89fe8e3f305aa4e4d36153cc21160f257a9d67eb127f8bbe4510d329fe914cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0eb79047634873324c723558cd1be9d70c1f5590e89a86320a82bdeb256e69f3
MD5 13bac5d9bb8dcd669dc06990d61d12d8
BLAKE2b-256 dfda84aea90ff2ebd1e2d219b6d576a9f66f088aafcee853f0ce245a18c54e19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d6ae3dce4bae29cba6421255bc70991caa5e6e9936e64c1fd4471082617c0b3
MD5 4ed1559a6e9412373db1d253d2e1927b
BLAKE2b-256 f0efb50bc2699de7db4fd86955204eba5a007c878d9c9fd1e31441cf9eec9cde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a2d3bec63b5a289bdcc3b5ec37f3b3522343c0034751a3ac1c1e26fbd8a186c3
MD5 565fb87f1ab12fc42133685c960ef09b
BLAKE2b-256 3d6ebb105c2e4677bd80cc2056c78dc20f6718607916e3600165791d842815ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e54d7f8c1c5fd8b37967006c8026569fc1e42f272d2331e68aec2e6b7bc0dbff
MD5 303051d2099a0ab995d5855e46c1e66e
BLAKE2b-256 843f855562133e2fc457f41aba61da14cf797465e6b3d9eac37e9cee73e21c4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 93a999802d0bf5fa71e360289589a72d17cc42e436f19fa205c2aec32f017dce
MD5 3113bf3a529b39bea4e67a0c7aa8b29f
BLAKE2b-256 aa316db7d5363c680cc63d2738d355fcfa61780e01399884d4fcb639fbd3b580

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 adfe139a93ca37d6183124a3773ba8d04602160792a32b36cf19c350ccb5b14c
MD5 b77fabbddb44c82e4c59241480757d58
BLAKE2b-256 3884f74f6858d2804f1e80dbe245cbee4ec41de42107456ecf9edcda576c06dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f55671dfc386dd4dec75a42ce8bac5f19cea034190fff4031ce66f8be5d59cf9
MD5 bdf103b018eb94e36878a973b0735859
BLAKE2b-256 e7266eea4f7eb3d36fd9e4cf013252e6098cbbe263cd86f0ae5766ee5511f77b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b9-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 71412cf062cfcfd764bb8d97a7e8fb6164f5b9942ae524b3985941523831dd7b
MD5 3a8179735275334a1b8fe61731cddaa5
BLAKE2b-256 684f5eaebe9c139cdc6b984e996eff64127b7d90860d5b3f3e085a604a5ee5dc

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