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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.3.0-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.3.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 15944622d5e631293adde07ba739e9ac198949e34e99aff46ef69147e33ac49c
MD5 5d1fdf8b09d5c6618916b1955469e71b
BLAKE2b-256 fa576a1d512d6640c3eb37c15db69a6a56e92c352b7b0e575285a389782e0303

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ad6cbaf90bdddf40a40611861bcc756aeafc7682fba674e852b4ad2a13462427
MD5 99e35c3c46da942c189fbc1226243878
BLAKE2b-256 5808129927c2e00a5e1f5d36fb2436eb03549865d6dc711f7e8abc7612e72447

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dd18814ddfaaba4e6352eccde57bb5870613910d4a139c50e6ffe4703cd64890
MD5 55e8aacf5d9da13be2f43698c21da1a0
BLAKE2b-256 bfc327bb915ec067b8f79b7beaa354f9f3b9bdf0a90d5f9b62499a3cd07bc3dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d2a4a36bb7b31bb097cf7f8cb4f1305b8e712da3b23a8da8d9bc070f43c423f
MD5 fd9c627b829e3e63b05d08a2a1945e64
BLAKE2b-256 d5eafc9ff0e285ce41baca48f5915185b02fdff82073cd29772d29c49af4ed01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ce1a9ac189474d084f6c6adaa02aef18e3a5210709bb76afa8f3e93c69ef2a52
MD5 6ae0fd57cb69a7eb8de80d79ab3d1461
BLAKE2b-256 11e8983ba4c60754a89817a2d9bbe61f6d1d82a9592d9a47501d2af72dea568e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4eb7dbe98d9a8881ccb82f6b71ddb0f56540303ee35ada62e73f3e1c9379946d
MD5 be18bd50942a974661223978f1dac407
BLAKE2b-256 853146a5d3f256f04e9b4df7796b9664c17c7b9399f00f3a4b1895f77db27330

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc196377bbb30badc9e86e8d93c6f4010eb28db39a9b3ec52a8aba3de3031e69
MD5 67a089734b4dfc25e46d10b1504e70ad
BLAKE2b-256 b17d70754b20555ed123125ce4a7f2aa836c910ab7ef5407681b340533037e57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 072a35d6d38dc71692ebbdd7ce68ed8d065631a43a40c2f254155db5f20c01a1
MD5 cb0f22fe5d67e09e9d533626e988f054
BLAKE2b-256 5a88d6294d70d1f2b9186430a6f2d371182eed822105dd6234ae08136140de60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9bb504c7476b6322b353fe28e67bcb00d860db0227bca2c19041ff49cb82d7c
MD5 cc794c2998167ed5a45d6b90448e31e6
BLAKE2b-256 5d26ec74ea91094a9458cce953af4e38928f6ba4bb3d3ccd633187d0bede067d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5d2f401f4692df0f1adeb41bbdeed95ce42c94f02062aa662981ae0ce4a8e3df
MD5 d18d0a095870295a78725342eff4e443
BLAKE2b-256 5bf5443c1a72fe0f4144938e378bc8d5f4ec82c3d634c24c5b846d2676f29c56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 df37b95954efa34a91992f8afb79a77b64a9b01e5b1cfbf8bce705b76cc93d5d
MD5 c1ace75b9d32dbcd4abf260c02e9c105
BLAKE2b-256 2698e640ee388517911699404d3b50cae4ff47ec1df3b1fd9142b688e5d19682

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e672c51c180b5c07c6d5687e7aacf5f8cd4fff7f126d0bbce12e423373c5a5a9
MD5 e0765b7795914da34d1e6d1ecf6bbec1
BLAKE2b-256 bc27101a0b7c0d36c1476273c3d363007fb43efb01656b21218dbcd3391c1389

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 877c764ba299c3659ac7499e9533c4f65fe527c8d00f9d1067a0b4ccb94bdf10
MD5 b90a3277f2d8ea6c96565b97bccb02fd
BLAKE2b-256 f2c9796d6105f36234bc06b776bea6643f5575e020e20c40b89fe83f8f78135d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc9ebf9d7e4c26f784a4c71c533b509c9f68e4e2e5f21fc58990a5bbf43b3d1d
MD5 137a7ec9158887baed12946cc922c338
BLAKE2b-256 16bb93220cc0cd074d404cc67edf872e11496fbff816499115928aa5d00f576b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 347d1561451e0b2e3e2ab95a9dd636fd5d9c671be550ed93528fc7246598c7e8
MD5 6ab51376203bea7a2696ca5797824cd7
BLAKE2b-256 1d8cea97fdf8f06148036a2c9cfcb1b4d0eaa03c56f56bfa4c728fa131e23113

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4f87e8cd80221dfa9a8cb927afeace5aaf4f479dd04630f472806a815ee05e43
MD5 d76bc141cd36dde27b69b0fc473b95cd
BLAKE2b-256 64785ebcd21150e428013c0608d0cff3b117306a7ca8d85964da50d37d948a49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 94d55d4b31c185cca2b202042a9f6c0a7857d719785f38c026cd528b41e11855
MD5 ba3eda2da25ec2dabf721cccbcba8814
BLAKE2b-256 c34f41e796b1f4e08a4d4d08fcc44fdff94d4feb83df525212d11d8c30036498

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0589ee0857cded3decdbe6474079660db253bebfb3f82864e109b41368e9bb89
MD5 a7220f0c09b0fb4741249b0f14a9734f
BLAKE2b-256 12c31f0ef40baee06bee8bca104f8af20cc9e9fcabbc475a0809ea6675cd507f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b260649c15920bcf22784354ba30e015428f94b78aec55b06ca1356216b9c83
MD5 3bd861227655a9429e07ab639e882fb0
BLAKE2b-256 51c1998b022dfed0a75f16267b28b52a63d8cabffd84b86f5d9353514f6952a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.3.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a8d896cd022e818a8422805499957a83408faf9a551528a62317191a36b029fc
MD5 854d1c4dff0cb8c16d46f250fa32eed5
BLAKE2b-256 ce1207c73f403f1c6ff09bfa6aca2a63cf13fd4e281ee787fff48f22a9a02fc9

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