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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-1.4.0-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.0-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.0-cp314-cp314-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-1.4.0-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.0-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.0-cp313-cp313-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-1.4.0-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.0-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.0-cp312-cp312-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-1.4.0-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.0-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.0-cp311-cp311-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b97de8ad1cf4f14fcd7f45a17bca13096724383c233ad53524484c30857e6d62
MD5 d2a006dc63b16abbf4627c15284ab09a
BLAKE2b-256 b57e1027c2c61d493a48ab2ef51eb2cc0dfb2f240cf6942bdfe492de499b2418

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1ef6b5cd8c4a2762b420a54fa88da1ffd7e60ddfcf21a0c8ec68289c5aa7bf2b
MD5 a35ef130c662f85e4facdc0d03008e85
BLAKE2b-256 64c53ae42a7116efb605e77224a5c357a006eeb65624716f8a66c8dd72f1de20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 293115a3911f5ffa8c922328713757c883552847a6a3d7dd962c35f97f7a9a5d
MD5 399ecb3b806b75297906540599a9c710
BLAKE2b-256 1b048dfde61e574c15a095638f15a137d744d25c255f0f2044c750ae628f7c5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99baa864f77b3d257088afae3609770d1ca9af34f6fc2d82bbdf9cf3dbdc8815
MD5 eaa9be7edb74c4335f9a437225c3be6b
BLAKE2b-256 f6e561798fd8eb755fdedb9ead79f2576cb5811c41857a6c9069c193c7b31674

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7434b0dffd15bb17c622fd802c047a8453df62cb7f5aa9c82fba8fce7bd5c6a1
MD5 7545c4a979a30d52fe8be426f4bb723d
BLAKE2b-256 7ed5d0d213593c4882c19386085a4f502d6540e390ae27d06fa13bb1ecff08bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e13aa1652353bb4bfbae281e27d3524c91c0f9496073ba534846caada8ab6de9
MD5 4d9efa9a1981cc9065af7586f6614697
BLAKE2b-256 7f787c4d6cbfe8f089451669e1c809d6649b2f2337bda23acea70489990f5462

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a6c03f7f9e97d827882f0ea048ad342eb0695b6ee284ed745aa55613a36a0cf5
MD5 1a0f538d468248601bc961046e0c1251
BLAKE2b-256 90094475607997c96b3dd50772574f6ded701de887a489b326385a2deba86cff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7daaca1a4b06759f7bfd3b5e963b96373dce8747542d1d15fd491dcca96f1938
MD5 2b3c45e605f4ed7e48e707459808ccf3
BLAKE2b-256 86627b8ebf136284c38ba4e1fd32fbc6e2f910badd0baf61f115a6ab6dcacd41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 509400deb5a5c0863c85e1b5f23142cf9841710e4fd4a290e0d0d929a1f49bf7
MD5 ef6eff212765a5efd4c2e1fa05ce8cfb
BLAKE2b-256 9b48eaaa1a51b863e19ff039017865a68d85a43016140893863e254a1d58eb9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bd1b72a644c5e383b8c0d7fb6729ce48d661315568379dc939b7a072232e8b86
MD5 4083b76994637de5ae20cec6418bef3a
BLAKE2b-256 90fe1046817e70d72f1338c65cae71231a9f016616478c55066742f977bb3246

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c566b5d746beea4ae90b1c9a42d21cfec41913f92c2e5039942b5077c6a670f6
MD5 2f027310f54c37a10e7c71ec6c007baa
BLAKE2b-256 6dee8fe8b1c0a131cc8beb86114c409a42b05e134eca38e7aa9d14abd729a3a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4de7d2a6610ef7fa668ea2b1cfd0edac318a0dd8a425b5e8b6adc17115af162d
MD5 8e9a069b6ed262b40536c3675c1f43cc
BLAKE2b-256 03f0d1ec54ec4846fde7386b62b6b1985638213c9bcdfffd1ef64bbe8a70bc8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d8b6c28c7ccc7f5d088706375f769b2c84aaf8d3ce072c52797dc646937e7f13
MD5 51b0f3a656fe710a2ddd1ca70a5f7129
BLAKE2b-256 12bdb0951b0853f8af52b0ae621747bfe3a94c5f80acea5b1bd6ade43973fd27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54d1fcfa51a4bbf5d85d0fa89717d7921b2ddc7bd1aae55fda0d82d723e0c0bf
MD5 fca1023f82306f3d7283628316933954
BLAKE2b-256 afb38b07586cf7336486e09c510c964c19ac3077eaf5ebc6a9fac8853877f9af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cf6e33a41ad8784a5217de12e6459444b92c391a7c550bb2308e1fa1137320c2
MD5 6625b81bc8afc667f60766dbf96270b2
BLAKE2b-256 b54dc26205f95ac9ef607066a433ee33860ad6b4bc444c0db4e03184749a7bca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f2644177ee38cf70cc66a78886fe283432b55aa9e76960fc1cb1d3229323355d
MD5 944bea710f5015f06120736cf24503fe
BLAKE2b-256 9ea407405456c9fd48a3e07889b8ec74006850c9ff9700e1c15a31f671f7121e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fcad5142d4d7601086a27fa458da441a867b1abeea77636dadf785dec7d13eaf
MD5 c6120023fc59bd4b3c28091cc4041c04
BLAKE2b-256 4194a66aa94b84b71f79ef6086b994cb04d86b8af0cfd512336299c28ff8574a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bbeb91edb9e6a6509c54f9dfa908ecbaedae422945d4a3e7ac9902d38456ae7b
MD5 ae9e9d0e41e094a837c40214719947d3
BLAKE2b-256 6cda4130e2527c02e26b43127cdaec9b1f14f4e98acd8d287538946082860ec0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 146ca4538953a0184d5b17c2bb4ae2a8eca3159ca1988cf1153c5d4f2d29d0ef
MD5 75dece78750a7538b4592c9ff6a7c052
BLAKE2b-256 cbe3928e08818be72853bbe83f40e14d243a114a8acc8ec9b864c72558508fe9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.4.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4413897548e1e305aff23da35ab4bee438e34bad5cfb2f568ee27fe5f4499122
MD5 a92b4e85e200e05637565d1938c72582
BLAKE2b-256 94c971600b21020fd9a0c64e1a2a800c2e285d1bfce33f3232ffb865d9e9858b

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