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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-0.9.0b7-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.0b7-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.0b7-cp314-cp314-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b7-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.0b7-cp313-cp313-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-0.9.0b7-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.0b7-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.0b7-cp313-cp313-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b7-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.0b7-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-0.9.0b7-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.0b7-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.0b7-cp312-cp312-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b7-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.0b7-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-0.9.0b7-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.0b7-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.0b7-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b7-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.0b7-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 4ccf7f33abaf164aa203fb674d1e06e8b57907ab2e19aea98be9a6b79165cfac
MD5 edc99165c0dd41b374f81df4175c7b11
BLAKE2b-256 260e46cb1e3d0e856c08a98a04c68c2e562b69798efdf72dbf7766623542ff45

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c8603b55d19748543af0e26fe37f8a244789a4b83f6739dec5d4bec42933e355
MD5 489d0cac78551b25817c3474057fddcf
BLAKE2b-256 d4b36cf963e3b5393dcc9ea56131fb26ad40739eac86923c3ab7bc8a6258cc3c

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1e1ef5a99be45e48be52edf2d4efdaaf25e4828f452096186025d4bb5ef144c8
MD5 93e65987c6dc672995a2de0826d7a621
BLAKE2b-256 d5ade1c77623231459aac647963b460232ce1af7fa709ab129ceabd3561b7ddd

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c03c3d439e76cf67fe9e8b62e54d60cdc38c466b4724c003645cf21be95e36b9
MD5 7a796c197bf514d4068a6498319d170a
BLAKE2b-256 8ec73c11db7b83457ca9d381fad9431fcb471a76292397f5654fde4001b8093e

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e2752cb3524ba38990dae5707d0625d8afc9ebb92789f8c3b196a36085a5138f
MD5 7cd4140db7f54fe8b53ce1cb35b5b728
BLAKE2b-256 03273bbf04e47947bf9597db6e12f4aea8fdc85bfe7fc21d0950bb0e4a18a982

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9f33e1475f565b97488d8b6e8fd62920358a82a393df97ce693ad05717c163f0
MD5 13b1241fa059d71d4f8ef6fd6eba19a6
BLAKE2b-256 80cfffafcc9620940d128b929fb59c7722320b46979cf6583fcc5b84ce963e01

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c02bc3378279b81e8a514b7cfd9688a3f8a100d1adbc7304809a84cfea13f9e9
MD5 d2a4da777c192f1feede521b259f6000
BLAKE2b-256 5e51a1ad317495b4c4f43207bd0478669dcac521a1617b30db49d357563aeaa9

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 97cc43e30ed9bbccb28db144936063d596d61a2b0b846cf0feb6978792a27dac
MD5 9f98ff381866f80151b9abc54a00da0b
BLAKE2b-256 db3c7bfdab17d9ec4deeb17c4fddb7b966d2a07f83589ba8e5db6058e086f6a6

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae78c589e1eac480c35e267aa8172fa315296f29ab057ed320d5979e4966db03
MD5 374929e1d7a9fbdf433ace85a84d1fb7
BLAKE2b-256 bf758fee7dd93a8774c7a49def27b7f522ef48b16ad39e0aacd7b4ed396d1b82

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 91e275a3c262355f76bf5b41cd370baf30b17e3eb85aeb2c7a5a281855962d7d
MD5 9fb6f82b6eea8e9b4b32380efc858860
BLAKE2b-256 b030e0f231dd709d1245abd871fd960b67577662587aeddbb69f5ca800695df5

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e6fc8c5cf56d816e383d16a05748c78bd1959b77d8a88fb5fa86c3adf481048b
MD5 f50b7bfbd2cd2f94e4f5312ee3c3b8e6
BLAKE2b-256 344150e5babc9c3a445784c4e679dc869f31ed52493005f77cff7cd53423bc6f

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5a1e4bd793a5e61fbe9b71ae02879f1051d38703b6c6d96422885766d6818ad9
MD5 8cf5e8521ffcc26b0748d7ce48e9cefa
BLAKE2b-256 79e77a740362d012645e14799bfab7869e50ee006f7b22521fe54afa33c9824f

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 84e9c272139289b27bb5a616415e13c4c46956d982a11cacbdc0de5d7abb2998
MD5 6ae09b9a38fcf19eef01bff7221be930
BLAKE2b-256 00dbba28a4e3da6d4bc02fb5fe76769863297a2e49bdcc8919a0360a00314c79

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d916c8018bc1c67982b96df388231ad9d8241d442a457c93f493c8de476ae231
MD5 69f4dd1746b09431deb507a6bdb82511
BLAKE2b-256 31db97eeda055a2a9963ee1a237df2e059f9b4d3376c2f37f9c54c38a7058571

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cbd80896bec2089a8b6b621690e90206d5e6e345e764a8d03050442ad506dcf7
MD5 f8da5370fc4e3ee0dadffc4e0ca72713
BLAKE2b-256 e1c46b26f29d77c24119868364b9e6433ae6d67baa487997ebb4fb3eb3fdb998

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 038bd95597099348e7a50deb99a506c78184eb3a0975b7cd6582a5b5b69403f8
MD5 a5e15cc94e15b8ea3fbf0a52dfa3653b
BLAKE2b-256 6ef2f76ddea89db652923ee05b16d121840d5672056a4809f57cd86394775561

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 991c41e8004b5d36c624c1653c1eceb3d4188f2f249427da45b53d1a9bf41fb2
MD5 a4a640fd3db04eec31b8512729ac091e
BLAKE2b-256 83f436e67fb30006dfe4d38e5b39dd973a4aeedddf0f798075ef309ef724f7fc

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f5bac1f3047ab2a14b64000bc354f652a7f0f092fe175f774a42ee024f94d82a
MD5 91d2b123bdc0b2bbecd076c772b27604
BLAKE2b-256 dfe42aefb10a93465eba9d1b054f57e9a175cff5d4d580bb914f13e87b05d93a

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1839a3ff5d589b3bb2a209bdb328e4be60cb5b5c4af9300cd8e4656b6a1a12e7
MD5 69b3860e89e23e1471d2bee7a7507951
BLAKE2b-256 c50be19674be92c3e942d896ca296ea8201508b80c0170e8247ee8e41bfd6154

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b7-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b7-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9f22a396dc27d8749cf4d46776ce7e2ae7461500ea9ed36b602f1a82718d788f
MD5 144fca829eb46b12b4f40c8ed6ac5526
BLAKE2b-256 b36da4573c694360d1a03746470db1af03a13ce2955aa725c84e0d08f0f5cbe0

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