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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-1.4.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.4.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.4.1-cp314-cp314-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-1.4.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.4.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.4.1-cp313-cp313-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-1.4.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.4.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.4.1-cp312-cp312-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-1.4.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.4.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.4.1-cp311-cp311-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-1.4.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.4.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 bab5784002c6e2dcea5c8d2892d6081f73cb6a05a43e25f7e8b3c0305c128842
MD5 e7629966de7f4e48101106f555304026
BLAKE2b-256 bab5739e7753750e443a6788ce311848c242b6876c465145a6ba3274f4093a0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a31275cd8bf1ff9c9c34a1aa165b5e96f5744fa7fd645a124acd56178cff7e70
MD5 b16d7aa0473a2617e8fd578f20ec35c5
BLAKE2b-256 2ba9703d6ea1bdae647fa241c4ae593f31f50883e2d1517ae2f10ca95cb7a156

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a703ada871d2ae6b258fd03cbc32423861a1e532653fe28a2fd865a9a7e2f87c
MD5 c255f83c998699cea287307b8462bd44
BLAKE2b-256 068acae188795e265f896c17e1565ab13421e34c563bba8b3ef063c9ab3c5f92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ba1bf7ae8f8e02e0f4ab6cf82d163b356d422bffb1aab31c70913c500d833e6
MD5 b6b555a45774933bc667e2c0ff52af81
BLAKE2b-256 9eb2f68e4c1c0925482613094b9b6c97e61027a01b85702296128b45b9aa22e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2083ea26c35bcabe6a7391c08e690338e539c952fae3d3d2e8ffbe75004776ed
MD5 04a18faec24a142d42f2fab8dce2f198
BLAKE2b-256 fb9051a7360d0a5d221cacdcb5a23f03c670eccf5a01321aab3fed254beae09c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0d5e13e667a7a9f1b09da274ca5b6b2fe3405ac2a2149fa671bcfc32b01ea1da
MD5 e4adeb2b44092ffbf5c12a809769024d
BLAKE2b-256 94741035babab1c26609f39bf832f2ec781df6d06d0b112700fae93ee5b2a751

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d09405a2c0def018692cc9a001a9ba72d5ec86ad7754a68a6f3019b917baf27a
MD5 b80c0950d69061b6d24c917439b1bd75
BLAKE2b-256 777978f4675bab0dd85b6178033db743226e430d6baee8d850916a14f5f41ead

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f89eee61752a855762411243040e627d4e3d3fbef14d4cb62f9cb3a4966c0670
MD5 d68c2ee122631fb9d0342bfbecde14b3
BLAKE2b-256 c7d4b2c91d842ef1021befdc3521c232bf9cd1b122ed31adbadd45347740ff4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ae17c3e74903fbedb28a3f456984ef7e43e8711872b3e2efbdb569742b2fdc0
MD5 4d6309c85d14fec09394fac4eb9bbb7e
BLAKE2b-256 5926fc684b872470d1cc5005290542d9178d969313be61653f20c0db44a18b0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8710e599519dd95b78d330873d6942fac472f5fbd2e98e1ab30868edcff04a27
MD5 8d95367ec3850976e11281f015093fa8
BLAKE2b-256 a2ab319b1d9f1d12adf19eb663b90475fd1bfe10f8bb0e9fc9b47885c707b5a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 97b87e9908826d9e59ce3789d9795d7d86e8cef0977e9359f6b16e140ea96d75
MD5 6a506b5e28c93d9ec857f0c1c5b6cefd
BLAKE2b-256 0c9c27699aab1fc9926809fe473b6c333bba5067d93aa6f189d742c1e1b85edb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 579448c3b75e2ec17555a411bc29aecb38cc3dc507553f88e94696bec6927604
MD5 1f9fda09015f94820ea92d49bac9b0c0
BLAKE2b-256 87054f36b0c49cb80d7642b44ac32d305310e7bc3b76ca3f9c6c988485f0f670

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 48c73cb348fd5da8cbc122a41f65abf8ca615b55d03a22fb56f815bffcd366a9
MD5 66ac80a5ce054fa67e311a64e957d620
BLAKE2b-256 e4907a7729afd78e0831f38483448dbb5b0729893b3807c1122f5bebd45f2cfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ee0a015f7f9ced129f787e515464f496aba0fab64ce8476e7b65400db451a32
MD5 2ede6b960b181df10bd9bfce2823a065
BLAKE2b-256 838eec0a48534ba6ecbe4a2fe43ebf45488fb84a9d0413ac2ca80f8a823d7689

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 55a3fb7d3f51857d736ac2852e1a194cf800994230bcd2e6a4be91f185dd81d2
MD5 ef0439f702cba450d8749074d3f54598
BLAKE2b-256 20262b4f9e8611ac16810c34e98888c33535da30e0c35a53fa46fb02d724391a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 62f721cdf036814515cf986dd56c857dfe37a6682a1f2b17e546cfac21743cb5
MD5 b77c25435219fc6c9539c2085cef863f
BLAKE2b-256 572a8ebbd7322ffe2a3f4275b8bcc31973ace1ee27e96a58ad386a8828fd5789

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7fc99d7c1262c9e1e30f0091f06cd3eaef95ea7dd4d08d32a2c7d8513516f371
MD5 3160bfc493e967598490af0ebcaf2db0
BLAKE2b-256 57eec9dd129a545d9f068ac6e4152b5ced625042935f970dba6f7b65301455f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 03588d0dcb232bb46a61fb7a069f14345c901bd60fcf4beb4f2583bcd6f4d903
MD5 e0389ddac56e14e61f8e7cd63cac8a4d
BLAKE2b-256 5e161663b5f577bd4d4152cdb6ac1f080150318706c3dffd40a0e688fb5b576c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afabafce51fd2ad02dc6d4d70fd98df0a5100e042ce547dee4de9bcc06fdc7a0
MD5 7eae6596d158c6e7bf194f6bf45207b6
BLAKE2b-256 4c6aef9e1d3fb3959aa6b43a4f8c4037c8b82eaa8aec6eacc353490ae2545f4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3b7fdf5cfbb343fef4b4469ba99c142ed7f28801e84bafa32a67f112b0b86bb9
MD5 209877ebdcd8873c5458137ec75e41a5
BLAKE2b-256 a74a3425e983d5911d60692b4bf13886e76ebd9e6d871fb934123b5e284565ef

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