proteworks
Command line client and local MCP server for syncing Proteworks files and submitting allowlisted workflows. The default API is production. Set PROTEWORKS_API_URL only when testing against staging or a local stack.
One install (CLI + Claude Science)
There is a single supported install:
| Path | Role |
|---|---|
/opt/proteworks |
Package + proteworks-mcp |
/usr/local/bin/proteworks |
CLI symlink |
/usr/local/bin/proteworks-mcp |
MCP symlink (Science Command) |
~/.config/proteworks/ |
Login token file + org config |
Do not keep a second copy from uv tool / pipx / a repo .venv on your PATH for daily use. Those diverge and break Claude Science.
Bootstrap once, then use only /usr/local/bin
# 1) Temporary bootstrap (any machine with uv)
uv tool install 'proteworks[mcp]'
# 2) Canonical install (needs sudo). Uses distro python3.12+ under /usr (not uv under $HOME).
sudo "$(which proteworks)" mcp install-system
# Developers working from a git checkout before publishing:
# sudo "$(which proteworks)" mcp install-system --package-spec "$PWD[mcp]"
# 3) Remove the bootstrap copy so PATH has one binary
uv tool uninstall proteworks
hash -r
which -a proteworks # expect only /usr/local/bin/proteworks
# 4) Login + Science grants
proteworks login
proteworks organization set "My Org"
proteworks mcp setup-claude-science
proteworks mcp doctor
After any upgrade: run step 2 again (same install-system command), then doctor. Do not uv tool install again unless /usr/local/bin/proteworks is missing.
Claude Science connector
setup-claude-science prints the fields. Always:
| Field | Value |
|---|---|
| Name | proteworks |
| Command | /opt/proteworks/bin/proteworks-mcp |
| Arguments | leave empty |
| Env (if shown) | PROTEWORKS_CONFIG_DIR=$HOME/.config/proteworks |
Paste only that Command path. Do not use python -m …, uvx, or a path under ~/.local. Science’s one-field UI can drop -m and hang for 180s; sandboxed HOME also cannot see a second user-level install’s credentials unless you use the system layout above.
Fully quit and relaunch Claude Science after setup so it reloads config.toml.
Also add each host by name under Science Settings → Domain Allowlist
(Science rejects wildcards). setup-claude-science prints the list — typically
api.studio.proteworks.com plus virtual-hosted GCS hosts such as
proteworks-production.storage.googleapis.com. The connector’s config.toml
grants are necessary but Science’s UI allowlist often gates egress separately.
Bare storage.googleapis.com is hard-denylisted (path-style GCS). If pull still
fails for a custom org bucket, add <bucket>.storage.googleapis.com. Science may
set ALL_PROXY (SOCKS); proteworks depends on httpx[socks] so that works out
of the box. If a direct GCS PUT is still blocked, push falls back to uploading
through the Proteworks API host.
Allow Claude to push/pull from a real project (like the CLI — no staging copy):
proteworks mcp setup-claude-science --mcp-root ~/projects/my-campaign
That grants the Science sandbox and writes ~/.config/proteworks/mcp_roots.
Restart the connector afterward. Absolute paths under that project then work with
MCP push / pull.
proteworks --version / proteworks-mcp --version print the installed version.
Quote wildcards so the shell does not expand them. A trailing slash on a remote path means a folder. proteworks --help lists every command.
proteworks pull '~/My Files/campaigns/run/' ./run
proteworks push ./1UBQ.pdb '~/My Files/test/'
proteworks push '*.pdb' '~/My Files/pdbs/'
proteworks push designs.zip '~/My Files/dest/' # auto-extracts
proteworks mkdir '~/My Files/campaigns/round6/'
MCP also exposes create_folder for the same empty-directory create (returns folder_id for output_folder_id / push).
Login returns to http://127.0.0.1:8765/callback. Add that exact URL to the Auth0 application's Allowed Callback URLs.
Example prompts: list ~/My Files/, dry-run pull a folder, pull it, push results back.
Optional coaching skills (not required for the server):
Import via Settings → Skills → Import from GitHub (or upload the folder). Hosts without a Skills UI still get conventions from MCP tool descriptions and this README.
Tools
| Tool | Purpose |
|---|---|
auth_status |
Login state, API URL, active org (never the token) |
organization_list / organization_set |
Choose organization (organization_set needs confirm=true) |
list_files |
Browse a remote path; returns file_id + relative_path |
pull / push |
Transfer with dry_run (default true); real transfers need confirm_transfer=true |
list_workflows |
Allowlisted agent workflows (rf-diffusion3, proteinmpnn, refolding, structure-prediction, msa-generation) |
get_workflow_schema |
Full schema with UI-matching defaults |
prepare_workflow_submission |
Merge defaults + overrides; no submit (draft body) |
submit_workflow |
Same merge, then submit |
inspect_studio |
Inspect supported .studio (proteinmpnn / refolding / rf-diffusion3 / structure_prediction); normalized rows + scores |
save_selected_studio |
Same as Studio Save selected → subset .studio uploaded + retention finalized (not yet for structure_prediction) |
inspect_proteinmpnn_studio |
Legacy ProteinMPNN flat-row inspect (prefer inspect_studio) |
prepare_refolding_from_proteinmpnn_studio |
Build refolding payload + SA handoff from MPNN studio selection (no submit) |
get_execution / list_execution_results / cancel_execution |
Status / results / cancel (cancel_execution needs confirm=true) |
estimate_workflow_cost |
Cost estimate from merged params (same validation as prepare) |
Auth is shared with the CLI. The access token is stored in the OS keychain and mirrored to ~/.config/proteworks/credentials (mode 0600) so Claude Science’s sandbox can read it. There is no separate MCP login: run proteworks login in a terminal, then restart the connector.
MCP safety env
| Variable | Purpose |
|---|---|
PROTEWORKS_MCP_ROOT |
Local workspace root for pull/push (default: process cwd) |
PROTEWORKS_MCP_READ_ONLY |
When 1/true, disables submit/push/cancel/save-selected |
PROTEWORKS_STORAGE_HOST_ALLOWLIST |
Comma-separated host suffixes for signed URL follow (default: GCS hosts) |
PROTEWORKS_MAX_STUDIO_BYTES |
Max .studio download size (default 80 MiB) |
PROTEWORKS_STUDIO_INSPECT_LIMIT |
Default row page size for inspect_studio (default 50) |
Staging smoke: auth_status → list_workflows → get_workflow_schema → prepare_workflow_submission → estimate_workflow_cost → submit_workflow → get_execution → cancel_execution (with confirm=true if still running).
Workflow submit
list_files→ getfile_idfor any structure input.get_workflow_schemafor the workflow (rf-diffusion3,proteinmpnn,refolding,structure-prediction, ormsa-generation).prepare_workflow_submissionto review the merged payload (defaults match a fresh Studio form).submit_workflowwhen ready.
Refolding and Structure Prediction have no default predictor/MSA — agents must ask the user which methods and (when required) which MSA to use before prepare/submit. Structure Prediction also requires a user-provided complex (structure-prediction-complex-json). MSA generation has no default sequences — ask, then pass generated-fasta-inputs or fasta_files; use the run output folder as msa_output_folder downstream. From ProteinMPNN results: inspect_studio → ask → prepare_refolding_from_proteinmpnn_studio → submit_workflow.
.studio results: inspect_studio → filter by scores (e.g. pLDDT / Rg) → save_selected_studio to write a subset bundle (structure_prediction is inspect-only for now).
Payload shape matches Studio POST /api/v1/workflows/submit and is reserved for future shareable draft links (/app?workflowDraft=<id>) that open the form pre-filled without submitting.
Adding another workflow to the allowlist
In protein-studio:
- Extract
buildXDefaultParameters+ form init from that workflow’s UI. - Implement
buildXAgentSchema(). - Run
npm run export-agent-schemasinfrontend/; commit JSON underbackend/app/data/agent_workflow_schemas/. - Add the workflow id to allowlists (frontend export index, backend
AGENT_WORKFLOW_ALLOWLIST, proteworks-cliAGENT_WORKFLOW_ALLOWLIST). - Add default/parity tests; extend the workflows skill if needed.
No new MCP tool names are required.
Metadata
Release files for proteworks 0.1.10
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 |
|---|---|---|---|---|
| proteworks-0.1.10.tar.gz | 98.2 kB | Without provenance | Details for proteworks-0.1.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proteworks-0.1.10-py3-none-any.whl | Python 3 | none | any | Details for proteworks-0.1.10-py3-none-any.whl |
Total release size: 184.6 kB
Release files / proteworks-0.1.10.tar.gz
| Download URL | proteworks-0.1.10.tar.gz |
|---|---|
| Size | 98.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a65f02400a6d99d9789e60caed71bf0acd9967e783448114a37bbf8427542f08
|
|
BLAKE2b-256 checksum How to use checksums |
cc5edabda6f6e8f066b861a55e0658b7a4e42ebcf23207994698c4c23222e7a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proteworks-0.1.10-py3-none-any.whl
| Download URL | proteworks-0.1.10-py3-none-any.whl |
|---|---|
| Size | 86.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ee2b186a4f3a010558d6aceee8506f0b1c799ca3894e1ce02f7695b2d3db327
|
|
BLAKE2b-256 checksum How to use checksums |
cec62d51743916c38d5ce92a33840cd407b3c6367e16ff5d56061ee11ba01696
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for proteworks 0.1.10
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.