Python-first install and control surface for the MCP-Fabric gateway runtime.
Project description
MCP-Fabric Python Package
MCP-Fabric provides a Python-first install and control surface for the local gateway runtime. The gateway remains the existing Node.js implementation; Python starts it, validates it, and talks to its HTTP endpoints.
Installation
pip install mcp-fabric
Runtime Dependency
This first Python packaging slice uses the managed Node runtime fallback. Local
gateway use requires Node.js >=20. No manual npm install or npm run ...
commands are part of the Python API; the Python package verifies runtime
dependencies, runs managed bootstrap when needed, and owns startup, readiness
checks, logs, and shutdown.
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.
Local Gateway Usage
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"},
)
Remote Gateway Usage
from mcp_fabric import FabricClient
client = FabricClient("https://gateway.example.com")
health = client.health()
Operational Proof
mcp-fabric validate
or:
python -m mcp_fabric.validation
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_fabric-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_fabric-0.1.0-py3-none-any.whl
- Upload date:
- Size: 78.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4d76ab6dc555588dc96c99768dd1ec4cff5140687f7d4b8d035cbd298ca20c2
|
|
| MD5 |
d64aff0586ac4179b4188781178e9c35
|
|
| BLAKE2b-256 |
ac5aff5ee03890d0ec5aefc330148e4fd7e65c6171e08bad3b6e08d2ec52d78a
|