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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-2.0.0b2-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.0b2-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.0b2-cp314-cp314-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-2.0.0b2-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.0b2-cp313-cp313-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-2.0.0b2-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.0b2-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.0b2-cp313-cp313-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-2.0.0b2-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.0b2-cp312-cp312-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-2.0.0b2-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.0b2-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.0b2-cp312-cp312-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-2.0.0b2-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.0b2-cp311-cp311-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-2.0.0b2-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.0b2-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.0b2-cp311-cp311-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.0.0b2-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.0b2-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 1d381a3f221679a60bcf2497a9f6cc4f3c1679d64d4338a67143e5b633d68a86
MD5 2b76cc17e899a1e1ebd8259f04b236fb
BLAKE2b-256 f21f8ccc251ed0a1847d8009f60e65192af4f3c5a3303bc6c37b583e5460f892

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 766778e6a8f59bd8e4cb24597ff06d009f29d5358a1c0d12c254d788dbdfea30
MD5 50a320f2b5197edd0fe236dd95321b28
BLAKE2b-256 fce0e2ee7eaf2a28c31ee566a83e13595e28ffc511f9ea6e9f7f9a80de6a4694

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 58735defc9928ed0952fbfb112b7dd9f0050f9ea13d80eca67859dee029cde2a
MD5 b4c55f22f7d63dcf52b05167a0301cac
BLAKE2b-256 3cecb0e9e5bb0a65fc4fc220cba4de71fec38a280b61952f9cc3202f1b8dc723

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37df593870af6a8666a531aefbf12bc08442e39afa33f494b33397bd1fab5a9f
MD5 7e9335b70085591e3d46625f109deab8
BLAKE2b-256 6cc2f28af82230df5a5f3a3da4c38e2c0df12d8d4b28547a077a6bd6488717e2

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1e8ed69c17cf626a07c7c51e5e1470f9ebb7279ce96a02f6fd6f67f2effa8d89
MD5 168afa9e211d8abae41dc1ea0e1f30a0
BLAKE2b-256 c38763c0f8dc991f11e9515dd43dd13b9d2f8dd0ba6efb92f901215bb98bfee4

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 42f769b8bb9a20989d5e2776bd131e656c1d1a87572f57068cbf4ce5ee4ea20e
MD5 033ba9594454477454cb4d29b3f848b6
BLAKE2b-256 5bdf4a72bc078b879c5e2de74a7f3b0c2215f3406323eca39e47259a0afdcfa7

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 43b75e5bbd89e1f530602f77ee75bf0985b75c05023a9c7ada7c27087861c7e4
MD5 51da47ab39ece8c4986c70896a4d3eab
BLAKE2b-256 98ea74a5fa175e7796aafa7d42e010ba6c7e815b38ad886a842101273ba66116

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c4134d6dede90896fcd9e0caef3883a23aae653f3a5f43ad4983dbcc6f5e5f9b
MD5 8b44e45458908cf206f5b4ff275b0d8f
BLAKE2b-256 a6a598816dfcc21395ec4decef02e5dd91b3eda65397b7f670da610d66c99d81

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9b063319b947c8a43affe530578ca2dfd362b2fe910b66b95bb0b65125c01dd
MD5 9028d2595b3b39298e7a33fe0e4a7a60
BLAKE2b-256 db6972236e360efb0f2d33ed7bbf1fddc7b2c0fcc9fb9b68137cf2b73cf37c90

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8e5fd1353b31e9d823cd89ab6b18d394ca1b2425b57f0632cbb8e56c594e348e
MD5 dba70c8a5d4768c24cd5f2101cfeac51
BLAKE2b-256 5e5ab41b992000e98f6d67131c1900ee8dcf6b6801e9dc8fd881461e5dc8318a

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c707f22207cae474111fa125a03fb71be32d6cdc81731af3bac0fce83a3c4a11
MD5 4a05f75c852200a016fe8056ea2a5f60
BLAKE2b-256 e2d980a426131732bfe9cc4fb5de46c520bbec3665f53d85342e4215ce0c4415

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ddc68a69b18d7d8d4554335a269df60314c1a19d83860a19ad0532a7e647f681
MD5 2c4aacc74aeb909519b40028fb95dbdf
BLAKE2b-256 b468dca7cde0dba18b42e3710429ddd59a4da2fe4ed8851cac89a0e9e2e9cf54

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5da3898d2c00bf90993579bfe8ec684806048d5051df56bcf0d8c24b31133ea6
MD5 421d550bbfe6bbfcd0b93e9beda68ca9
BLAKE2b-256 26eb7070a67676f9770316e3a2e280139ed0ae1db5871db59715ba4baacff870

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33f33d94cf1a0878e6bf3fab2484651c07cd71726e59b10136a56f609fc78552
MD5 bc6f40681c12c5a1e6a5ee9b0309f8a7
BLAKE2b-256 ad049de6517fa3386e662b345ad86474ed910a075959974c53d8e14854801a50

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 40e1a6433d7a94b2c9946377485663daa1fae0c0d859a5bfed46df8f96c82d79
MD5 f4fe8dd92efae974f038f6e7667eda89
BLAKE2b-256 47f2833d53434d2cb8557d679b27d156cf571faec52541adf459a680289c914c

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 42bbe93f078d4363e40b13b710b7b0ef80f20653ad949c39f0ea4cc19bf9268a
MD5 51d3b6f28561ace2ed62c2a5c8084e7c
BLAKE2b-256 6b726dcb5e1fcde173d033e8951a74e7e69fa61f47739e282283e468690554f7

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 433dbc3cc53bfcff48c1aacb9b899d4b88293026b9b3b3083217db854a140e5a
MD5 09bd0ca51e82e9fae59235582bbc6b6d
BLAKE2b-256 a08bc69827851988e5c7726dda2e9e9f17679f1585bb09d84d7b92a67662b93e

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 11cc65cdc866c687cf05ee01cce064158c3d9160c275140d35ef8c8c22d45b1c
MD5 2e7f6569320d62d8e4ae6dbe4e61de83
BLAKE2b-256 8ea4ed9c11408f74ff7fe91de92e722477bd10c67c1ba23c66a7dc735cbca46a

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a03adb7faafea9391ed6a2371d5cbddb2f4bc422f35c7f8099e8b94b5de8d89
MD5 5f0c8771dcafffd4660a8a4bbcb1be40
BLAKE2b-256 ea9e50be11cbf30f87dcd114b0c7c1cf447d66aa0bc4e4b164f54dad4bb7dbd7

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-2.0.0b2-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.0.0b2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c23e44f4eadbb181af3a3688eb6a3657ea286d2b5974b59359e636fd1c87f8a4
MD5 76ae0ab1e133a058a7b8c6820b473d60
BLAKE2b-256 5be1786845bf0ee09a8aa4712f5d22a92318fb00cf988ee4d1d33cb694f36800

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