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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-2.5.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.5.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.5.0-cp314-cp314-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-2.5.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.5.0-cp313-cp313-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-2.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.5.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.5.0-cp313-cp313-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-2.5.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.5.0-cp312-cp312-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-2.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.5.0-cp312-cp312-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-2.5.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.5.0-cp311-cp311-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-2.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-2.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

mcp_mesh_core-2.5.0-cp311-cp311-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-2.5.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.5.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 bb878a61238041535f9b3ea16f49c2d3b1088be1ff3535030dfc24522ace1965
MD5 3ae728bdae33ae940bfd4149529c86bc
BLAKE2b-256 394e7e2c927979b6be3df7af6e218ece23643ebcab168d17b2c16c0f9c9e7a28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9d4f35ab5ea2fcf40f5b8dd1ddbf52da55182baa730045a6aa5a7870a2b5273d
MD5 76aede08fdbf47307108ece0063ec8f9
BLAKE2b-256 23c775fff1c653d6198a0a1615cedacdacedd08dbc09d1c19f6de23495e4f13a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d896a163b323bfff5dec4cb2c2075736d8437b150d1eb66c0b5515bdc50a8c0a
MD5 1c7c1cc492253a24767f0f8842a5ad51
BLAKE2b-256 68dfe5eec30166dc6bbbef652dadf155492a1b1610fd485c03e1e75dbf882e0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d27912c9421ccac972ac731d3ee3c4f59e3c08b86fe8a0102556f365dd2c58a
MD5 ee162d72f52be42bbfd552011acec305
BLAKE2b-256 b5a98e34251e3856aae612eddab148d84afe1da86884a041fa095a354131c103

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c1173aa14d12dd03e35c18ad17925ed71ecee7263e87ed265896da1a65948f72
MD5 d22e9b0f72fe5d71f1c01b41823081d7
BLAKE2b-256 310748edc28cb25e22bd6ae12f91cf0578a486838f39ba600ab9622303b69592

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 96c580b74c59a8bd674a5e4c49afcb99524b98e1aab8557986dffe368659db62
MD5 6875fc4ce95824222c32637b3f68e93c
BLAKE2b-256 36ad6c4822a109f47b4167152a3ee7d56d6533d60b3840b5ed4e3da252700a01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b20770c879ce9947657f2f6ceb4ec855b29a74c1471af8168eed9416e2972cb1
MD5 336cabe278bc392c5851dc6594a26aa9
BLAKE2b-256 e9677ecbffed59b6d16cb03b3821117f0b28722a3de89923b3d98a51cfcf7743

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7ca1bbbd3859897b722fd3e9a120f54779013563dcb15a08691f5c269c797094
MD5 930afd7efe7fbb7aad821ae7864381ea
BLAKE2b-256 219eea05c08ccbcf3495b7ddcb29b172222b28e67ed945c221a425cec3d5a6cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8f530648e477afa04648b86011e17ce2ba163b6bc4e10096a626cbbc78382ca
MD5 8f08172d47d173a31303eb981368670c
BLAKE2b-256 42fe18a48ecf1e2905e643c9ad7c376714b8e77630b111e762f45166c3cbef38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6a6edc825ce8a525f460363358e796a4bf65d54c8b24070108e3c0855d453d09
MD5 a2fbe9b937aabc38a81953e5c8f2cbae
BLAKE2b-256 9cec2b297529d079875014f054234d15379307a6bca96fc6a017d5151d36fb27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dfc5ee3a8ff46797c94ec83cd5bb41f06bbd03c4a5fa41075a6a29acc979db9c
MD5 a17ecf2c10cd9e2c3a38abaff93f265e
BLAKE2b-256 faca81202ef05a5b3f90c4fe10975b25f68f0ebb82c0467118ba74c2461ed2ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1f896a08074038d5227469f5a20e69310d32c8f28ba09b66da4a809c4359b8fd
MD5 f1e42fc5be41184c7ae3a0655e14999a
BLAKE2b-256 2464ed9ec67b4991c625d7e871dfa97201ed8049e693d39851a1e77710afad3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9e0227b226cf34610a563c3460f16e9a727665bf0f717deeb50124b687ac5f22
MD5 811a077076d26cd6b0f0decdb8dcfbfd
BLAKE2b-256 f8c0235e9bdc25f9fc4226215cf5201a3d13d42b18848d04fe72687c4aa03ded

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 848d113a21c4533e41ff3393f4ea5acda613666218adefbddacd9c64503b78af
MD5 0c0b90c3a0bb206aa8c0288ead446ecd
BLAKE2b-256 ac7ce6b3fd990b9c0fe2b366bd60e25af434191fd5865d98b4aa8f6567e465d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2d43d5110e05f94b4d97e301c0de08fd7033c71717c4f2ea1f19b056c18fb892
MD5 eb22841770440b5d7ac3054fb18ffd5b
BLAKE2b-256 1686a8fb82e2bc0c33492ceaa38a1fd7c13f07bb0cb9c5654555593f3601a47b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ab4f45d38b1e141d0991666818ea56a5d42b403be9fad1686041ae204dacaedf
MD5 4e0db8296ea2e81b647b414b3de7f318
BLAKE2b-256 c95834e5abcb59ed992fa183d52190f4bc11f9218ea320b60b565ee34fb2e642

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dc46e25b92e160c67c9f6f635a1e070d51e3c2c256eb5d99acd84a86e539b7d0
MD5 a91f279c3c5f7967b0fbc64b52fe8497
BLAKE2b-256 5ebcf1f7112ebbab8f6c87157a9b4747fce5a55b3a3feaf653fe6342070823e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8e991e0ac7baac2b228bce5fcc24fa00f5573b1688294bb770d837bb75b2f7d0
MD5 cd763d47153db2996ecc40fd3f861783
BLAKE2b-256 2b6d629059ddd4e86e2c663a738544fea323d5a9f04a2adfb396b9a5472665e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b6f471148909c2ca32b45b9ab4ab10e53079758bfb840db8d65afb409f41793
MD5 fc7a333d7e5f21f8be73a87bbb4ccf0a
BLAKE2b-256 8a6328f72264f09d5e602490f54612853d89e649321e8de3c25c5d5ccc561645

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-2.5.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 80f933dacd6d3e63f573ee76502c4b71736f36c35a800c7ad27520fe6fedf895
MD5 e85d769c421a8c6cef04df312f160240
BLAKE2b-256 8d650c4a487eb5678d5c3da7fb37d235b965f26acb8352cab1d8ef0bde384772

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