Skip to main content

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.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for weftai-mcp 0.5.2
File Size Uploaded Provenance Actions
weftai_mcp-0.5.2.tar.gz 7.5 kB With provenance Details for weftai_mcp-0.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for weftai-mcp 0.5.2
File Interpreter ABI Platform Actions
weftai_mcp-0.5.2-py3-none-any.whl Python 3 none any Details for weftai_mcp-0.5.2-py3-none-any.whl

Total release size: 12.8 kB

Release files / weftai_mcp-0.5.2.tar.gz

Download URL weftai_mcp-0.5.2.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
89c8c415a490ddbb14895e5948162273199f045c8fae6aad4fb9cf08f23c1cc2
BLAKE2b-256 checksum
How to use checksums
42da0c9365e30ab027b4f7d8db15d50ee85b00eb258018cc4d474a5edfde0308
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 Sep 30, 2026.

Transparency log

Release files / weftai_mcp-0.5.2-py3-none-any.whl

Download URL weftai_mcp-0.5.2-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d16a40b24af90ab31ad7cdb5fa64e33e00525a60c2de49da2d99f85b710fe8fe
BLAKE2b-256 checksum
How to use checksums
6bb9c2ccf0803032fce4b042ac7f910c95fa01d1c94027defc8b30fee3c19bdd
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 Sep 30, 2026.

Transparency log

Security for weftai-mcp 0.5.2

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.

Select from 2 files

Attestation for weftai_mcp-0.5.2.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 Sep 30, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page