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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-2.2.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-2.2.4-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.2.4-cp313-cp313-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-2.2.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-2.2.4-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.2.4-cp312-cp312-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-2.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-2.2.4-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.2.4-cp311-cp311-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-2.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.2.4-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.2.4-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 e29c1d5c9b2aa7860d2271803bf8cb60318b5dfbc3c870dfdf41013658f1e596
MD5 378d447cca975e6c3e931f5a223ef1a9
BLAKE2b-256 3d9d1f2158f9c8b29a33456a7d291225cc134ff298fb7bd391e7d8486681bb67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2acf6b9c6dd476fa3cf22943c315eccdb73d5ca8662a74865b018b93c13e6bea
MD5 0655fbd31e4a7a95f7bfee196708b493
BLAKE2b-256 f7c164aaea769cc975d4d95a3def9dd29aa85d3d2b2904278997fd8bfe8e65fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9e918fd2e8e39f74cefcb2ab51fbcd30be23ec7eb3706a6a203941ffbcc1f546
MD5 2fe8dccd5145146c0adac773c49af6ac
BLAKE2b-256 f9e69ad5d295dcd17841d3c0b1ac78756ef37b1a45393142d784f86334ccaed7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0c5c085d5323246494f7e3960ea4bd7e8ba014c28877fa9eefc12c8fe511bd8
MD5 63a1cd1e53b26a9e4b45b379b1ed5f90
BLAKE2b-256 3f438c0ca74e9ce6a6f8cfc2780e4b8419f31ec9ed3407c3ac30bc444666d95f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4a8234f9ff1108f2f37c61f326a6ebe5f9e4a6e80f42f0d6c31b66a0aef6f361
MD5 f2285203958f9a9240e3340e5f2565b9
BLAKE2b-256 0a1db505117c70557ba95828ba5d2946c4e1cce81220a855553f97f347f8ef8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8214f9a4e1216cdcb01187849f54251998dde3ec7f579665b140a99022e8351d
MD5 905b597e879f1e3b5977b27aed45a31e
BLAKE2b-256 5ff6e55e66d9e9e15ca02f669ad20532fe554eab8cc9c27f7020bfc7550a1927

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6199f0d7290f984925ca6806b2320d58fa90a961cffdbb6d3f3f0b77f5f78001
MD5 907839a624dce3ae10bc3de8c9c7e8f3
BLAKE2b-256 8c9eaec666111e1fe816cbc998d312e6d3b670ac15ebb66347d8c6e4a481e370

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9b4f52cc59fb93c9745ce1dd5a53857e33818e738c6e3187bdfaba98cbb6ab2b
MD5 befac68b6bc54403a60002a912ffe0e3
BLAKE2b-256 88e5fed741bbe7f09c1f78defbadf5644f742b254c66ebc745337279656b86da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2923c9468355d3b10c9c5976c99bb6cd030e09cbafe5590dd871956100e6615c
MD5 6071c28aadc4eceda473964f690c0fb1
BLAKE2b-256 5d7ea91a060c167dfa338f94dd7c3e069cb091c29e417ece9335f8ea0d3b22ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 dc3219e677679297d03cd93f5cb30da0876dc6a72ab2cfc2e05e89050feb93c8
MD5 a959cf16002cdd80bb261d8a2685380d
BLAKE2b-256 cbfffdffce069710b3e8b4374518e38086dd19113ba77048b83b8354678a8732

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 adeac7c0986bf892891b143ac41b450837731fc6e765182de3f7eec610ce84b3
MD5 f3ddab56d6cf5cb372f50e00f95faf2c
BLAKE2b-256 13a9bed2887fd25c2d96b376bad0e6673fea28ef4879d34941b33a68d23a7075

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c3e72ceda9503a60e016d0667cf24cb867485ed8ce62922431103561170653a5
MD5 2b6968b74a760996ce90dab3fd5e49a8
BLAKE2b-256 6bbc9c626fb27f2da5fd37de814f221fd1bfe805a7c649305413f6c54c880550

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5d492a48d8b9a798229c1fb2614dcc24338d74c90680c4086a8628085841a2a6
MD5 8170cca1472677bac8e3c7d42866deb6
BLAKE2b-256 3901b6e15ab452731e9f0d41c18e65e92a252b0d016e13c05731a02859197dac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9bbd98e238b5caa7ad21c81014c5fc787b0d568404b31a848c593c15d11e5d45
MD5 61d7d6efcf9cba31c719847dff369ffe
BLAKE2b-256 a5be9310274a6932bcfdfa316e9719f7d1ca7a3caa296765c5e92466766f2c1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 aa46f3dfb983efd77164674b7b667b7c501f92a9ed7d0c8b09838dbe0b68eacb
MD5 968a8bb0e8c0875b1c1a8c80d1ced2ce
BLAKE2b-256 4af65be917838ec158c3ee2cdaee388aed7c8f2b4e6e80e41fdaaaf581f5da45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d4f4005884a698c81e3267fcdcb5513bb491c86fef021257b116b2315e28ef7f
MD5 e73f11f48fa0e31b375b0f722e187f21
BLAKE2b-256 f228cb1e6a91058b29a96e8bc8642be2758a4e6490659e9e3e2f0ae94c6fdd20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b7995a4ce63dadd8f2a45a39144a31a69bd26cf8c01656973c44c48b5186c58b
MD5 6b0c19a1a3d38a6d5f5c19cb0a47401a
BLAKE2b-256 a18b4dda1dbe88d1ace8c21a2849695c8d4991e0f21a81838054a1c3de87d116

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d9a893414f80e7316af2b4d5b57d3454a74a9596be4b5c35f2bc1145e613370d
MD5 77bd61cc8cb89de1a880302a25797b71
BLAKE2b-256 019f61478912f612dd1bcde7164e8e4d5a711ffc8c2c57d49340f9ddf0ac6ebb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26145690a62c29df3c731d3ca3da85ac1b8375eb1e2c5ccae0e089babcaa2c01
MD5 fafaf747ebf73369edb346475d5d611b
BLAKE2b-256 1836aa141b8c4fdeab65bdf4c4a96909390b555227058e1e07d9d7af74fded25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4be0417ebd14aa8ea122e3726c0327fdea7025dc47d7615bfc4c84539ec21879
MD5 a61bee10d61450562bd7b7e6e7326bb6
BLAKE2b-256 576295d8fae2d9e9f2300a5e022b7d9dce303f3faaef68fe0d720645594a0041

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