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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 4ab791e08e9ff767c3bf44499cc0da57575242bed58ab6c182e3ba52535d7782
MD5 b0f34ea47c054de5154c2b7c480cac6f
BLAKE2b-256 a6a0b3a3716d0c18698aacb7f7abd50712c97bf60896ccea42260a457a96ea3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 270f7ab18e9dcb9a2621a80a76f39e36c42c6068e7b0bf19c9b8f12326523739
MD5 b2f126f0313f5ad786c8f948f76bbbd0
BLAKE2b-256 bef05f14655746e7a5e4ddf5f8d899c81696e4a36be20a1e052608bc6b6d4a98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fd391a49e9bac1bf60dac6af12a02b00d6786410eb3cd37a72ea4453b4a98a5c
MD5 c1e9f20b3ed0d4056a0401ba6d052999
BLAKE2b-256 bcc2730c158f95678dda08af16f6471aa25a811e899c5af7e4d11b34b7c019e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5b7d0933d96b904f4db6410938568188bdd8721b6550a06717e40a4342fb134
MD5 33495cb499d3637463c5013c1bdbe086
BLAKE2b-256 fd399e48660c65c19cc4db3201b9df5ecec87af56c3fe016aa48b531bb62b9e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ff84a7710a129d16c508c97500d0bf648b3f90fa2d40f3e5aa08d60a860626bf
MD5 34f4110a9c8c51b6d23959898acded8e
BLAKE2b-256 f6d6133cb7136c840ecd865b89dff60e66915abc16471fd128132664a81728b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 58ec9423dcd270e1dd042bb69138e796b1c5395c423d0ba06101b44c6031d777
MD5 b122b1f1b629006e15d278526743f4bf
BLAKE2b-256 cd514ded990266046b4f22093a60e61109f52063a5c2360b227da07dc4b4bf70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ea46c6697b3b24c32a5fddfe1142c108fe04557773105b6be7f6f9f12341a339
MD5 fea10199514be3882cc23b27d8ff2c29
BLAKE2b-256 b5e9dc983501a42adc1f3d060ec5eb7178770fd803456cc57bec54efe937fe1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4cac1426ebf6a132dd4e06f3cb55885e3da3d93a2023f66091a0d78495ba2ae3
MD5 8f2a0ddb6fe40b5dfdba6bb113b67201
BLAKE2b-256 3396d2ad57f3df306df2c3dadc2e94656f11ac58ccac9abcf7039390a5d37033

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6190a2275ad88e3497c47f786bd1456bbbc4139fe74bdeee35a232a60664b43f
MD5 97c5ce598a575b7c6cefa213e9ea8aff
BLAKE2b-256 c89601564f94fc3345e0e967b2766e7de13e965f68a0f01fa4a265decb452d56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5b343232fd7d1bc7b4a49a64f1c6b8d1288401e6645fb530bd4e2a1b2920e60f
MD5 9e21f4665bc43b859d331a6fb863f6be
BLAKE2b-256 45208f38820e1dc4fddd31c1c1291304b28c0e302499ad9778288d2b09532bfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 54459293a7109d62b96402e7dc790df3b3e14e3b5c218518142b2c3a2b716c7d
MD5 d0e2e1fc829e1bbfb1ead85b9b8aef2b
BLAKE2b-256 64c6e0a498f9c157eb89078de8ce872be47e0b547d9ad9bc089c526aca36f87a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ad94723bb0750e03acf41365b54b41ed255adfcf982472a6ae85c9bead4b8cfe
MD5 9e86ef91aac5641b51c42a1521c5f7a4
BLAKE2b-256 63c07a5b8d10636b553d4c223cf339337f36347f0b7ecc2f30d78d310445e812

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 714d698d9a0ffa4d4c3bd2a5f0fa8f5830c4fb7bc145de3b1757da169a89e551
MD5 c827a5ed49575bd75998ec05014ff63a
BLAKE2b-256 f23a6d1f25c92d463f50ff0ea5060ce1dc28ce6723c5d821311b78bcce49b36b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc3b5000b732f84735692ab9134c4beb05f999dd8d7f142a0ab4ecd389242552
MD5 64cb53597743ce16c450791cd99e95a3
BLAKE2b-256 5b4ccf2e087c7122e7aac49439fd0e8828f8de78a97623f9de8650052ca72025

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d0443928c8868ac1f1fd43b63f9dc04ff783cc5549554935e68276791671362f
MD5 a27255dd641df005f73d47aa4b9c9829
BLAKE2b-256 45f54fb8a37dfb10f7568df68d3982cb4be1bc1a464056e021f0cc0e5689038d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 20f6eb1a8d0b923f60194c44cc75369d9be60cdca7edfb603621ed1e77277217
MD5 50d79a9c92a93d96735a715ecceb77ce
BLAKE2b-256 95c828a62896417c4ec81acb10c49ee5d5f3f49e736449f6ec6f6d6cce27c1ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dfe8d8ef49fa6a88aaba7962e2079473976f23d3ea8190f1d17dc3f2113f7a39
MD5 169f33488cceabbff557f937ec81a5b6
BLAKE2b-256 8fc0cc018ba619d45744e4eb681e46e7d48a06ebb1848beb1d5b0efe2b143611

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 176fa0888323700bcd362062ba98755d6e8cb0296534179a314d925262f14c42
MD5 346a1f94297b3cc29187e50da1e2288e
BLAKE2b-256 af035425d2224fdfdac808f38868c59bb8d11221aa6a186805db66820b34a31f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4cd1aab3fddc20e1181776c5747cddeb945fd7b11b2aa20ddd7bac232a1409b2
MD5 e673df3540ae4960b72ed07182475773
BLAKE2b-256 2bf7e8929bdf70b60e7ddd5a144bfa2d0fe04c0e6260676662d54db41db1d081

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 587e86c3f723625080f0a1ad81256c50db41e03e61cff635bbd3b5237a8f982e
MD5 889f3245e91d2a8e03e8152374a30532
BLAKE2b-256 34f14ca3fc07a72dc22153255f0d923750156e48c6f080129612d876d118b102

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