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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-0.9.4-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.4-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.4-cp314-cp314-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-0.9.4-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.4-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.4-cp313-cp313-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-0.9.4-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.4-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.4-cp312-cp312-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-0.9.4-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.4-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.4-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.9.4-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.4-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a4ff42ec1fda9d1b32fe6bd24d7021de23eaa18a8a9338f7d1b6cad69292ff5c
MD5 d3579f2e2ebcc2ed64be4518c1e429f5
BLAKE2b-256 6ac431b010248e6212e9f78f412f0e6d4b0f6d805d63a8d65d5fd8c4ba09ad71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f8ba782a57dc5e1944b5a765783c532191a6911bd5a72c6a6fa454bd22ae8685
MD5 b08d66971e0ec93f1e1efeeed7621d48
BLAKE2b-256 e3c8ab9dd94b66c275d3646af6fb2c8749638aa59bd0e18928786f5a89519f03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2c15567adc86d683d837d25ef2ea33bce1dec589efdec3ae415f368b888794b2
MD5 d9e3fc85acb9b759d2a812c421df3561
BLAKE2b-256 0b26b3fa95bfc55bebbf0211077435d276b1a3581a50776d11fe8b6e56a1fb9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1575fbf47d7f38a175e2c2f0a729f9253228c1e196325faef06f16e316db336
MD5 5996f40cf3143c6429dc76036bcb1932
BLAKE2b-256 a05a474d9393a45a86775a7cbe1343d7025f63006aa2d89ea4d45655fd529267

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0d2f52244228b2721ad3e055d552f61954746b9827f659fb3fbda97254b706a7
MD5 a08141d4033d884e898dd04f2e2bfb2b
BLAKE2b-256 1c2fe51631520d0b126e38b52c28fb396a2d807a53db98d2c5e208b0b34b725a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ffd68460116cfa1b377e5a684e8a3b3557e04f238b8e351f767d9b6373297454
MD5 e4364926bc8041b2b33fd1890ce69708
BLAKE2b-256 4492349d756833b0fd815db8310eccddf4d4d55636a30b163dfb1825a68265b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce699f75c1671d01a945bc66030591ba2887d64c62fe0be085c93cb94c6b4700
MD5 e8f3adc9773b22fef801dca5acd4774d
BLAKE2b-256 1f2e617172777794f0c4907d6c7c286dfe8f9a8b0e7c48a2f6badf987000ddd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b5267519b06579618bf7c306c8b0bc50bb161f690b4eb8691ed47840168f05ef
MD5 0a54027a40b540e86b7ba8803df3e785
BLAKE2b-256 b31c198eff4c1469136855f3aaabc415aca96e3fbc2f899b6878402ca695cf1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e64f05bb225463a055e80b62312d891141191208184051f7748a9577c3996a04
MD5 c99c554e89dd278ac3703955b44c9acf
BLAKE2b-256 fa574d4f8a6e5a0d7de347d9b212c51f1ccedef5ba4f040565ebf79b77e11635

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d9483609b8574bbdabca5a1524ac52a71eaf3c6f0964345f9d77045693c1db7c
MD5 5ce0b4eb85d7ffeaadaa8483677e890d
BLAKE2b-256 15434b5df46b74f25a727d9f20c20540535f5e3b82458fbcaed5a08cf1a3dc39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1ec607c079feda39f71922dafa0a98d4979c98f1aad3ac8b4a8fb5b980dba586
MD5 887adae6c88ecdf6c03cd522302a64bf
BLAKE2b-256 bd7ccd1508311ce3ea1152cd5468ae00f12e3726781cd0cbe5e3ad5bd2d346e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f6ecd049f4b8c412d7c86d9521e0afded7f0ea481f7bf78887f0a83dae9d04d0
MD5 0bf74c49ecce40cceaa753cd89b53d77
BLAKE2b-256 1b1b064bc6a66c30f1e65fa2dc173aef0631f6249566e7ada5101187e57177a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 35f3738bc7a38381109cae5d3e93e17fee5462c1067c8da2333769e18715154f
MD5 f84f588ed27a0a7f817f09fa19c6ae64
BLAKE2b-256 fa5e884d132e4d61ec77ba377db0f5485efa2e1d141c2e703d58d0a1b808d99b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24d7b9e077baa07ed5ba56ece98f5b08a1d8525fa7f57eb773f074705f50351f
MD5 4242ad03f3e050498804c4347c00bf99
BLAKE2b-256 6c99e53b61bb5e7d98957415cdb42169a04f690854fafbc4fe9cdf6b87e7af1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3609c733e37c5df872cb8a6214b4c54d41571c1e974d293525f1599c69a8fede
MD5 fe63ba0af1d5d0745ce84dc11c21f720
BLAKE2b-256 110333b4138b929436e9f9c71b6d27e6ddd75f5f3bc16e9609e2cc35aef65893

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8f5d788a39590f35efa10c650e87ab0b6a2f9ba182cfc987fdc8f5063d252171
MD5 5d91a1e2f951482256ffabfaa88ff89c
BLAKE2b-256 215e1e1c00575aedd32c493893d8dc73dc9929b0f708ebc3403a926f892e5208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e94125c1f8d03830e1b062509b24c36fb6c3b81153e77d070bcfa58fd2dc575e
MD5 609e0900c9b1750f0a09268fc870a0da
BLAKE2b-256 5a2d8d1469270e860931fb06c374712a4d5c355fffbb139d692695ae7e27c8ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d711f11ea5800c52df4e0ce835b45e9195dfb17041025371b2f2d3fbe6d54427
MD5 120da764450154477d66e67476d257d3
BLAKE2b-256 d36bb5bbfc0a02f7e11ed6d14a7ee98f90e13dc935919c74399c9e8c0bd7a62f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48693abbcfce1e08217d593f93e054792e9fff97417d7ac75aaf97b3b0abf169
MD5 f1c92171e826acdba28129fe082879a2
BLAKE2b-256 51761331352864fece97900f5113b314756dcf63f53e91e205deec06dc0c5f90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3df1b075d2e25f998f24dd30dbc690b3c75489f7bb615323af0c210d98400b6d
MD5 3f1722ada00d202263f62703317e0d19
BLAKE2b-256 2c5dd20d44b7db0eec5e8996d0a73b6cb30d3c75f39def42af5bb736c517d42a

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