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

1.2.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-1.2.0-cp314-cp314-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-1.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.2.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.2.0-cp314-cp314-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-1.2.0-cp314-cp314-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-1.2.0-cp313-cp313-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-1.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.2.0-cp313-cp313-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-1.2.0-cp313-cp313-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-1.2.0-cp312-cp312-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-1.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.2.0-cp312-cp312-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-1.2.0-cp312-cp312-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-1.2.0-cp311-cp311-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-1.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.2.0-cp311-cp311-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-1.2.0-cp311-cp311-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file mcp_mesh_core-1.2.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 745ef49b41bd76f463a052b286618eb95e16bbe3d9f078209b0e6aab534b882a
MD5 212e9e839ca44fde42990f1851822253
BLAKE2b-256 ade9567c59a3f8e4d2b5e08fc7e2541bf90f2ad16eaa73f84c0c90b7449f2d8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8ea6c14ae2e6e23b0cce9bad10e89ff3e400dc6d015088b3342de133f830fc8f
MD5 57377fdb3e13a6c7ede26cfbb45262bf
BLAKE2b-256 d63f7f567dddbd8efc8cead71f5d2eed43b6604474200af0918001cce79c529d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4452a72aad7d1faabe9860852a1fefda448414be550c6b729d1b289a4a899d87
MD5 1e185d7a3110e4892b4ead85fd3b586b
BLAKE2b-256 8473e73e37348dcc09a27d96b280eaf0f622f387bf9f610d2a39e68dd3210287

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55c3d1e51829e1042e3cdf69a60900822e1ff4b9f50bfee522ce8132db18d126
MD5 eb257475fc8a4b929dd738f8510341b0
BLAKE2b-256 ddf24661582cfa87b736ddbaebb64ebec91d85be728be285b23d5a542e474b4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 43cdce8e9bbbb37148f800311a478c53a08ea8b92db839873c3842e7ff335527
MD5 ca9e7dfd144649a1d9901c5bafcfaa7f
BLAKE2b-256 e3cb3ee25c5852c081863ee887c76c3a7e088ba59f585cbf5af6fc2f5cf12115

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7be40e8ed8b4ff1de6d6458f8be91f1f9dead00a9c2d37bc3a5e4ef89f766e2c
MD5 d91d4189008a1f6be27395bf652a3163
BLAKE2b-256 c9e923eb598e1ee8b2b4673edac25c1ca3f6cda304e5199ccd5919819fe8cc17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6da771f5615e81e96cf4950c4eedd77a611123fdb6f4e18312fcf986d0f6779d
MD5 495f7cae563850c92af3efcb5ada4a31
BLAKE2b-256 5da685a03428715a324dbffb9cb4f81647830b6d688c523cfb905b67754e4071

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ab02a9df624bdcd6f1e8f1bfc8d49a7adfb25274767d3df8bcf18870a32de0b4
MD5 c536191cd0b6a2daad9d2daa5e69d3d7
BLAKE2b-256 0aca253b3c6ebb2ba7de70054f985892468952fa002bfc7a89de638ba5710d68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d19a8db2341d38e9a44c146e1b309c507dfa49cc06b7c93731d18f867e42d9f7
MD5 ff183c253a37a9ebe3207c9c95981e7a
BLAKE2b-256 17b8c07dbd53d8da33ed24fab8c442198976de69ef5c418de3549cdb0f92f15b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c376be6b983eae9787a5517777f175bd8c7fa765e14f75a3283544226b50b6ff
MD5 ee6e5a197686386b95b7877daab7a57f
BLAKE2b-256 363211a7c706115435335b105f23a9e39a2e3b9d8d759b63cb9c02ec0065a951

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fd7b37823c0ba3a2de2989735e16c9d884ec9b56064e71bb26382dcc289f1004
MD5 c693345ada42e2a4ab40b3a91a7e6fa3
BLAKE2b-256 a1a412a0c8e47a129b90a5c17dcaae59370ad63ad4b868c95106411b008b273e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 93f79a26e4946574c4ba5ebc96cc860bc4db567b58fd0094e89217a21eb7f272
MD5 d3c4864a1515a02450b82704e46273b8
BLAKE2b-256 113d48f331d16cb081c4c3b4f1fb0aaa73203936692e262a44adb3033a24a299

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 80e5a3a642ddc56007424bc92f3e1427887e10146525983a1e11156fe47cbd38
MD5 409d9c3e63747030fdac279772f99712
BLAKE2b-256 fc7ac913867371c425fcafc5538b4bd09a011303ccf1a73017f7fff3429a746a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5166b879b113568ae5b187a00eac0aebc547264198c37fac46ec00dacb41eba6
MD5 71a85467a78dcab8b85b331a562b19b5
BLAKE2b-256 a4e5fe7e85110cbf359f078ace005e40e5fafc057dd543ac5e5657018b2fc7d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 92b948ce8008acf1c9846c4bd62314cbd615d32e27763512865319304e71db66
MD5 5540d36e9158000736298b7020f396e3
BLAKE2b-256 8f2297c7eebf8c12cc45fdad6df6522ab8551abf5b15808260fdca5c1c547772

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4141f10dff8b20853d02a3e130d0de21bb16cf4d3a91f9e105d6895e26b0b08a
MD5 5c0961833b8defc8a77f42dcaa5d6567
BLAKE2b-256 2b9e951638e24b7b91dd209ae0647e1fcc081a5812a356f2127b102931547b5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6e448a3415ed4b6a34657188989001204b387331656df414d2db5578495bd45c
MD5 45a282833b6b9654860882209bf748dc
BLAKE2b-256 545fd6e5b5d9dbc346cdebe6f190e970d4abd7ba3b6c14c1a3a3b9e50866aa2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1f08e82dcf643820145ac0e4d036f609816a0554ebfc35898209453f369aa8db
MD5 68ee3eaa2fc04143fa9134aa4487a582
BLAKE2b-256 fefc88f9d570b67ad7b0965f695d7694e4f5696ed3842cd18515f5bb6ff0efbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9354118e4c75ba37c76cca34e380c7e5783d8ed9bc8e8ef6f66356ed268e059
MD5 42bf8714d920cbc476054809eb068506
BLAKE2b-256 af945cb51f3cd6113cef5cea84d26de9211dfd23ed42c0ccfe79b41294e62331

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.2.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f5535bf1f2ba32b83fa6be30a36e333cd3f3c6145f105d9a5858ebab6b173f2f
MD5 04b9687f382c07c1aec6f592b36c245f
BLAKE2b-256 6e68f52d9b3965abca9c9afa5a5e65d6b4fefa1325e2f68e93d5cbdf52255b60

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