Skip to main content

Python-first install and control surface for the MCP-Fabric gateway runtime.

Project description

MCP-Fabric

MCP-Fabric is a Python-first install and control surface for a Node.js MCP-compatible gateway runtime and its operational proof suite.

The gateway runtime remains the JavaScript source of truth for routing, session stickiness, registry behavior, recovery, observability, and adaptive placement. Python starts it, validates it, and talks to it.

Install

pip install mcp-fabric

Local gateway use requires Node.js >=20 and npm. No manual npm commands are required for the Python local gateway path. When the gateway runtime starts, the Python package verifies the bundled runtime dependencies and runs managed bootstrap with npm ci --omit=dev if needed.

Local Gateway

from mcp_fabric import LocalFabricGateway

with LocalFabricGateway() as fabric:
    client = fabric.client()

    session = client.initialize(client_id="python-user")
    tools = client.tools_list(session.session_id)

    result = client.tools_call(
        session.session_id,
        name="echo",
        arguments={"message": "hello"},
    )

    print(result)

Remote Gateway

from mcp_fabric import FabricClient

client = FabricClient("https://gateway.example.com")
print(client.health())

Operational Proof

mcp-fabric validate

Expected output:

MCP-Fabric Python operational proof passed
Gateway URL: http://127.0.0.1:<port>
Session ID: <session>
Observability: ok

Python-First Access To Repo Capabilities

The PyPI package is designed for Python-first AI/ML engineers who should not need to clone the repository before trying the fabric. It includes the runtime and operator assets needed to access the same core capability surface exposed by the repository:

  • the Python API and CLI;
  • the standalone gateway runtime source;
  • the local dashboard;
  • shared examples;
  • validation harnesses;
  • JavaScript tests;
  • documentation;
  • package.json and package-lock.json for managed Node dependency bootstrap.

The GitHub repository remains the development source of truth:

https://github.com/yuvaraj-97/MCP-Fabric

Useful CLI commands:

mcp-fabric validate
mcp-fabric gateway start
mcp-fabric dashboard
mcp-fabric test
mcp-fabric runtime list-scripts
mcp-fabric runtime run validate:filesystem
mcp-fabric runtime run validate:shared-redis

Runtime Dependency Error

If Node is missing or too old, LocalFabricGateway reports:

Local MCP-Fabric runtime requires Node.js >=20.
Install Node.js, then rerun your Python program.
No manual npm commands are required.

Project details


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 Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_fabric-0.2.0-py3-none-any.whl (323.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_fabric-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_fabric-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 323.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mcp_fabric-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6805ef776200069ba17624f3dc66551a0d36df9cf3eabc0e8e0f3563c3694881
MD5 03f6b64a20caec2b55b3ebcf9366c45b
BLAKE2b-256 3ecd4494951984436424f5fcc8f76ba44e4841f7d88765634b95d258feb7e325

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