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

This version

2.4.0

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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b1754c45034f24557b0c7bc9f892521f28f09f8f68e508ea636e2ed80738d81c
MD5 829fa4f1e4caa7c26d7d3cc641f86422
BLAKE2b-256 41b371b1cdec916993242b349c7c1456057a1d7ea31c73a639f3a11ca9e4a728

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e85845113902fb8d80d273e7246a2b38af82a7d35b4a64ff5a21d1bcccb54aa3
MD5 d68caba6cdb30ddaf91276bd052906fa
BLAKE2b-256 64b6f2989f3befb0ce926439456f6be0eafe658602b2213371ae4de57787ea6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0bb3222371525994483384bffe643c2707c2f4132b70750545e138b2b193dc1a
MD5 f769669a070602c3eb0670acdef9fcb0
BLAKE2b-256 780facf9b1705b437afb2c433c04808becb8d2e78e6669a7477f80c7b53efd66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79f68c463c0d97ef9f95a65b39cdd3948d40be3b768ff24156623715e33e46b5
MD5 381154dc5f7846778cc2fa67c165f11e
BLAKE2b-256 deaaa7bf4d51fa224db2b4a29c605a06b6bfbf7f32d749ba88f8174801d3f0b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 082fa2b356039f95ddf67be376180c97c3bfb9d9887eb0e1d6a08b3fbafe931e
MD5 a1156e6d4ec72a809ab6478093da9a32
BLAKE2b-256 9c9f9f46c0973a48a6faf5a9daa653217ebc61718282a409f1ba4bd97d61fc71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8c19347c7ffe27e0adf5f53293367460425a1d58b9042374769286e9e3e70dbe
MD5 fc3fb4954d7fac1c8f342fe8dff56740
BLAKE2b-256 bf43541d34cf45f55db2d7e59a331a74bded8246cfa330d473eb26ac0b5dd596

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2a5fbed54dfa5baa674874ac3053e1063f28542172bc9271b71ba7ea5a0fdc1b
MD5 bd4580c43681364146d3a8b0cf6ca3b3
BLAKE2b-256 a6f4c55a11d00ec1c170584099eda6c19ec861a8be90e76dbb12f8a36b4edd0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fbb9b2dd951c14ed1eba57a18444ae4133f2df7b4ca6a424a5bf62219d210f0a
MD5 2bdbb33423e8a2270321bdc4834bcc42
BLAKE2b-256 71b5a84b2daa75c8928d7660c1bad7b59202fbe4c489a439cc60d0d042f88e12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0fd18f704f77576ec7af2bdc59865a17003c8843fd2b49b1844cdfb30c30c53
MD5 681c94a73aa1477d0f7c4d4f987cba99
BLAKE2b-256 2cadb50bc9992d0f93bcd6780bcc64354cf588036b34220c21ba4915dc4bd85b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 45285c18d80fb8bbc1a7ea3c22b78d73a1579dc7d855a8f19d5f34588b400bd5
MD5 a23dfd1d1f5be54ac776051408829eec
BLAKE2b-256 edb52d1b6a70ef764881cc33b43adcf34a89a36ca38599d35bc7ecd2ebb40068

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b5642de9248323887b00bc25ed91e6b3f7d383184f8f8ebba48273421a01ac30
MD5 7da6951e327a929db476753002d2d520
BLAKE2b-256 80cf775e0ca759a4ff04c0111b844dc1347e3c5148c47c56243cbfdcdf1de59b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 24a757ae4d73b2253a2c8bf428132eb9e5e62aa14e96f0c4513d4305bee184ca
MD5 0bf7f79b2848b288fb783ea2cdf40032
BLAKE2b-256 7b3d03dfbec1cebd38ed584c7c01729f35fd87395d8d0ecba5883e6a8e9ffc6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0759f7532900ced7dbbf485a60e8c0cd1532c2ba8e9357cbb0b295a04ac795a8
MD5 5861aee91f1894979d4bf74743de2db6
BLAKE2b-256 4ffd98a3a56432f1570781b9863d770dde18e298cd984a557a37325dab0176f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a92f087fc4df683c8d2f01e3ddc090e895d8489e952797cbe7af7f85db3b76a
MD5 5b51a9d9fe14d1593b6a7eb29cb1f8bd
BLAKE2b-256 e915ad8630091c31d80094e0109c3397f2f6db7f57f3d2e054c73b99579ffd71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c376afaf02b6b9ff69b96a1063940d5fd0c95c59799d6cb5099783b1c1dc7257
MD5 4df768fb6f6fb3875e115fb5e9719530
BLAKE2b-256 0466c1422e6141ef0473887981f1831c29923b5eeff2822f37063b18374fbe91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fecad843e3402465a941d19cc5c6ffb9cda8a8af91d6f0d346e66d25085af3a1
MD5 10c5708f6f25bcd55b3cb4fa29ca9178
BLAKE2b-256 d003e3e864d7163600a30aa774cb7141edc5316378d7cd63acec0bf5b3f5116a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc96ada2f4a923efb36fbf039e03173f882b3ba25994fdc57d1b3f5b5b63edc1
MD5 22c8ccb71848c9bfd6c819699128690a
BLAKE2b-256 5175dd231612396671010e004b294514b36349db5a1209187fbc670812154dfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2e5444591c66f37b2d61aec5424f109dd663a674008598fe958fa0eaa80846a8
MD5 6b5a2d8a8e32075c9323463f4104b75a
BLAKE2b-256 cc063621806bcca87aeb7190787ebc78cf55510226e111d11add51bf6fa1f631

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0fae9038a5b3a9bc8f87b010561df81df4c347b2b1898a79c752cac4cda75f0
MD5 2afd9bd2676e1b96b0d59e8598d48b88
BLAKE2b-256 51aba0f5a875c3f2251999d41f379e8abce3e5b89c716d37a04cd2278e183662

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.4.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 456e80ad76169d37911a50b241e1b5805fd050928bda9a6fbfe8f2f6e488c650
MD5 a03e0b7e70f2af4759dd3224a823920c
BLAKE2b-256 1a81a3a67f3aea54632d8be0e073664064ae50a9cc7cceae0b4dd3367594127c

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