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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-1.3.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.3.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.3.1-cp314-cp314-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-1.3.1-cp314-cp314-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-1.3.1-cp313-cp313-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-1.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.3.1-cp313-cp313-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-1.3.1-cp313-cp313-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-1.3.1-cp312-cp312-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-1.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.3.1-cp312-cp312-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-1.3.1-cp312-cp312-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-1.3.1-cp311-cp311-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-1.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-1.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

mcp_mesh_core-1.3.1-cp311-cp311-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-1.3.1-cp311-cp311-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b617f57eb79cf38fcd7db45ccaced8fa33879f29009f6be531ec3758ba4f32ed
MD5 fe1b7a52cf488ce722f97ef50e533cd5
BLAKE2b-256 e3d9aacecb03399fb7ec854c0fa106302417838148cdc69f951856f772633b07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f802bb614f9c8a216ef14d2c58eaefac7c838273af3b73b9a94b1f5062255155
MD5 a53f99d519d1b458dd394477a2e777c9
BLAKE2b-256 7fe13391888f80903ffad99c51d92b24546fcbfdd9ee787b7fb8cf845f83a4cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ac119b3ebd2487bb8de413e5a0f130aca6d3a3a47be88e26808a764d4bfebe3d
MD5 449e9935d89f225f82398c7bf2d4e515
BLAKE2b-256 e3047df318f7b5c94498d0f4bd7fb2ac09a6adcaa00d6730769eeb3990b7ac5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7991b0d2561f2ba9970e7c79d0bb3a7469ee0aae721e4ccd9b940b615a056dff
MD5 fa9cc18dce0c36760bf054f739e2757e
BLAKE2b-256 b619694d5af0a5256e7bd3c3b3260281905c4c05a6769b1fc5d4c4fe2ac7e711

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d9f9e57fb6436681cd8956bc283296f9a2b052a313cb114ff2390c6c7b1f3412
MD5 9346224efc101e81513c4943cc2f75f1
BLAKE2b-256 ae2854bd3cb902320c3e848cbede3145eb6d435a2e43f7a93ed9360d7aa347f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 20b550aaae56d6e1df2132ef59a2ec230857b65105aaa73e5f9186ff5dec8348
MD5 f0517da20d26885f39d347ee17f9755b
BLAKE2b-256 5e2443f0ff337358e897d3bd2afec1f43989592436666ea7182eefccdb2f72e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f730fab87d3cb59061c6d0474bb1eea4124f162c97af6e56b25d89f03f6ba83f
MD5 192036832185b58746f5da98404f8cab
BLAKE2b-256 b7710589fe389954adf739ca169d0829ba864ef41716f17645ebc28035e180f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fb7d267607d4a570ae7f0bc01fb1df5d530311015fe5045bb2bc650590cfedd4
MD5 6d65a73e3e1f90b7c751cf892a4665c7
BLAKE2b-256 0e7df06ff7e57172be4e4b969cf63fb0a0723d89d8cfb150f6f9aec0212e1788

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6150c15664ea539b30e1f14bc9b4acf616b69f31a06f4d04f5f149beb0f7d746
MD5 9e979d87ea6c0af1ac6338cdf644e097
BLAKE2b-256 eb1781b7fb1e0e14d4b30cb78106cb9283b03c4f32353414e7a71d9843cbf4cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fb4b106e3bdcf8a0f197202416a5f3c036398d8545173dbc1673b6f9d268d7a5
MD5 2be5a691c6295edd1d674a6605a8b6e4
BLAKE2b-256 cb0e94ef0895fa55252785633b1a269c97242e0bdafca5dfe0d3f0b9a111f471

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9c89ef30c51d4cbd17cc72525699173ff6a4389215ca053299b844bb9d1fb2a9
MD5 78f9ecdb3b84a1d9696feb6f85c81a88
BLAKE2b-256 95089dca5ca2715e0b3e948c267be5cb0be0e86a433be7d7978b43c4a35c1875

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1da548c66dd68e8abc781a6344f3c8e4e33c37108431abfd397d00cabfc99820
MD5 530fe6b4434fb36685dda6eb35c94d84
BLAKE2b-256 8cf0861f718947a8184b3456090d663305865699fde83da67c1845bda2978a1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2418f4847b6310c022805b69e03acda4513b679493ffdaa154b174b0cdad1830
MD5 9a49ab30e2385826fb6374b4b55eeb9c
BLAKE2b-256 32c6c0d5c510b85f786241d277ed34260737775f4a15957854db8ede3c0f4c4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09a9ed23b63d8d52e0481fe31a1defcbfa85f6db8d0e5ac0cf8cc4c12a1fb2fc
MD5 842d2ee5e0b3a0fbebe7d119c0e3f0f7
BLAKE2b-256 bb2d9dc58dcfa55e4401b4a049b95970e3dffd643dcc7e30664b940ad3482c95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ffba689cbe2ac628267f3c12c6a3beb3532a4e95c53175741fb638d48abfc396
MD5 593e69bade663dea96be167112d27d33
BLAKE2b-256 4cca3fe78f6517061c1110257aa1a99dc3b0e4c5cc16c9c9fa60d9abf6f799fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 911db9471d9b50a8729f7b97ed70e85ba2d8984f4bdaab5e2883d98fab863aee
MD5 a8171aef2bfc8f8869aef4c4883e3489
BLAKE2b-256 b1861ade0ec2aad5c8806480b294a30fd93a57c483acbe722a08e85887e7ea3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ab439c1b83c5aeacd37520d9fa74776dca8e11c81c40cc426d76830c722d5030
MD5 67e909e5e5b3e13ee70c5f64cefe0a78
BLAKE2b-256 88c5ac77d1f98f526c5908e280c8d2032afcb71351f697cfc4cdbcfe5c4ccaed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 47c208ef5d97fa371881bdeec52d947d536612df5d8929ce1f4e22b5d274b8e7
MD5 bd8d5785e1d34ec5135a7f84c8c6f1cd
BLAKE2b-256 a7b98ba195e37ba42137b8d004d63831984635f24da8162816973fd8db3cb403

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d54f3f896680043e1b33c5ab5c8d03a8acd53525841dbc77ab45dc3af8af87ac
MD5 8f4eefd6f160d836615b2158a78025a9
BLAKE2b-256 8ea0d3247e34c88dced870dd80204d635cffae6d5bdb7b2227396012e7283757

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 906d0ddb0b51f9b8ce3feef575c4a38c6715ff40d44fc65468813d6226c669ab
MD5 de592495609887830623e79ff1f0c16d
BLAKE2b-256 37d494f3799a50e7533680e5b7ccf196243278cd0b584de1a8b3e76c22dce0ae

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