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

This version

3.0.1

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

Uploaded CPython 3.14Windows x86-64

mcp_mesh_core-3.0.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

mcp_mesh_core-3.0.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

mcp_mesh_core-3.0.1-cp314-cp314-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

mcp_mesh_core-3.0.1-cp314-cp314-macosx_10_12_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

mcp_mesh_core-3.0.1-cp313-cp313-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.13Windows x86-64

mcp_mesh_core-3.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mcp_mesh_core-3.0.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

mcp_mesh_core-3.0.1-cp313-cp313-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mcp_mesh_core-3.0.1-cp313-cp313-macosx_10_12_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

mcp_mesh_core-3.0.1-cp312-cp312-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.12Windows x86-64

mcp_mesh_core-3.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mcp_mesh_core-3.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

mcp_mesh_core-3.0.1-cp312-cp312-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mcp_mesh_core-3.0.1-cp312-cp312-macosx_10_12_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

mcp_mesh_core-3.0.1-cp311-cp311-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.11Windows x86-64

mcp_mesh_core-3.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mcp_mesh_core-3.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

mcp_mesh_core-3.0.1-cp311-cp311-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mcp_mesh_core-3.0.1-cp311-cp311-macosx_10_12_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file mcp_mesh_core-3.0.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 45ecf2fe962c81ba8716511b78152823eb45a65e69a2cf7cc658304bd0db1865
MD5 a9fb67f764072308c3da4c43eec976c5
BLAKE2b-256 acc043a292d34e1cc7e3880afb3e7be893952985f95d97865c86b473443a21b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 abc5473d61f4e08b9150e07716fb594b1f010c651dec998815e5e6fd68ebf985
MD5 479927aec811112d8d92d2f7bfa41b23
BLAKE2b-256 7ff72508d5dc64a8766a5ce478f4a6ad0bc565e836557db503227f4bf5f8765c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1b482e481c0ff9ff2e48c2fd9aba19bffb91fe0c79fb72ebe2ec6004297c495c
MD5 97e2d43ac99f9765c8ddcf922e78f681
BLAKE2b-256 c2c798b709dc8aaa000fbc8a4896f4f0e53a635adb0d2a91a45c42f1b17c9051

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6be5079686a95d88b0bbe26b9858fc2f753809207d80529cf8ba6f5823dcaedf
MD5 998a887ff8556f0c9bb594ec2b324e12
BLAKE2b-256 74b3aec0cbce3b3c6b17e7389bdd09baee52e0612c3c2bc0c8ee8c62d8a8a1c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 685eab98b547209d546ca6fa919c2cec4844ee12ddf81146ad10c452914a6823
MD5 645aab0cab2489089d41c70b319b6db7
BLAKE2b-256 a85b7f61de4e4a47cb0752586d00d7f15e54cffadda8d83a7c14dfaa5db77deb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bc3b421790060c5ead2ad4c95c2aafab0ebafecb92254309ffca637018c5fd8a
MD5 aba8b160fd2143b750324abd685dc5bd
BLAKE2b-256 74c459eabb68b491be80973ffe16a66499bff5e8191021731714aa9cacf7da97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 47fc9ca84730859794ad09456d8ee12a592ced7fe9260ac0a337fcffe7b8df75
MD5 397926c76cf244ddb2119ab346f3cea4
BLAKE2b-256 3e900932bbba73b25dd587c57e8fbc5b311a024d776bf4fa37a8e644f5766a42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fd02cb6c9b8e8eea95156b6b13eac8b1eda84d287a5c128f78fc2246df0fae54
MD5 75ce8bc57ce3892d607a8e67cc28e8dd
BLAKE2b-256 1dc61237872954a888a0fc9742b84a551e96c8507a3bc6fae18a4395d4976a57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ca796520cac7fa8f9f0e4f4a17485ac96a14fc961e83ae3d49de667beec2f5d
MD5 391518de5b6a242e10b6797af4bc8389
BLAKE2b-256 b06415cd4b69f4863ab1fd0e054ad221857e4e3f9ed1e534d6ee67107ff25cfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 50f539519ebcfb94c7357c72188c2669038319377ed4d126e6fda0896c047784
MD5 89c6e8b0417d9cf2f02e2541f539b64f
BLAKE2b-256 79f7a404d90f9f0f830916d7dd5d7e22285bdcbdb4d2aff862e7cf7b8707300f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cc3af88fb8ab4ea781fc4080aab284129832243a64603afcdc04adb33b294ba9
MD5 e45a76dda566449ee1461c0f96658a32
BLAKE2b-256 2dd8307eaa5c7583a5e910c13d2a6bc502a8f66cb08545c9081239568556a9cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9b01cb927670e81f7ad7f687c71f13ef3669e4d8dc0bccabd8ef491edec97c16
MD5 4ecb628d9861adf4046beb522fb2c315
BLAKE2b-256 0799eb3039031ec89251c189536c0a4b84d32aaee18f2a96f9f73b0c1794a650

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1a71d86037a019ceca37dd51ee3aa74a18df38099d70649667dd21a17eeee399
MD5 04e202cc431d168d9d1763d92a7ac567
BLAKE2b-256 b121844d6f3edc16c074934a98d50d06e9f3caf2ca4dd635f2cf375f52a99395

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2394e14115e0b092b0ab6082f0fea2ca75b82fe044f9550a50aa68662688873
MD5 7d4088f550bc532bc7f5ca61b1159ad7
BLAKE2b-256 4d4689bd19e5958a37eced66975107a56cd4c7b651b5df1b12cdbea57efbaf90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 58b8d85c97bf48c81816204bdf2fc2d3fbad69f49c2698030c2f5f7ec88183be
MD5 f95a4652cdf53843163c1a4d49f32382
BLAKE2b-256 c6e1041e7977b3f4a3c594de501d05edede575c835ba99a7d23e31642cbdb594

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 16ea3677e74c5378ea64c4c82a610175fbb7ff08031eeca67d3a9f0f0933dbdf
MD5 12310065b0838785354f07e82c9893e7
BLAKE2b-256 e94ff849f7add055961936aea2853ad9e2ee6ceede8a4c4cdfe8865ff282ba9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9c86dd47cb6bb327e56353155413780cdf8f238691447b7ce9c7ea129f4569ad
MD5 28d64b6ec21f0f06b71b3a5ecd42ca41
BLAKE2b-256 09cfc25d3dae29fb6008510f7a66b3239125fd439688716ece07f13ece6f3fbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 55919daf8a6d51c9a3846be5ea1bc84037ba8877d897b72a061464fcd4906ba8
MD5 1119e311b89ae70c3e64fdf79ab92875
BLAKE2b-256 8d78ff224423b3be3c99e0863be8e63936c53106c7e02be0b66a492a6d6c95ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b8ef49b8007623540a7bb08b93c7ec01b6f5e9ed5097c772c24ceeb13412bc1
MD5 1cec1a83dbdd414c7641e9ff3e09c301
BLAKE2b-256 7c5ad145e87cd6803d752fd1037b6f72a9e73765d7b5f2d52a6c47844c3482e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_mesh_core-3.0.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7d402a2e1345c4ead275492604115a825f4112b2468a10c7f98acdef8540f188
MD5 29accf8b87e93d8496e33b2c7e915f9d
BLAKE2b-256 940839a298b5ad2031b99c358c3d673358b35ae5b793292b54da09175762a75a

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