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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-0.9.0b8-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.0b8-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.0b8-cp314-cp314-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b8-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.0b8-cp313-cp313-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-0.9.0b8-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.0b8-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.0b8-cp313-cp313-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b8-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.0b8-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-0.9.0b8-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.0b8-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.0b8-cp312-cp312-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-0.9.0b8-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.0b8-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-0.9.0b8-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.0b8-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.0b8-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 9d6a744e2efde749ceabd69905252cb5f1c90407102fdd007609905ba119b247
MD5 2dbfea8f1c38c82c6e381dc3f04acc81
BLAKE2b-256 f6c4d4228142714ee410d1c1858f65634b8f6b1d4fb807cfe4f78ffa0af4aac7

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 adf44ca13eb114a775fe6683ef64a8861b7767f296fcbbb353acca3910f32814
MD5 cc2e9290bc4295704e335190596e150d
BLAKE2b-256 105e0fbf9ed0eb281cc8a73a69d4c2b123634578fa25b7db32cc20208e823804

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 01d74ec27c3c9ffbea445528e88bfaa78d0423583c415aff50f512b1b631de17
MD5 2d40d2084e84b387a8e1cdadea911e38
BLAKE2b-256 e21a7dc792cdc56fcf4641eea73292e1bcf199fd18d04d1bad1cfae842f257f5

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7be53f13dfd8c2beba4216aacf68a9526699995a6f2911d48896aad5d8877587
MD5 6f6f2c3e7a40547f82ed6757ba64c0b6
BLAKE2b-256 2b54a0511f4db22fb6b4629a026443671bb2299d1a70a4628f946aef96643001

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 088d23e95fc1c290e645569ae9afbe2f741bf976b0780145ee417824f8139fc0
MD5 a560bef3a8e8d9fd47a7456fe2d45efa
BLAKE2b-256 03b4043806399499177fcfc8ab16df4c72266ca989d4b8b757a5127217804e84

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 95cc888cc8837d469c85a8be35ea24a9e58d0f7d31f47bfbf3f08d28d3ad263a
MD5 4efa66d8a89f56301bc4d6cf4379b043
BLAKE2b-256 54ef413c0e4c40a7c5dc90d1c64a49d03c8589dc2453e06d51e6e17e728e99c3

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f3787a130cbbb108ecadf83316cb5a3ba0a6be42dcd28e7cc23d42f50457a882
MD5 31f7455f5899e3a0fffae3be35e897be
BLAKE2b-256 0064d4d843531a8e19085543528d34dc18d3e3c6a8531f3e77a4465857bd06c6

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4157763b7ad71a5cb43d69429298eae5c6a5fe910c20512bd11707edd944449e
MD5 e523e346973622528bb8346453a128da
BLAKE2b-256 0a9d378fc005559273244f5f08325c15d8707f29a83843cd3086044fade3cda7

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5087f524307497ea5e35e4a272ac1db9e0ff14906148f48f4bd38243593f5049
MD5 798a54bfda75d5cbf2d47bbd30fa55d5
BLAKE2b-256 9c2bc79b7e1be9f9f05c06b3c16f26f8ed4ff137c6a6d80638b1ae10f96e6517

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 75515c770969e927010c62d2a291386b1d4eb36a17057e7d9f443736dd211e57
MD5 ba5baf50236071543e14a96113810490
BLAKE2b-256 32e5d259456cde8e906967ac1effdae83f448047429a55d45679de97a529e925

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2e5eb47ec460fa2990b9cd563212c6715c40f4f8292bc0933bce8adac5a647b0
MD5 7b71d3a26cf13b2c19bb911b6ee36906
BLAKE2b-256 49a884ba2949dc1f7db665334269ffc6305f211024894116161fcc4372bef45f

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a636af36e8516e57ab9ea79f56986fb4089ea3de99d5ef42c03683335a7cefd9
MD5 9fd77609304f2cefdb4cf4a2cb2de661
BLAKE2b-256 9fd14cd9aa839b88159d55c71282c6a3f4d4cba68c7fd37adbccf99774ac51b9

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c90e2a42ea704a1d1fb172cdaeb42e8238a309f36ff2161e50c8563a4bff18d7
MD5 cf470524409ea27f4969588d4fb562e9
BLAKE2b-256 2dd1a8cdbd3a49c985dd002fdcc96eed0f5e567d857da1047112f9780c4e379f

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de2bd8bb4758ab1f8ac995d0bdbad0db8333c0bc6910208fb877ec4eb0f2b3fe
MD5 28aa335c4b7c438ed385c7a1040e9c10
BLAKE2b-256 a4958807a846b0a0f2d0a95b13e925167291a0fb718d94737f0e20e11a52e90c

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f89b61f523c23f25ebb6035c8c71ffc95b310930f0e7c35a21eed1d559cb8eaf
MD5 7c230eb90d4fe7429a0f3c94a607171d
BLAKE2b-256 9b56189e6bc2d5f91d4449026c4ab15d8afa467417de17e87a70a8fdec5586ad

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3cddea9532db3999cc2bb0df5e0603a9a2e12d253f3433d3abff31cf93ebb61d
MD5 ab95c7ab4b1a455ec608b17e02543e6b
BLAKE2b-256 4e292886813069d37f9bc36725d1a89439615070c887cb33deddb43713962dae

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fca0c0c3098bb7492de84a455226f845d7385b5fd69b68ad02769e5ea926614f
MD5 efab24a78cc7f855bf96489225a14b90
BLAKE2b-256 c479517c79e05b4e1039deaeaa389e7b4f0e7ae1e1fb069ddb7b8b03a9fa304b

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7daf806a120a05ec203f782b5820ebd74c8a49643b485005655b4ee2e13923a3
MD5 3b4a36ab0f71dd1fccccf22ab10c4fa3
BLAKE2b-256 79913cae2df6bba8e126920d85b683d7aa29ec2cf1f81840a9403d10933e6875

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b7940402be5023750833c1419b85b54c1bbe8e5c6b114d3ee3010d75dff88ba
MD5 08f497d80cf654ed0065c4d353660928
BLAKE2b-256 e1e454ec310bb5bcf5ecec88b67edcfe0e7d7c3d66de37c949146649379b84ae

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-0.9.0b8-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-0.9.0b8-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2ce1945c0ed81118cf9458684d55064e20f6a63f39fa4e707756af268493ede9
MD5 6ada770dde4d13712298686f1cfcdefd
BLAKE2b-256 e18787e257a97161df7bdae46b522a6183304e3ee24be3c8e6535031a6009f45

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