Skip to main content

Craft Suite API connector

The MCP connector for the ArtCraft suite. It serves every operation of the ArtCraft backend API as one typed tool (268 today), generated from the backend's published API description, and the suite's desktop apps as lazily loaded MCP upstreams (see the apps spec).

Backend tools

Each backend operation is the tool craft_suite_<operationId>, for example craft_suite_list_tags_handler, craft_suite_omni_gen_image_models_handler, craft_suite_omni_api_image_generate_handler or craft_suite_omni_upload_image_media_file_handler. Inputs and outputs are typed from the description. Reads (GET) are annotated read-only.

Class Operations Policy
read 92 Runs directly
generation 62 Write: operator switch plus confirmation
upload 24 Write; the file part is base64 text, sent as a binary multipart part
account 21 Write (sessions, keys, credentials, profile)
moderation 10 Write
write 59 Write (folders, tags, bookmarks, ratings and other changes)

Every refusal is a typed result {cancelled, operation, reason, write_class}: BACKEND_NOT_CONFIGURED with no base URL, WRITES_DISABLED without the operator switch, or the SDK confirmation refusal. Every write decision is logged to the craft_suite_api.audit logger.

Package identity

The connector is craft-suite-api, imported as craft_suite_api, with the craft-suite-mcp command and CRAFT_SUITE_API_ configuration prefix.

Usage

Setting Meaning
CRAFT_SUITE_API_BASE_URL The backend HTTPS origin, without a path. Unset: every backend call refuses.
CRAFT_SUITE_API_TOKEN_REF An SDK credential reference (for example env://CRAFT_SUITE_SESSION) sent as the session header.
CRAFT_SUITE_API_ALLOW_WRITES Default false. Enables writes; each one still needs confirmation (elicited, or confirm=true).
CRAFT_SUITE_API_ALLOW_PLAINTEXT Default false. Allows a credential over plain HTTP.

TLS verification stays on. Redirects are not followed, each request is tried once with a 30 s timeout, and responses are capped at 16 MiB. Graph ingestion is unavailable.

{"name":"craft_suite_omni_gen_image_models_handler","arguments":{}}

Provenance and regeneration

api-spec/backend.openapi.json is the backend's published API description, kept byte for byte and pinned by sha256 in api-spec/backend.source.json. scripts/generate_backend_tools.py repairs its known defects deterministically (missing references, untyped parameters, multipart upload bodies, the session scheme) and writes craft_suite_api/backend_openapi.json, which ships with the package. The backend source is under its own source-available licence: only the interface description is used. To take a new description, replace the pinned file, update the sha256 and run:

python scripts/generate_backend_tools.py
python scripts/generate_backend_tools.py --check
python -m pytest tests -q

Validation boundary

Tests use the real SDK HTTP, auth and MCP components with a fake transport at the backend boundary. Writes are proven there; live writes need the operator switch and a backend credential.

Metadata

Release files for craft-suite-api 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 craft-suite-api 0.7.0
File Size Uploaded Provenance Actions
craft_suite_api-0.7.0.tar.gz 2.2 MB Without provenance Details for craft_suite_api-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for craft-suite-api 0.7.0
File Interpreter ABI Platform Actions
craft_suite_api-0.7.0-py3-none-any.whl Python 3 none any Details for craft_suite_api-0.7.0-py3-none-any.whl

Total release size: 2.5 MB

Release files / craft_suite_api-0.7.0.tar.gz

Download URL craft_suite_api-0.7.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
b3ba11b27cd703bbe2f435acaedd87e26816231db890bcd78f67b8fa480d94f2
BLAKE2b-256 checksum
How to use checksums
14a81b03e86407ecf42715e379fe567896d29fc8163b5616d517d30a9fa3398f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

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

Download URL craft_suite_api-0.7.0-py3-none-any.whl
Size 250.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ca84646f654a0fb33fb5c4643d17d94b8a8ac480ec1f71f479bd9a7ffd8a684
BLAKE2b-256 checksum
How to use checksums
2fb1fca5c9fa465223c22e44a540c5a043654f41dbf17700534192dbb81074a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for craft-suite-api 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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