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

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.7.0
File Size Uploaded Provenance Actions
weftai_mcp-0.7.0.tar.gz 8.4 kB With provenance Details for weftai_mcp-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 14.3 kB

Release files / weftai_mcp-0.7.0.tar.gz

Download URL weftai_mcp-0.7.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e6890a3e10247200a90ef567ce93cc684992f578f447ec55b4fb4a7c4600c017
BLAKE2b-256 checksum
How to use checksums
a9763c26295c157c80ee76b001656a1a18e149be126a88d1fffb3be3d8b5c9fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

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

Download URL weftai_mcp-0.7.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38f9cc52852dd267720881df840a6f654bab6b74be1b8140012ca7e2c40d69f6
BLAKE2b-256 checksum
How to use checksums
a8e34e1ceb298629df0b4dda1d8167afecea4210e2fc2840aae85ccc8cb5dc6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

Security for weftai-mcp 0.7.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.

Select from 2 files

Attestation for weftai_mcp-0.7.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 28, 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