Develop¶
Run from source¶
uv sync
uv run pytest
uv run python -m cyproxy.catalog_check
CYPROXY_DATA_DIR=./data uv run python -m cyproxy --ui # http://127.0.0.1:8787
Tests do not use the network and do not need keys.
Build the documentation site¶
uv run --with markdown-it-py --with pygments python scripts/build_docs.py
The script reads docs/*.md and writes a static site. The site makes no requests to other hosts.
Source files¶
| Path | Function |
|---|---|
cyproxy/gateway.py |
Gateway.invoke(): all tool calls go through this function. |
cyproxy/governance.py, tool_kinds.py |
Tool review, approvals, and the read or write type of a tool. |
cyproxy/audit_chain.py, audit.py |
The audit log. |
cyproxy/data_filter.py |
Data protection. |
cyproxy/users.py, mfa.py, console_login.py |
The owner account, the authenticator app and sign-in. |
cyproxy/webapp.py |
/mcp, the console API and the OAuth routes. |
cyproxy/mcp_oauth.py, oauth.py |
Sign-in of AI clients to Cyproxy. Sign-in of Cyproxy to vendors. |
cyproxy/downstream.py, rest.py, graphql_api.py |
Connections to MCP servers and APIs. |
cyproxy/netguard.py, confine.py |
The addresses that Cyproxy can call. Confinement of the bundled servers. |
cyproxy/bridge.py |
The bridge for AI clients that start a local program. |
cyproxy/agent*.py |
The Agent and its model providers. |
cyproxy/collections_store.py, skills.py, skill_library.py, results.py |
Collections, skills and kept results. |
catalog/ |
The built-in catalog: one YAML file for each vendor, the logos, and VERSION. |
vendor/ |
Pinned versions of the vendor MCP servers that run in the image. |
web/app/, web/account/ |
The console, and the Account page. One HTML file each. No build step. |
Contribute¶
See CONTRIBUTING.md and MAINTAINING.md.