weftai-mcp
Serve a weftai runtime over the Model Context Protocol, so any MCP client can plan against your operations.
pip install weftai-mcp
from weftai.mcp import create_mcp_server
mcp = create_mcp_server(runtime, {"name": "tickets", "ctx": ctx})
await mcp.connect_stdio()
The server offers three tools:
| Tool | Does |
|---|---|
run_plan |
Executes a plan, returns the model-facing text, and keeps the results in the session |
describe_operations |
Describes every operation the model may use, and the $ref syntax |
get_result |
Reads a stored result by reference: $open, or $open[2] for one item |
Options
| Option | Meaning |
|---|---|
name |
The server name a client sees |
ctx |
The context handlers receive: a value, or a function of no arguments that returns one (sync or async) |
include |
Which operations to offer, as a predicate over each operation |
allowWrites |
False refuses operations with write effects; they may run otherwise |
session |
The session results are stored under, {"id": ...}; default when omitted |
version |
The server version a client sees |
connect_stdio() serves over standard input and output until the client goes away. The
weftai-cli package wraps this as
weftai mcp --domain domain.py.
License
MIT
Metadata
Release files for weftai-mcp 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| weftai_mcp-0.6.0.tar.gz | 8.4 kB | With provenance | Details for weftai_mcp-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| weftai_mcp-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for weftai_mcp-0.6.0-py3-none-any.whl |
Total release size: 14.3 kB
Release files / weftai_mcp-0.6.0.tar.gz
| Download URL | weftai_mcp-0.6.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6560b28d3153b8416b9f54185626ff2381e900ef8fdbd0c1f0cb70b51b8d2dd8
|
|
BLAKE2b-256 checksum How to use checksums |
05a481aba86bf6969a22597cdd23b20d6db1d115b54149bf6cd3619d2d0f5f10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logRelease files / weftai_mcp-0.6.0-py3-none-any.whl
| Download URL | weftai_mcp-0.6.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64246986e0cf4a60f5bbf321c4aeb0850d56d1bd32247e5099c4e25a962fb37f
|
|
BLAKE2b-256 checksum How to use checksums |
f83d0ae1dad6f9d1e1b8488ce645ad75af66345b9da0d6c1e62939d40b288e23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logSecurity for weftai-mcp 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for weftai_mcp-0.6.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.