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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-1.3.4-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.4-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 035816b92465ba21d16fcc9b4a5b424e493da04379454b7cf0ccdb4637fb672e
MD5 fbbab6481f9103efc1bef8c750187aa7
BLAKE2b-256 e4da67781d7f6103441089cbe72d630d414b3434fa743fbabe230f92e59c110c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96ba956b6f9a133856c339b5b9ce793301a1886260086e1f3a4f25ae9335c7fd
MD5 3de4ff4979c87f9b247550ab7f4bf566
BLAKE2b-256 c414a9fba2b79a7f73e54787bebce59bf63fdb6fd67812bb79d4bd61e71f6ede

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ccbb2f1b5d095216774303ecc35802e725672cfb90e0886291c9fe030601e1ea
MD5 c85967451ea2e5ad6ed68e7d83f70856
BLAKE2b-256 8c373b445ca926a373763db695e213762bfb80f610531a706f1eb093d0d18fca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ea6fc377cb62194047cd55ad47bd6bd8806d7f4b40d184796d8d6304d4dee54
MD5 f2ddf753b7a7081bc4d873bd56e9669a
BLAKE2b-256 cbffb8fd80376a9ab00e92016b8cf34e6b8c5a1db5eac837009e4c64ff215cbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 900441fbc31f828ce8d548995b553da26e2183b20ea3b268223df032d7d4a821
MD5 b9054861a7655af3ab45ac1221923584
BLAKE2b-256 17eb6a51dea63227e3478df3b5ccf459ce19ea71834c8d51f916960978ea8e76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 70ea6f81fb990f42c84af6f927245b6ab164642b3abae3d2d937b139cb1ad5b3
MD5 958dc19239c05754c48ddc48d6a6c2ed
BLAKE2b-256 0280d8e1ad0da26fe6a94102db981d17ee3e5ae73077457de83097b2a631ac1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6de58966e04d6e575d02e61e86cf032fb7c830b7f37d6152fb2e09b4490888d0
MD5 65eca96acb9b977ebed5e0b743cb9967
BLAKE2b-256 61c1cc7bef921d7a478f3709b7d72083172498bbf5d8cd45dbb1c0c1f2eaf155

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5823614eb6c3bb9e6146a8977cd900c0217ce4441f68d8e7319cbce066d2eeda
MD5 92dd47b8ebe438324ac7234665845fd8
BLAKE2b-256 e00edf670c1db88c34e1871545ea9867d02bad5637eb48503e5bad8372ac9d7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91e913ac760ee57b3af14ce5f77c115f03813bdbcb79dd8a7f64a82f43aaddc2
MD5 f164cae6ea7f9a8afd8e5cea22f2ef08
BLAKE2b-256 441608af8967f60f931ddfc5448d3575a8bfcefeafe62a7014ca659efcf34163

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3d77d329c82cd1b7ae70d90a154739a53bd50f36ebe76e9eb12c08446e0c053b
MD5 c7fbf05798c4507e776a236e892327b8
BLAKE2b-256 5f1bc639c47850df632b016a14cdeb340efb5f7fe18b613e010d4535f33fb429

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 243a4a43eddd24976e85359881966dea0958bdb246c4022941d033cce5e0f26b
MD5 a34d436bb67c5707320091f33448e08e
BLAKE2b-256 f8865a27d0c1ef3a3ecf4b684c6008c28ff422d30643bae22a62491467bbfe9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f32a423087a107ae589ff0c1f4ea3dc673c4c1d1d8fec0cb505a1e33b86b9640
MD5 8ce4082a73c6a9066fd3ba522cb935df
BLAKE2b-256 114cf7ccb49a0e228ca6c0094ae382e682a7ff543c0277c6c59efdccf40e79da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0fc7558160fd50294b5ae491a0576a6fdef2b76a69805619ec9de160e87f83dc
MD5 9420f28157b9d90b392b029c38e31c9d
BLAKE2b-256 790c4648cb004404a3b86d8f1d7dce853bc9465b9e6e9dfe157b4cbba402caf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6be8b481bd7313cd7b7c3967a7c1126411d8c5a658a9642d1017b00e8a349512
MD5 040d1d8b89044e073be2a6c18cf98615
BLAKE2b-256 2e5817c1c4ac25bc1326e8bebf7ceb0c2f6dac8d49d60de6b3db450831dfa6ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 42a8ea0f8868ff65970d2a8b6058caa07910758447b8265c1a33d15115c279ae
MD5 e2af938224be39dd76c99af3b99cc36a
BLAKE2b-256 7d43b5377c32e0b67a890a2274f008ac195322a5a7f729980701f031a907819f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cd2ec72b74b9815f4f7be961c89c8f88c80317d2e582cba26cd6f4cf360ce47b
MD5 ef2aafaada3b0ae7e58e4c24c21f47d1
BLAKE2b-256 ff89b3f99ab6868058bda048fb77a8a75cf23c949963827cabf6882076c535f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 898bc4ee7c3c01b737e0ef9492f5708f875e886fe39b2fe162f03af73478b243
MD5 c2c6524f67f58c0d2952303b030d2398
BLAKE2b-256 124d27e7607601640ec43e4691c7f8fd2057c411459a02bc6665eef2e8e4bb48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2ef872173461c4c18f09231a82c6d8dec695bf559fafb96a49689f9f17eaf743
MD5 b2590d61161c9060843180ba5726aac1
BLAKE2b-256 81bb416154b352475ea9b1bd17611d841e4caf143273fbd0db3669a680113084

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03924bb25b453d5022cc6c4dafc8a805e8bb93ce9f4cb8c768dabb19f56fd012
MD5 3ee3dd342280f62c26c8835bef2b5df3
BLAKE2b-256 d4fbd7c4388baffa6bed74dc101313c734e82f801b4c199da022ff4ee957f39f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-1.3.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e3b3c5d87f5fb2785ca06482ea1debf0193cecb84bb3873b8ff6c41458fc5d08
MD5 1b218c5e83af6114bc2cf3378bf32877
BLAKE2b-256 cfcadf850605c62aaca9d4a739eb437245b5b9aba24685f7b0498afef361ac29

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