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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a9c3a5f9ef1c051c05952cbd0e7e51a458408c24c661ab15c79101d64db46e0a
MD5 94c825a7435a58bd3df02ea2e5302de0
BLAKE2b-256 7e704a966f64a612f464284384d585971c1bda79ead407c59b43b50bd3ad5b84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 218860e9d52ec17c273366453670a6db2edfe2ea915ec676f0536e1c2c543a23
MD5 7df37609cd919040ffe5099eb3f5a843
BLAKE2b-256 ed447c4582ca486040221e57023c936e17c6746f4ea5b23ed7c9b6a504790e63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b9eb267d0734d10370b638679ea584a7b84891286edbf3385ca25179d117669d
MD5 67d5531d83ef8cf4ef984a6ffe94fd28
BLAKE2b-256 22744fb2051f203be11716365e3974d3c1887148fee9f6054ecddac724e5a447

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 323721378105b01e0ea7f8aab344487d7a4b0d7d04341f9e5f90ab374ba9e789
MD5 f849e908f18518eb13cca2862337f768
BLAKE2b-256 53c0ae923097beae1029fb82990347f8fa6b3397ff18f90d1cf53e4ee89a59c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5b5a7502487a1f5583d683741f4313b82295e82df8c77c971b1169bb77908776
MD5 9d91c861f7de5b92d1239199e09813cf
BLAKE2b-256 457115bc0234252e3933370e919ac026be24e1f742296c3f125d35c25471fd61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ef43e09a9df030433d9b16ddb53ae592f7d3838e039ec38552774c467144eb20
MD5 dbca117628e4e8bb86b8cfec259e52ad
BLAKE2b-256 872ee89f2d86348d1149ade3c5fdb7761eb1a1e724ae5b3d37d5c8f5f4d56536

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fff9a0d1d9f69888f076d44010f5d0cbd2e2fdcc4d01cffae24ff11f3de9c30f
MD5 401b7cff402ae51b84d1b3bb44195b90
BLAKE2b-256 5be2216ed9e9543bd8ab0485457af7587e84853115620ed85f3791ec1c4e23ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 834e4e2dd1d273a2566bb1ad132a27ecaf0c616139c7d7a59b22ed10d5839e70
MD5 e9570001a64e5047818627793954a065
BLAKE2b-256 92ca47639e0f26475fd25f38693e93edcb1e46b902465d6e1a56cdb9fb5eb8d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b4bf08f8885c4ec758af4c44057e92e3ccb04d705603e61d060dd7d290fe685
MD5 d6b19a11f52e39c3fac4a888ea20dff9
BLAKE2b-256 359b2c2c9e077465b0f2e7363851e1290393aa67c82f6113755f6a925bf53601

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cc885703991632565c17e817014d1e7bca3784d0f56bb07d2e987ed8030ad600
MD5 332846e4c82a93aa700bd65c06af8da9
BLAKE2b-256 7f08af592b61eb1a98fbbc5e92dcc3483f7ef715e61678f2a117ed72d30d117e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ff7b96e3dc1c2eb3895bac2a123e441ab90bfbb978878147e8c9faf95c709823
MD5 c6f8214995a554b72236ac91f9a4dd80
BLAKE2b-256 a61b92fdcb4ae7d71233a6916e0265e5d46e9477e0b83d482e14449050a25e58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 91d8acb06cd09c4ed1028f6dcd6872fc770d1e44940551c1468d4cdf932beeff
MD5 f2bc5c9fc1ea2b7beab494709d37204f
BLAKE2b-256 0dc803fc9e152fe30d23e0fd1e9c797ddb1e0c2d9d0b4dbdd5bf65b1de404830

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 428b6122b7e513b3558d903a51abb0efba4c30c19642a423bb2979173b6fb109
MD5 8385bfe1342596e673771b874b9e5221
BLAKE2b-256 44cf4d3ffab1c0d01b835ba5df6898c914e28507f961ada8e4c8b96821bb8702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a57f1861e21a15873aeaf2b2809f4831825d3351a9806d7a48366170bbd7cc9
MD5 dce4c915636b6f92d9d5acfe7e9acb29
BLAKE2b-256 8d5a7159e6871fa7c92d20a686877da1ce7da0dfb9acdbfdad9d25837cb474e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7426416567794376ebdc0afa5bd19963a68e3d898826bc73e663417b03c16b2f
MD5 53fa5ba66d2f968a93881309a14a813c
BLAKE2b-256 72a695106fe9dc91fbdd5fec079208c474486383316dbe0aaf3ba9922ba843a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 03499ac7d2fcc35eaca27fa4c112495473858cf4cb62ef83454ae5defb1bf518
MD5 d63e1694677b72d81d6277e2b8cd6456
BLAKE2b-256 fecb8beb652517d601a9b47640c58eaddc8b9aaf4eac711a43821bf04facb49e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 66ddaad7c72b37ab51c7ff456d530eb19d088ba213fe3e621ebc52935b65e05c
MD5 b953b9662f41b8ad9714f348d4b6990f
BLAKE2b-256 b80713bdf235557d774497b01e951e270851ff30b3593597c3ffb9d48752d7d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a6fa27599e65ae39686b523807b75033b8069e1999b442e87089e64839e9b19d
MD5 a2bfc560a0bdcd874a648a1e69c54d0a
BLAKE2b-256 1f2dccffec1b68b79def6f57602a972f25c6f1e9a0be1fcfa0ec2ad0363c214a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a590c8e92329f8b10f8ff92101204a6065ea1c48461f781be0d9960a8d840f21
MD5 6eabd6b69782bec3e08574a84a2810ab
BLAKE2b-256 cee2cc8ceb017061c440fa3dd5870e3e31040af5cc239c6c1f37efc0a0fd8222

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1fb2210f24cab4f13150d7f10bcc165492668aa2eaca30ee184d6f3204963846
MD5 8fb7e191365b511dfa17fcc6ee3e9674
BLAKE2b-256 79d5df69fc5bec2fb330517de553c1a50479939cbdddd02a32c8d7a6ca1c0e78

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