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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-2.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-2.1.0-cp314-cp314-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-2.1.0-cp313-cp313-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-2.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-2.1.0-cp313-cp313-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-2.1.0-cp312-cp312-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-2.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-2.1.0-cp312-cp312-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-2.1.0-cp311-cp311-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-2.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.1.0-cp311-cp311-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 7d5487e72aac72093ff6f2fb9237704bcd9343ecb639af26b37172d8b8bf0e55
MD5 23f1a2abe2958556dfa3ed28fa1187c8
BLAKE2b-256 43e39bf991d19a4b3d990ae1172e0dd0508c36177d264adad2f6e5e051c6a93b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c3b50e29564b30377c353c808f8c22047ec6877ca2d769960a91316e422aabd6
MD5 a6b55e6eb43d7d8ab9f0e3de8b5f1847
BLAKE2b-256 471c70f0aca9daf6d979a6d8ae2a2d670921b4bac63ded8d5039f5ace0d57998

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8c6b6fe2c972c2e7d39479d0b3358955978a97b56883e5ff8c330098a919bed8
MD5 f776712da6bb94363c3fb6ea5ed9ccda
BLAKE2b-256 673357b50ebd163e450c0b4d7711da238ddc441dff801a3f96f138ea242b1e44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 851feec921360c397556f3664fe5db009a19cf311da55c780e3117d162dad462
MD5 11e025e7f341758a091b6816cea56ea2
BLAKE2b-256 e92152baf713d6ac7a4c35da5a5de4601f8497835b8ef4f698aea7460ce6f2e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 abd6d229afaeaa7557b0e01f1c91c4c0e7fbf5ec2f2f9ea883e210d139076999
MD5 1530112722328dc975e55247cc71a728
BLAKE2b-256 fab5f5668cd6bedfc052002b9e12f47a743d326a51bc6e24e02438be8d8e364f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 de2e73ca56ea1642dfed7dc6fddc16336332b4f77e7b8b36fa5f06d5a2e28e86
MD5 9b50a0876858d1265c0a34092cf48916
BLAKE2b-256 48f6702c5eee101abe3b4f346345ca098ad3413bc7f20c6a0c50ff407d2e4420

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14ad4843d756bd46a7305b926bea3802ced386c69d4c85c01d7b96e89767db41
MD5 2b33b77fcedda7185acea786150fb91f
BLAKE2b-256 a6d7bb66430294f01b7cdc0d8516fcd8c8a26bde184f8f16ecf37c3ad7f2d9a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5f2d9241f879bd2e560eb2d045a1b97b6b6aa5dc12f7552a22f839b6fee89f2a
MD5 974c5734b579994e056c70f0bd094d76
BLAKE2b-256 e4ce7fb473d9fd7f33407dc1c502c252c865b7ca72e1b927774be86190bf3866

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6a9ba8dcfb33ac37fceda2e63233f3307ea70a46bead6cd59824b13195a4e1b
MD5 05d6ff0f29fda787a3e1e1322de7fedb
BLAKE2b-256 05e296ad1de8bef8b5d8fc56bd821cf077be9ecc99d5980cfd528e7dc5842345

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7a814c85a88e26421834aa61fe61b794636d0a259852d322afa2525226066b7c
MD5 e36b4a5b51c688733cb25ba902b524b0
BLAKE2b-256 e498d139138ce48634a64690c503eb734b35722881edc921e30c7c04ed74545d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dda16f595dd0ce75e693c57ab3a15276dca40150c2661d87d088c8b477f87965
MD5 2345bc8243063e20244dea4cc81e9b0b
BLAKE2b-256 ea0ae4a404248585c0b841c950383314501507ee80bdfafbd9f7e16e1916d9e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1b15bba26f10ada7aa2eadd54a009d41dd8fe181903822294694d278737eb433
MD5 dcc5ae78bee7a5543f044a59acf58758
BLAKE2b-256 3ab4e7fc98985c2123a678442405ef3edc7384c4bf7d997eecc3212789e8ea02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 229633f071894249b13bd618c94ef489d9962d52c01a78490949db2912202efc
MD5 c55969ece260ddf7d9b8b555e1beb138
BLAKE2b-256 f53f58f383396b2ea21243f03c254890ceb6a09b512641d7df051c026351c6c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 299121985ca15fd0bbf5e4ccd5f5d7e2c4098b888f33d81fd10d80a0e489366b
MD5 1aaab0aa97bf5c50b77a3962567cb970
BLAKE2b-256 0d9c049ac75f9a35868463c5b406f3f225def17892d70593ad68ace48281e38e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 72751ae59a30df17e9cd053efb69dc0c1da10acd470876d52dd677457859a08e
MD5 515bc789a9bc40ef7142bdbaff69ef64
BLAKE2b-256 a0bbfe472b8e76e8bf642a477034cb3b5175e3452b320f59cfe25cf1a25ba0b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aedec3c5a46cfcf1db05eba518f67f640007bd29044f9ccce953faa1b1c6fd1c
MD5 1562f67b9735334826a93810e43b5811
BLAKE2b-256 fcbb62929738ae4564fd0716dedfc7052d636df1c9c0bcecb938f9bc1c0c219e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e3cd15a32d408abbe76789e5c2dff07d4eb49d76f82757d5a23e5d65c9e1631b
MD5 1ea01e96a6536f2d4ea0bff1d565edf2
BLAKE2b-256 5862ea62e0300ed7f7c49965ab809ec738b47e98ab2f5d4f5c5a69770c3630af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 683692272304b93218b08e6b89a7e98b17c1f9f6e91b16934cd969851e725ef6
MD5 40bb6e54c3da282ec32360c8912646f1
BLAKE2b-256 0307bfa31497280afe7824015587f650eae2c8c37fdb852320a33277bf1a67ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36b3ee67086365638c0ae3cf61d7ee90f6671cb043f8ac83b82f8b7ea4acbeb0
MD5 5258768413af1ff3a60fa829a7e20390
BLAKE2b-256 a23cd8c05630a5901c228799dbb51c1dd35f6e9d734f9a8c0bd6bc8c261edec7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.1.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 460069137e13fa1f793e7bd7b800da5e200177769168799157fbb1bd0d17c89d
MD5 61739ad2b007d601639e18adc7f01a76
BLAKE2b-256 ad65b892237301002cb8febb5c6c7523330bd4e2d98a4f8f7adde49ec4f7cdc1

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