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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.8.0-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.8.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d7821f483fcab39f333ac684ebd61f49080a58fa70c8718818da0abca031ec82
MD5 5c51fc8aa31c25e9ef21703a3b2875e5
BLAKE2b-256 dcd647efb52656264718ac503705b24d22bca7341ec4b724e5fd4e54c1a36702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d8504fb31823b53cff5712fac30c53164f55ee68c2e9c01e1c7c12ecae8091ca
MD5 238b441c1a22807383a7832ce2a1feb5
BLAKE2b-256 755fa2d5defbca395e02a54658a3600da8c043e2e82a552a121ee3b960e8ff7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 616022490b3e82f12be37df7ec8ed519cf21989428253b3d6b3487354109a62f
MD5 bf4e6f5a74e125c729ac0f6900d3b151
BLAKE2b-256 821efe83101cf33c9d0ba95164031bfe8ecd429f22d8d2a1f66bf36958891a0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ac6675e2393e8e9694a55fbdb526afc0fcb8f7b39a68606f41e66ba6aa1ba18
MD5 e83bb6123451da273bd80fd9b8444ac5
BLAKE2b-256 24fc8e09484f405307f5d93122cd9fb4e7cc6d420e12d63b8227a771a74e9727

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 22062eb303119e34d075b1694881b4a2f45eb32eed4381f303bb57b27f8c9b56
MD5 378ab9cfd96769be6d4e475bd4a378e5
BLAKE2b-256 62b731e10ae6ff8a780bbbc1cb949e3514374849ab25b54dbc3ca267df76504f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9f163892549540ce631fd22a9a407cce6ae8102153f176f5b68a7d318326c35c
MD5 39613c478941b4c3eb682a057469d32d
BLAKE2b-256 361d9f974ef765679c1a0d19aaf7e7412a448cca9cf77287ca9fec39e1d24a40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c63ed5d1ea35b82d7690462609fda3be2d2e89eb61443be6feb77b96a5dbb73a
MD5 0af79b92384be2b4844a64bdb220ceb8
BLAKE2b-256 111fa4346f9e1ad5405d0653540dc17a28a708cf9a9b5d06ceb44cbcfbb01f7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1589fa6858ac805512d9816662a5842140d58252e5642e689ed93c6cba1debd4
MD5 5f981cc3498b92f2b342c49350bd2011
BLAKE2b-256 1c6b550b2ba5ed0b256f4cedba70d152b0f39323dd880a996f5f3c7b13040b02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c03b7ed2372931240b530dc2f56b09ec8512a6c56032cd162c41d2780eae3ab
MD5 3eac92d63cec64ccc89cd61c4f31c5c6
BLAKE2b-256 ac55c0efc42967d2e033a44831b99e2c4422bda7a3a998ed1e9357183a78a5d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1066ed3c5399d2afdd1b07963476752694f52346666ab0fdd90952dad9a26c69
MD5 1713b687d8c2ce17c9f7e7e5f4b7dc6b
BLAKE2b-256 ea39ba53b1021421beca65b835da8cdc5d1c250916d858e79335ab1ca7498901

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 abe911a966fcf927282957d778e44a327d47bbaefb6410d6aa8359bdb83fd9ac
MD5 ce0288dbce8f9d7cceb2a2fea2fcef68
BLAKE2b-256 32196c16ee5bda5df05aface63eb90859382c4c08327bb70ee515ccc002d040c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 edd2f406af23cdc0ff9cfe65e9fa242d7da578d04658c9d22d7c9752d6385521
MD5 9f9f6bf455f3c234453029b2d9d154b3
BLAKE2b-256 6c15dd7fe58f2900ac6da9783a203b05d08f6e6f1c6c9fd1c579e3f04e18f6f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 40a472523141c57c5825bbe87a235bf03f981dca4d9385c4256efb989cd277e4
MD5 19b5cc27607afcfebd518357fc6fd251
BLAKE2b-256 514e312e9819042eb139402e50177baf6c3a464f8e4a26dc09d46103883b4c0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01888afdb60d134148f0415dbc215d3b9b6a918c315551915a1566dbd027bc32
MD5 10f29fd21471ec9d8e3fe30b4a3d2fed
BLAKE2b-256 edaf73a6caafd8770055f1a578774551b464bff8bd0748eac96dfdfaa4941893

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.8.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8a09cb9f5e3b17dc16434e6eb818ed4673c19843696a8b7d48d78e8874c0b7bd
MD5 a4e224e9bc4d1e5aa82bbb93fcce7b53
BLAKE2b-256 88d909353e3d549ef2052c7178804a34eec7fb6ce5dd00380edb726fb930ef1d

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