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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.2.2-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.2.2-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 334962a80a95dcc38042712e4290ba688ef225677129883cd090f32c6e6a40fc
MD5 8b84719bbcb9db516555b21baefe4b90
BLAKE2b-256 1b969e64fdb61f722054abfd2927b0efb7697a19c6cac201edb7d13572edeb25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 416bf699eabf5ade35bbd590de6407cffa717e4f9853150ee23bcf0afc1c3607
MD5 89c534ce4778abed931c6e78694f705a
BLAKE2b-256 c81a1305144fdf35fb4a4d611d15197c535aa24f96e7002f8bdcff230a6d0843

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d5788bbd448ed9d074f1ec26bd567de89c2378725cf0041f6b188a12c3f5c92c
MD5 2e93cce997cdfcec2cbcb2180b4388cb
BLAKE2b-256 6455b2f8e6097f0643c8783d44491e4fcb6f420b169680ffc6ffb8cb063ff87a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6eab295172e09ec177a6133acddf6e671366268ea89e9369599411e4b722de51
MD5 ffad8ddf90d34849f4b0a62ab8cc568e
BLAKE2b-256 7c553c9432c6f1b19b4779fd3a40418c9906ad36e2bf71bc2471cc26a68a344c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6c3f070681592c5f414e133f1b875fcbf153e02b9598616b57a99e03055a3c8b
MD5 e9e0acc3f456b5d70742f357f3579256
BLAKE2b-256 481b44bd71c0a9b9ef8a9646edc5454ad1531803b772c73428d2753bd80ef5c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 15eed9187c0c4b7bbd8dc727ad294746b1ec2330ce4fad9386980df207e07bf4
MD5 f6a16d04322f56922902c907b4e21151
BLAKE2b-256 91b36a58525584518dcf82e06947873e60c4b89530833b71850cfc8ad0c4ca4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d4d88e5bbc6866c5f0f3f6c4e16a52fe360a5165bb787d9ac709adf9ffdaf1fc
MD5 91679c4c8ea2e2fef47ba2693d582dbf
BLAKE2b-256 fb8140a5897330d0dce31f65296209a00d61b3438ab0589d05337139ec11dc51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8ebc35d0c3806e40bf23dd14d6f0e47d46a9ddc92d80fc6a6b445efc1d4846d4
MD5 b3baf77be8f3afb223b92cd22c36b518
BLAKE2b-256 121521320426833206e0fd25e3604055f16b68474c167cfa72ebb9e077baf445

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a29416518f9744dc2a9e3f0642e39903756cdf0239a5fbf8289325e49231e1a5
MD5 076d3b1eecc68430038d203aca08777a
BLAKE2b-256 c203cfefb50fe21b89d4e7280428a8a40adc01b1fc06c0f5d37a4fefd21f4240

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a4e4c84e5aa04b6fba31d6acb4b2e0f0b1e3fc44f124c622f82e0af5e3e35132
MD5 e8902b371404721789b49f0c2385a8bf
BLAKE2b-256 fabb48ae7b34f4e6dd2d9ceaf5c3b58aead1b9becd736f90ae4aec33a784f672

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 50a4eacacaa6c91cf46d5324d1078d0e0657bebe591a792224d6e91e445cfb1f
MD5 e2c19bb9672e5b8d08e440c4d9168f36
BLAKE2b-256 f919f369d74da8bb4d85dadcc490928120e927a1f5793ece2b513c683b458335

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9be9cd023509d48bf4697f6d32e519e9ebcd40b510c4e38dfee72275f3791711
MD5 19f0a2f4588c5aa81a662d28ffeba9a5
BLAKE2b-256 03d3c323c46fe1ee472c15f4f03ed560e7af84b6dcea9be1e3f341d802ca73f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e59b343bafcde9cd53aeb6813e5cb11bcefe9b31e916bbcf676947fc78ea66fc
MD5 08cdcbf321657c3275031ebe6f1d402a
BLAKE2b-256 37055c7dd472197f283c0719e5d558aff06f124ffa57eba6edaf7ed98be7390a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f97988f8a2991514533ec90921bdff31eaab09ae4303295585f61e62ebc477f6
MD5 a867bf95a91c7fefa4b310578a9592a0
BLAKE2b-256 c43f04831583be35d48ff340456fe4b3fc7e503822b3864d04f545bd6bf65748

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0455c12c7d48e0a36433c508520b39893f9ad05587a2703189bac05e3d88bb2d
MD5 4411d470e3a0dc6b829b61fbd09ec764
BLAKE2b-256 e8e32fd1a24e72307130554177812f093b0a0e3fa76dcdba1103d49b7afb5a61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 220550aa80376cce22ab1a9e28ba0510dcc76a3542aa152cb8c60e637a7e6e3f
MD5 f56f5e8fb42dd4a793423da6ec612196
BLAKE2b-256 09dd992fa4e5aa9136e07bbdf9906dcf0061f4365160d36a38694fd4f81df50e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7d15570f614d306933f90f674fc5e310dbefe007b54b91c7e884a8341494cef1
MD5 e1adb9170ce12b55b2778f53d62eff58
BLAKE2b-256 88ab7474643d616e40f0c71e4a4a5d10be6541064be29ddd7c34ec3ef2ff57ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b42d7ac0c367eb0c23c5aacdf50f1f5fa0fb2a2f4af1289ab500a2a29f631256
MD5 93f6802abf4dc64bf18f6cc292f332c2
BLAKE2b-256 3969c9affa3e67a1e2eacf4713679c0034c77ade8a3200a7d307849ae8bc1030

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b87a96c803ffcebf9f9764888b357da842aeca3aabbfda7ba04fe7ecb7dca99
MD5 47651eae9de531de6716d084549974c1
BLAKE2b-256 f91ecd98a6da55c42a5f96b1556a801b3c6000e54275e2b9ebd11e8366e0017f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.2.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a216c403bc10421df463fd3454fd4f3bc23552e66972d97cd160eea09f52646d
MD5 1eda686d83301b7e0f48a97880f2532c
BLAKE2b-256 d2f1276e33491aac184986d86e27d2e82a0a800512bfd9d85eca2e6045616636

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