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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-1.1.0b4-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.1.0b4-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.1.0b4-cp314-cp314-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-1.1.0b4-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.1.0b4-cp313-cp313-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-1.1.0b4-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.1.0b4-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.1.0b4-cp313-cp313-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-1.1.0b4-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.1.0b4-cp312-cp312-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-1.1.0b4-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.1.0b4-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.1.0b4-cp312-cp312-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-1.1.0b4-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.1.0b4-cp311-cp311-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-1.1.0b4-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.1.0b4-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.1.0b4-cp311-cp311-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-1.1.0b4-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.1.0b4-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f04b3e90ee8bea53cce85c9afeecc6648a8dfcd759599a2147e71c6df2e39373
MD5 4fa33b2b98d146f0b6bffb242bd9fcaf
BLAKE2b-256 b2c6a3ce72694c1d64393ebf7ac9d38af65248d5a4f6230f36e283deccadea9a

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7abe3674bbe2a3df54267bb2b9e037680a2fb03dda463134f4d5d740ac273de9
MD5 c0ab543f3e1619dd44d0451eacb7768f
BLAKE2b-256 b8da8bcafcd1ef0cf1b414586a7fa6f6f1c899bb550f2bcbb507a2195100060a

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5a7b408399dfe162af4609fd0559b566f0a6d3807773a11e10954cbabb603082
MD5 c4a9953f3094ca7c2fe49e3e8118d893
BLAKE2b-256 0b21c0e1a9fc340e17594aa848f29c5b6769e19c63817ede4de45e62c87db970

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ca0a5a5375d1975d7779692f3d39e25dfee6692ec408bdee9352be3fd9d7076
MD5 3475b98bc423a90b1ce4d579a90c2c9b
BLAKE2b-256 dfddb1a1dcedfb34dbeddfe7330729c040aec5fb558e3c4c7d5a496937e5a843

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9788d6064c816af1eb04e5ff74188e4fae8e8a31370af31e6fc3a67cc81bb518
MD5 476fc48e8158c2858f6e40bdff1c9239
BLAKE2b-256 6d386c2dfd8b9299e6f736c448a5577ec82cb82803b8d213800a952d6e71687f

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7998f54f2bfa21311cef455abb5c7cb6697ed6996aaa7a8c51adcb815de1b362
MD5 79056c9483904f6949e74890da77b869
BLAKE2b-256 dfa5a7d96ba7be02b41c1a64d22fdb8ebdd187e2494fba6a6c8658ae4ebbcb52

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a7b401e489fd446380ab5ebc3dfa650e4820a03463637c6f39f483453cce5ef8
MD5 bcb38feddd9d69dd9fd481bc0fb1f070
BLAKE2b-256 9db4f93f536c61f8ac6bae28fff828825d22acf5b94f44783c9e4f377feec826

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 15c86b8b3e4e6a7345c42fc865b70e604071cee3e1b8b73ca4f247950f9dd00d
MD5 eebc74d45cfa0c333ce24c7e89548d53
BLAKE2b-256 3f2ce9206f24fc97dfdf8d40dae6b8706bfb44af5156ff5841aa7ca1b9d65218

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f97b9654b58a8c5f7cc914117ffe4705e57941a6d6517d18ce3fe919d91dc61b
MD5 c455c3e336a962a006f0ad6071b277fa
BLAKE2b-256 0dd340498c5fea2de709a44accbe371a609a1725f8fb58adb459dc2ea6aa31e5

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8c804793bfcda8db69f97067b127bea66abcad3f3e9b8aa438d2ab1595961a6b
MD5 86e4d15c594e2cefee67585d399d5b0e
BLAKE2b-256 20b94968b5e8f213eb96c68d46db97f717565abcc2d279b7bef5e4f80b62f5c0

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d191dab111c622decc9f62af10b107a30818bd4ff5fb72e5980a0becb6c3e929
MD5 dd1341c260821b14208000455e341bad
BLAKE2b-256 8b6ce63e31d455c19bdf6790a90410b152ad0aece8ffab7e0c9a0a11b995a55a

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0897b2e47d523b4a0159cf8e61b00ec6b70c71c9d6470adadbd3a4f3322b06b0
MD5 7d0b5d348593a8cbc7f60cc81e34ad21
BLAKE2b-256 9cd166090db8f255ebd23c22c5865fc07a7f79925ff02e075f4b849c91071eb6

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e2af291cc54b5418e6f8782217e0aa9e213ac5b8c6c42abc9250f9b73a63d9e7
MD5 d1884063a1ce447fcb4610c53f974496
BLAKE2b-256 6cd862fb74b3597ae6dbcb75f607920e957387422754c100daf0d5af98339982

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a7a7601e7a6aa4551f09b6c5e13fdf4f65446ad598ea887172950c72f2ab8a3
MD5 4f57aaf4ce21bebfdfea6cc9dcd985b9
BLAKE2b-256 e3fd07459c2b6b2d1d5244277cab9d0ee797b5f6b8a1cc4920ac8c3f2e14b983

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 da10a1096c6244635897d072a494a025472ce2af23e2dfedd617a0f4f4c33cfa
MD5 eba6139b2498e2feb6cad5cf80c4e8db
BLAKE2b-256 afe2287d0f586ede8ffdec47c04c5d5763ff2dd0d900bd33777e15d032b0a1b4

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6d0397be0caff581774769b59a9b59d22a96f22e11aa6ed5fd8f1b9436f60ee8
MD5 f6582ea5dadf08ee7907a8708b6a0abc
BLAKE2b-256 0d72c7f75f0fca00e1d964f93657c9a2d03c597beaa211e31dbc1f30fa9007a4

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14bc20ecf614487b7877f84e754986b76c60e8eb829e3921d95fcd7eeaa1857d
MD5 27bdab93d9973f4f307e4b2593b75dce
BLAKE2b-256 d979cc60ee75f54ede02d4e8340bee43b515d5f60188b26b50e6546c5321adff

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3608a7f6ae0648ac586d82d6a54cadae26898aba487ddb0cd50cd0da036e4b3b
MD5 0602db0a6b9f9da6ed2ba6bac96a4332
BLAKE2b-256 25a7b3b6ea1e23fa5115d6cc4992bf34c681f40614cf853922ee983872b09a51

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ce13011916515804bb7ac2d3edbc0310160161b680e3028317d019b24178b3b
MD5 90f6c10377394fb5242a5a339da63f07
BLAKE2b-256 e077c4dacbc376f27a080563ff941c932468dc5036b605ac74f7d9e186111bf7

See more details on using hashes here.

File details

Details for the file mcp_mesh_core-1.1.0b4-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-1.1.0b4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 dddc37739e608b08b80f3b8fd610780607adde6d7da9b3d71bc346e37de1ae89
MD5 5eb92b9d14571866071fae9e80c579d3
BLAKE2b-256 2d8adecf46f0e3c3de4fe805e971a7a44d2dbb5ce7dd506cad31192c25184178

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