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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-0.9.6-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.9.6-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.6-cp314-cp314-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-0.9.6-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.6-cp313-cp313-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-0.9.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.9.6-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.6-cp313-cp313-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-0.9.6-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.6-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-0.9.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.9.6-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.6-cp312-cp312-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-0.9.6-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.6-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-0.9.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-0.9.6-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.6-cp311-cp311-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.9.6-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.6-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b2738b912dbc969401eb4bc1a0dcfc2c29eaf3ff10e2dcd04c3c42136706d602
MD5 17c622e06eb61d093fef202dec6464cd
BLAKE2b-256 edc7f434a5d7cf5df6caf2bbc6fc548354a1cbba78881d2edfd0a9b8271a353b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01c750eb18df7fa791fb8564c5918b182874e4d148960b5b809533bbb216434d
MD5 d22e93426084b079594c77afc528152d
BLAKE2b-256 fd8eb6466d70a81a7642d23d69e3377558a625c6ec4f12eb367f100472025fef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 71135ae3bd3bcd977d3994a8293954095a8b4eab6dba98603492f3c27f0b9487
MD5 f12058d0a646223990eb1704244d1385
BLAKE2b-256 514b51842cd601e5388c532af25e4c5da5e2ea6e4bee0bfa205178b599066a1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed7bb552809552f65c6b63c5fe429589713ea3e131e8ab33fbaa2ad9fee8ea62
MD5 0b542271fef5ff0345c8fcfdfe33a2e6
BLAKE2b-256 a6c9c2a3bd574073056464e4907d0b06c195801628ba32e1a81e775c9c202606

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8cffd98315d28d9693a24e1d2b241a40aac3fa72db033b3a591420e8b025eabf
MD5 9815d190caad860d5574ab858882da1c
BLAKE2b-256 abb80d8661b08a52c377d923c9f38bbe510b67599ecf0d926c02377f38728e07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ea4500158cf6d0be31bb467443f9b0dd4e6d69327a61864856ab932244c33557
MD5 0c61c4a1257db9191e07a6f30b66f814
BLAKE2b-256 8b8e911cc455bba8587512a0077a476ae527c58b3a9f82ecf67938294adbee90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 95f894bee642178bb297f7375306c324a50ac961ef57004fcf2be83e2b935748
MD5 4302fc5874ff2c6a6ed5025ae57d1f5d
BLAKE2b-256 1690228398fca760100d7adeea15c64e19dde5e0ee8d3a8102e1afa2090e0e2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bc01217ed6c75fd0cbf98cc90d42bda9fa3a54b561edc76f7cac43e658f22220
MD5 55ff726c7995625e68bd2ce7a068f18c
BLAKE2b-256 6589a21f9e6300a0be0dfc9fe03767e2c1edd59723d6aaf8605a3077dbc01f6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f6124bae30d3ea5b61e2671f3be7fbcd87ef9269e28442cead10eb6f743c509
MD5 f890ed03c613478728c387c662e0bd62
BLAKE2b-256 cad9d800583a0b262047fd31ae8c9321d194bc0167bf7a6edab05819dc1be93f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 61bce9158cb89868d6c4ea297f5a66d0f8e7207b8bf3a5db1043c4287ec8a340
MD5 80e3ebbd90ec6c63177613f8a5fa3332
BLAKE2b-256 74afe5a470645ae837a3acdb3b4b0c8fdea6b0a40f5d8ee55d6ec3d8a17ddcd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a3d901694f70b96d6ff7fe58280816296e8d99056be7dbc44c328c8ed8366fdd
MD5 251886d2f27073ecf9b6bdfeeaef4c69
BLAKE2b-256 1fd416ee5f775dc0aba17f730d2b361e479ae735d4f7feb9af1a522a5295d273

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fec4917f6464a50d09b41d592e7da8edb26ffb90ca80f94e750f74039fa55e48
MD5 fa339ea78b7f752fe884b322f3c4d4ac
BLAKE2b-256 75dd5b8921b375c6ef6651691e1b5e45caaaf283ba489f9ca661afad46d74564

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 829fb6beeead8fbdc8de4a29a27de9557a5fef2ee17bef72236572bbc93355dd
MD5 b969f8b363175193687dba709950e94e
BLAKE2b-256 16086bd66b5dd94f9a5c14a0149706652e182505b4ed1d6d753a576261d2fed7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d3d001db646e1f4110c23b555f229e71597ae5e69b1d111a0b6066faacd6658
MD5 9b31d59d098d4c03feec0ba9ea7835cd
BLAKE2b-256 ac816352829d498c7f2a9948bdc083919027dfed3469b1606e46897fad91dd26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b3225d237c00d0b8ee11d786d46c791c36141245060c6f823d604672bf2a820f
MD5 bc3abf89c3193009a5b26ad7594f6c8b
BLAKE2b-256 dfa7df8c1117640a8f00f279568d44428a813e8f53e99315274bf4508ef9f9ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ee81ee8cb5826a530230e307c2f752191704b9f6840136ba5e45d7682ee87e24
MD5 5a3db789332b6fa0f9ad21a07fd4f5a9
BLAKE2b-256 c46e69e8c21cc2ab5b4c79545b670e2c20813065e6ba4995bc231c52cb3e133f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 443b699e01649618c79f42f8c7e48edee2384bb8fcf137f4b05c17efe77b85c3
MD5 d1d33f047df71ec82b54b4142afb53e2
BLAKE2b-256 377d5cc6d8196b5349b423d6e495e0078a7d86b2afcb1a31928280895a5462bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e6245f4249a55be6f6def9d7afce033b2ab577aa04180e4bb1372f595d208d68
MD5 cb304b7f2438fd4997f78ec6742cbdad
BLAKE2b-256 820a23b4df7b20aa4704e4807555ce28afe486bbb949d3f4237a2107e8eb4e15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e72b809006fa15b62ed9b6d3d26640f14f400f15a015c568dfe5b876ad68d659
MD5 5136b70fb8b9e91d87e98c7ad198f9fe
BLAKE2b-256 2ca2f109a7f3f75661818d79cd78fd6a7941ea2bad3042a7c801da7c3d378dae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.6-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1865e093814501d28fa655dc50c2e2c68ab8cf3abce2890fe5afbb41a91a950c
MD5 4de8c8f90eeb28440a15a441195b4556
BLAKE2b-256 0ee5accc906b90fcceb20e6f4548e968b934a29b6f7b3ec3528a6a01d8dd2a21

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