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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-0.9.3-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.3-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.3-cp314-cp314-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-0.9.3-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.3-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.3-cp313-cp313-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-0.9.3-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.3-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.3-cp312-cp312-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-0.9.3-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.3-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.3-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-0.9.3-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.3-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2dfec7cd6aa397b72f54b5b435d6cd73b202e1359480f5df00e7ac88344ffe22
MD5 a22f26b9d14db477c9a5ecd9ba74bdcc
BLAKE2b-256 10c1823f4dfd4753bc2f982e0e2b4f36374d13ea8ab94550a1a2ae9e6a084bc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b2f33da0c504be6c5ca07d8ff831faa842ad3ee1ca72f56970a2ac5e74d1cec0
MD5 2b0b573c082003c4ef900c285bdf9e19
BLAKE2b-256 1c64933912e0b18920c8c45391b3e724d4b1ea1b5a2f5b76081dc9736a604b3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d1a6e4e7e0d992eebe4eca69a258d39358385bffed0f3a758485f5ed127a989e
MD5 1abbe3ad0de2dbf4f76f59e440718960
BLAKE2b-256 2990ae00dbecb493d94c45f9b4d3d549ff360108b80808a872a98b69f1700e10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f9158219a586ca663e8c86455339467ffdd66b1577fed56fc844e6df39777cb
MD5 58270766ffb12c7e2558e185c0b5e1e9
BLAKE2b-256 54cd06dc74338a5b0d175b181936df67ba85ac7e770433c5d526db4b193d62ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 36d789c6f58712e6a1b75864cde972a5eb66eb9e29f17ad93f95c9c682d816e2
MD5 edcd9132f6d80a3678b542cf8b4dbd04
BLAKE2b-256 5591bf8a4b2c4937b4432c71b77406e61baa139a46b4b7c1ca39c0bc56968d4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 84b3316f31ee5c35fefac637d333d6d369ab24fd11e008eacf1bd73d6029891a
MD5 b47102f326a8e9655b5fbf6b74acdf7f
BLAKE2b-256 bfdc9eebd8d61ef78a2dae2d1d2a6f5c8c65394a3a3fb1b47eaab4a35212fceb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f85c167654052098a4fcb479be49ffdd9fbc829cbcc639c0a0e1adf81f7db431
MD5 1906cb1264b07d3ae9828ea488631e48
BLAKE2b-256 187baabbed6b44b9dce32dc3833d06c3f390a1177b0e44197b3d65ac7461d55b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2dfdd2e95f9cbd75d43eca2b675b415724a16841b225f2db6509eadb442e35a8
MD5 624e85fd14a6ea1f04c89bc897c36a05
BLAKE2b-256 6e3f2bbf7b89a6b88f7b93cc270b91618dffbe7de6a12925aa8002d514a4283b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c15a7c06bee97cc9d2f0eaaea4e059b04d834f67fc52d4fdbf101e546621eb8
MD5 28e2b78ad4d09e90ff685168671bb60c
BLAKE2b-256 a75679aebb0603f47e977267880bd94c14b3329a26579a902d26e8e826e89d8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9efa65a66e759423e8fdf4ffd562836826dfb3110de08d0975e6e1c7584dcf35
MD5 3e0ad5ddeb3151921251f06e30e00f85
BLAKE2b-256 4529a901aa8cc1dc47cd5e863cf09f3023bae61e97ae5580e11e3fb94dffc590

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6bcc410aae69219483a18632d7fdb9979631c8c548e013ec45bb2855eaec4cf0
MD5 ab60e1618f444e9c5ac21bec60d288e3
BLAKE2b-256 6967d955defbaee98b536c4da1d7d0b9cb4d68d1d863ce14c8b19b2e17ad90aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 30614cc74b85435fba0c0e0cfeac449d7017e643c732221938be3ba4752389bc
MD5 9fc537ca5530c8b46f9d9d436f49307f
BLAKE2b-256 6183c07f1a0a6ed47c8f1366ba9dcea96267877ba10bfbe62217cb93ec26feef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fc1780a7a017cb93bb29acd32ff0352881ddbb06e5cb40c9eb5d5824e09903bf
MD5 dc87743fd68368548fad540bea3a20a0
BLAKE2b-256 2899c9ff5dcec8bdbca2242d9c47ca0cee7dc9e8df1d6481c66199f7f62fe788

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5a3070db9884184caf44803bb2bfc959a478b59a825b02d08f2d75d70716e39
MD5 12ee588126d3541a36033bc547669925
BLAKE2b-256 83a64d4baa924fd58f3812c95d9cbdd711f43cebf86f9c4a60cf1de73c182752

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bafae9d20aa259335d725a678ae961d4197de5846023beb72646abcdbfed4179
MD5 55e24d5885a68d789a1ca6f18cb84433
BLAKE2b-256 4f38e7d0c32d30cc93452c4cd828655fc7f70028ae2319e21d7336ead4fb602f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0dc873a9a5b600410a131058be04c7aef6dbf10323d3c0d3968676d4c9cda318
MD5 8d53fc7176a401aa6eab380de2df29b9
BLAKE2b-256 67f327de1350d36b8124ab8b64670487505ede656bed9107a3c89d43c6f849c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f0971dffa0b4a62f002cd2d0ea3e013f9c4238a475d263a92f86c6d72e4cc2a6
MD5 db6683af83a3fa9d1c305324c5d61b3a
BLAKE2b-256 0f7b89d7945d613618e892e0aa7579e7111f171ca8118d8fbe16cab1a0f1e257

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 896602024935b03352e84ed6eab75d211d3f64b03277dfd7f4d65f0cb1bf618e
MD5 3d4c314e402d395f1bd68d041659e917
BLAKE2b-256 d4ee3836d9f2c0090828aa3fc81e7a2a748baa325c2da639ab925a3bf49386d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e7edd9b429562048ac4fc66284e1dbc1dee6c6bb15580608032467c7fe4e8bd
MD5 f6c060e2125ef4031b2603c59fbb482e
BLAKE2b-256 ca8604805cd7cbcb4ed2652737bced91534f1d1952f0da6f09de1cee4a5f26a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8edb0ae0f808b38539a81260cf748c2c4860e7a89184719d83d8db372b87c08e
MD5 a136885770d4a126609d20d4360f1f1d
BLAKE2b-256 2669a7c7da3056b9d1e8a1774ab60b5b2afa6d6e8729c070c094bd761dcab5bf

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