diff --git a/standards/lib/sitemap.xml.gz b/standards/lib/sitemap.xml.gz index 2bca4d8..43b6693 100644 Binary files a/standards/lib/sitemap.xml.gz and b/standards/lib/sitemap.xml.gz differ diff --git a/standards/mcp/index.json b/standards/mcp/index.json index da2151f..8bd6584 100644 --- a/standards/mcp/index.json +++ b/standards/mcp/index.json @@ -1,6 +1,6 @@ { "project": "standards", "type": "standards", - "modules_count": 22, + "modules_count": 23, "source": "hand-authored" } \ No newline at end of file diff --git a/standards/mcp/modules/wiki_mcp_setup.json b/standards/mcp/modules/wiki_mcp_setup.json new file mode 100644 index 0000000..86e3452 --- /dev/null +++ b/standards/mcp/modules/wiki_mcp_setup.json @@ -0,0 +1,8 @@ +{ + "module": "wiki_mcp_setup", + "content": { + "path": "wiki_mcp_setup", + "docstring": "# ๐Ÿ”Œ MCP Setup\n\nEvery repository ships its documentation as a **Model Context Protocol (MCP)**\nserver, and the `standards` registry server ties them together. The `docs`\nportal runs each one as a FastMCP **streamable-http** app bound to\n`0.0.0.0:`, exposing the endpoint at `/mcp` (see `docs/main.py` and\n`docs/config.yml`).\n\nConnect your agent to the **`standards`** server first: it answers\n`find_library`, `list_repos`, and the `start_app` prompt, so the agent reaches\nfor an internal library instead of reimplementing one (see the\n[Library Registry](../lib/13_library_registry/)).\n\n---\n\n## โ–ถ๏ธ Run the servers locally\n\nFrom the `docs` checkout:\n\n```bash\n.venv\\Scripts\\python.exe main.py # every server\n.venv\\Scripts\\python.exe main.py --servers standards # just the registry\n```\n\n`:8000` is the health endpoint (`GET /healthz`), **not** an MCP server.\n\n---\n\n## ๐Ÿงญ Servers\n\n| Slug | MCP server | Port | localhost | mcp.aetoskia.com |\n|------|------------|------|-----------|------------------|\n| `standards` | `standards` | 8009 | `http://localhost:8009/mcp` | `https://mcp.aetoskia.com/standards/mcp` |\n| `doc-forge` | `docforge` | 8001 | `http://localhost:8001/mcp` | `https://mcp.aetoskia.com/doc-forge/mcp` |\n| `mail-intake` | `mail_intake` | 8002 | `http://localhost:8002/mcp` | `https://mcp.aetoskia.com/mail-intake/mcp` |\n| `omniread` | `omniread` | 8003 | `http://localhost:8003/mcp` | `https://mcp.aetoskia.com/omniread/mcp` |\n| `openapi-first` | `openapi_first` | 8004 | `http://localhost:8004/mcp` | `https://mcp.aetoskia.com/openapi-first/mcp` |\n| `py-jwt` | `jwtlib` | 8005 | `http://localhost:8005/mcp` | `https://mcp.aetoskia.com/py-jwt/mcp` |\n| `dagpipe` | `dagpipe` | 8006 | `http://localhost:8006/mcp` | `https://mcp.aetoskia.com/dagpipe/mcp` |\n| `mongo-ops` | `mongo_ops` | 8007 | `http://localhost:8007/mcp` | `https://mcp.aetoskia.com/mongo-ops/mcp` |\n| `hexa` | `hexa` | 8008 | `http://localhost:8008/mcp` | `https://mcp.aetoskia.com/hexa/mcp` |\n| `doc-weaver` | `doc-weaver` | 8010 | `http://localhost:8010/mcp` | `https://mcp.aetoskia.com/doc-weaver/mcp` |\n\nThe hosted endpoints are served over HTTPS at `https://mcp.aetoskia.com//mcp`.\nThe tabs below are linked (`content.tabs.link`): switching one switches all of\nthem. Every snippet registers **all ten** servers, so a single paste is enough.\n\n---\n\n## ๐Ÿค– Claude Code\n\nProject-scoped `.mcp.json` at the repo root. The `type` field is required โ€” an\nentry with a `url` but no `type` is read as a stdio server and skipped.\n\n=== \"localhost\"\n\n ```json\n {\n \"mcpServers\": {\n \"standards\": { \"type\": \"http\", \"url\": \"http://localhost:8009/mcp\" },\n \"doc-forge\": { \"type\": \"http\", \"url\": \"http://localhost:8001/mcp\" },\n \"mail-intake\": { \"type\": \"http\", \"url\": \"http://localhost:8002/mcp\" },\n \"omniread\": { \"type\": \"http\", \"url\": \"http://localhost:8003/mcp\" },\n \"openapi-first\": { \"type\": \"http\", \"url\": \"http://localhost:8004/mcp\" },\n \"py-jwt\": { \"type\": \"http\", \"url\": \"http://localhost:8005/mcp\" },\n \"dagpipe\": { \"type\": \"http\", \"url\": \"http://localhost:8006/mcp\" },\n \"mongo-ops\": { \"type\": \"http\", \"url\": \"http://localhost:8007/mcp\" },\n \"hexa\": { \"type\": \"http\", \"url\": \"http://localhost:8008/mcp\" },\n \"doc-weaver\": { \"type\": \"http\", \"url\": \"http://localhost:8010/mcp\" }\n }\n }\n ```\n\n=== \"mcp.aetoskia.com\"\n\n ```json\n {\n \"mcpServers\": {\n \"standards\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/standards/mcp\" },\n \"doc-forge\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/doc-forge/mcp\" },\n \"mail-intake\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/mail-intake/mcp\" },\n \"omniread\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/omniread/mcp\" },\n \"openapi-first\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/openapi-first/mcp\" },\n \"py-jwt\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/py-jwt/mcp\" },\n \"dagpipe\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/dagpipe/mcp\" },\n \"mongo-ops\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/mongo-ops/mcp\" },\n \"hexa\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/hexa/mcp\" },\n \"doc-weaver\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/doc-weaver/mcp\" }\n }\n }\n ```\n\nOr add them with the CLI:\n`claude mcp add --transport http standards http://localhost:8009/mcp`.\n\n---\n\n## ๐Ÿค– Codex\n\n`~/.codex/config.toml` (or a project-scoped `.codex/config.toml`).\n\n=== \"localhost\"\n\n ```toml\n [mcp_servers.standards]\n url = \"http://localhost:8009/mcp\"\n\n [mcp_servers.doc-forge]\n url = \"http://localhost:8001/mcp\"\n\n [mcp_servers.mail-intake]\n url = \"http://localhost:8002/mcp\"\n\n [mcp_servers.omniread]\n url = \"http://localhost:8003/mcp\"\n\n [mcp_servers.openapi-first]\n url = \"http://localhost:8004/mcp\"\n\n [mcp_servers.py-jwt]\n url = \"http://localhost:8005/mcp\"\n\n [mcp_servers.dagpipe]\n url = \"http://localhost:8006/mcp\"\n\n [mcp_servers.mongo-ops]\n url = \"http://localhost:8007/mcp\"\n\n [mcp_servers.hexa]\n url = \"http://localhost:8008/mcp\"\n\n [mcp_servers.doc-weaver]\n url = \"http://localhost:8010/mcp\"\n ```\n\n=== \"mcp.aetoskia.com\"\n\n ```toml\n [mcp_servers.standards]\n url = \"https://mcp.aetoskia.com/standards/mcp\"\n\n [mcp_servers.doc-forge]\n url = \"https://mcp.aetoskia.com/doc-forge/mcp\"\n\n [mcp_servers.mail-intake]\n url = \"https://mcp.aetoskia.com/mail-intake/mcp\"\n\n [mcp_servers.omniread]\n url = \"https://mcp.aetoskia.com/omniread/mcp\"\n\n [mcp_servers.openapi-first]\n url = \"https://mcp.aetoskia.com/openapi-first/mcp\"\n\n [mcp_servers.py-jwt]\n url = \"https://mcp.aetoskia.com/py-jwt/mcp\"\n\n [mcp_servers.dagpipe]\n url = \"https://mcp.aetoskia.com/dagpipe/mcp\"\n\n [mcp_servers.mongo-ops]\n url = \"https://mcp.aetoskia.com/mongo-ops/mcp\"\n\n [mcp_servers.hexa]\n url = \"https://mcp.aetoskia.com/hexa/mcp\"\n\n [mcp_servers.doc-weaver]\n url = \"https://mcp.aetoskia.com/doc-weaver/mcp\"\n ```\n\nOr add them with the CLI:\n`codex mcp add standards --url http://localhost:8009/mcp`.\n\n---\n\n## ๐Ÿค– Antigravity\n\n`~/.gemini/antigravity/mcp_config.json` (IDE) or\n`~/.gemini/config/mcp_config.json` (CLI). Antigravity uses **`serverUrl`**, not\n`url`, for HTTP endpoints.\n\n=== \"localhost\"\n\n ```json\n {\n \"mcpServers\": {\n \"standards\": { \"serverUrl\": \"http://localhost:8009/mcp\" },\n \"doc-forge\": { \"serverUrl\": \"http://localhost:8001/mcp\" },\n \"mail-intake\": { \"serverUrl\": \"http://localhost:8002/mcp\" },\n \"omniread\": { \"serverUrl\": \"http://localhost:8003/mcp\" },\n \"openapi-first\": { \"serverUrl\": \"http://localhost:8004/mcp\" },\n \"py-jwt\": { \"serverUrl\": \"http://localhost:8005/mcp\" },\n \"dagpipe\": { \"serverUrl\": \"http://localhost:8006/mcp\" },\n \"mongo-ops\": { \"serverUrl\": \"http://localhost:8007/mcp\" },\n \"hexa\": { \"serverUrl\": \"http://localhost:8008/mcp\" },\n \"doc-weaver\": { \"serverUrl\": \"http://localhost:8010/mcp\" }\n }\n }\n ```\n\n=== \"mcp.aetoskia.com\"\n\n ```json\n {\n \"mcpServers\": {\n \"standards\": { \"serverUrl\": \"https://mcp.aetoskia.com/standards/mcp\" },\n \"doc-forge\": { \"serverUrl\": \"https://mcp.aetoskia.com/doc-forge/mcp\" },\n \"mail-intake\": { \"serverUrl\": \"https://mcp.aetoskia.com/mail-intake/mcp\" },\n \"omniread\": { \"serverUrl\": \"https://mcp.aetoskia.com/omniread/mcp\" },\n \"openapi-first\": { \"serverUrl\": \"https://mcp.aetoskia.com/openapi-first/mcp\" },\n \"py-jwt\": { \"serverUrl\": \"https://mcp.aetoskia.com/py-jwt/mcp\" },\n \"dagpipe\": { \"serverUrl\": \"https://mcp.aetoskia.com/dagpipe/mcp\" },\n \"mongo-ops\": { \"serverUrl\": \"https://mcp.aetoskia.com/mongo-ops/mcp\" },\n \"hexa\": { \"serverUrl\": \"https://mcp.aetoskia.com/hexa/mcp\" },\n \"doc-weaver\": { \"serverUrl\": \"https://mcp.aetoskia.com/doc-weaver/mcp\" }\n }\n }\n ```\n\n---\n\n## ๐Ÿค– OpenCode\n\n`opencode.json` (project) or `~/.config/opencode/opencode.json` (global).\n\n=== \"localhost\"\n\n ```json\n {\n \"$schema\": \"https://opencode.ai/config.json\",\n \"mcp\": {\n \"standards\": { \"type\": \"remote\", \"url\": \"http://localhost:8009/mcp\", \"enabled\": true },\n \"doc-forge\": { \"type\": \"remote\", \"url\": \"http://localhost:8001/mcp\", \"enabled\": true },\n \"mail-intake\": { \"type\": \"remote\", \"url\": \"http://localhost:8002/mcp\", \"enabled\": true },\n \"omniread\": { \"type\": \"remote\", \"url\": \"http://localhost:8003/mcp\", \"enabled\": true },\n \"openapi-first\": { \"type\": \"remote\", \"url\": \"http://localhost:8004/mcp\", \"enabled\": true },\n \"py-jwt\": { \"type\": \"remote\", \"url\": \"http://localhost:8005/mcp\", \"enabled\": true },\n \"dagpipe\": { \"type\": \"remote\", \"url\": \"http://localhost:8006/mcp\", \"enabled\": true },\n \"mongo-ops\": { \"type\": \"remote\", \"url\": \"http://localhost:8007/mcp\", \"enabled\": true },\n \"hexa\": { \"type\": \"remote\", \"url\": \"http://localhost:8008/mcp\", \"enabled\": true },\n \"doc-weaver\": { \"type\": \"remote\", \"url\": \"http://localhost:8010/mcp\", \"enabled\": true }\n }\n }\n ```\n\n=== \"mcp.aetoskia.com\"\n\n ```json\n {\n \"$schema\": \"https://opencode.ai/config.json\",\n \"mcp\": {\n \"standards\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/standards/mcp\", \"enabled\": true },\n \"doc-forge\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/doc-forge/mcp\", \"enabled\": true },\n \"mail-intake\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/mail-intake/mcp\", \"enabled\": true },\n \"omniread\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/omniread/mcp\", \"enabled\": true },\n \"openapi-first\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/openapi-first/mcp\", \"enabled\": true },\n \"py-jwt\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/py-jwt/mcp\", \"enabled\": true },\n \"dagpipe\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/dagpipe/mcp\", \"enabled\": true },\n \"mongo-ops\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/mongo-ops/mcp\", \"enabled\": true },\n \"hexa\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/hexa/mcp\", \"enabled\": true },\n \"doc-weaver\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/doc-weaver/mcp\", \"enabled\": true }\n }\n }\n ```\n\nOr add them with the CLI:\n`opencode mcp add standards --url http://localhost:8009/mcp --global`.\n\n---\n\n## ๐Ÿค– PyCharm (Junie / AI Assistant)\n\n`~/.junie/mcp/mcp.json` (user scope) or `.junie/mcp/mcp.json` (project scope).\nThe same config is reachable from **Settings | Tools | MCP Server โ†’ Manual\nClient Configuration โ†’ Copy HTTP Stream Config**.\n\n=== \"localhost\"\n\n ```json\n {\n \"mcpServers\": {\n \"standards\": { \"url\": \"http://localhost:8009/mcp\" },\n \"doc-forge\": { \"url\": \"http://localhost:8001/mcp\" },\n \"mail-intake\": { \"url\": \"http://localhost:8002/mcp\" },\n \"omniread\": { \"url\": \"http://localhost:8003/mcp\" },\n \"openapi-first\": { \"url\": \"http://localhost:8004/mcp\" },\n \"py-jwt\": { \"url\": \"http://localhost:8005/mcp\" },\n \"dagpipe\": { \"url\": \"http://localhost:8006/mcp\" },\n \"mongo-ops\": { \"url\": \"http://localhost:8007/mcp\" },\n \"hexa\": { \"url\": \"http://localhost:8008/mcp\" },\n \"doc-weaver\": { \"url\": \"http://localhost:8010/mcp\" }\n }\n }\n ```\n\n=== \"mcp.aetoskia.com\"\n\n ```json\n {\n \"mcpServers\": {\n \"standards\": { \"url\": \"https://mcp.aetoskia.com/standards/mcp\" },\n \"doc-forge\": { \"url\": \"https://mcp.aetoskia.com/doc-forge/mcp\" },\n \"mail-intake\": { \"url\": \"https://mcp.aetoskia.com/mail-intake/mcp\" },\n \"omniread\": { \"url\": \"https://mcp.aetoskia.com/omniread/mcp\" },\n \"openapi-first\": { \"url\": \"https://mcp.aetoskia.com/openapi-first/mcp\" },\n \"py-jwt\": { \"url\": \"https://mcp.aetoskia.com/py-jwt/mcp\" },\n \"dagpipe\": { \"url\": \"https://mcp.aetoskia.com/dagpipe/mcp\" },\n \"mongo-ops\": { \"url\": \"https://mcp.aetoskia.com/mongo-ops/mcp\" },\n \"hexa\": { \"url\": \"https://mcp.aetoskia.com/hexa/mcp\" },\n \"doc-weaver\": { \"url\": \"https://mcp.aetoskia.com/doc-weaver/mcp\" }\n }\n }\n ```\n\n---\n\n## โœ… Verify\n\n- Health check: `curl http://localhost:8000/healthz` โ†’ `ok`.\n- Claude Code: `claude mcp list` โ†’ each server โ€ฆ `โœ“ Connected`.\n- Codex: `codex mcp list` โ†’ each server โ€ฆ `http`.\n- OpenCode: `opencode mcp list` โ†’ each server โ€ฆ `connected`.\n- In-session: run `/mcp` to list the connected servers and their tools.\n\n---\n\n## ๐Ÿ“š Reference\n\n- [Library Registry](../lib/13_library_registry/) โ€” the catalog each server\n mirrors, and where `find_library` resolves\n- [Start an App](03_start_an_app.md) โ€” connect `standards`, then invoke\n `start_app`\n- [App Components](02_components.md) โ€” the component model\n\n---\n\n## Related\n\n- [Start an App](03_start_an_app.md) ยท [Testing & Quality](04_development/01_testing.md) ยท [Library Registry](../lib/13_library_registry/)\n", + "objects": {} + } +} \ No newline at end of file diff --git a/standards/mcp/nav.json b/standards/mcp/nav.json index 4822b04..f5656db 100644 --- a/standards/mcp/nav.json +++ b/standards/mcp/nav.json @@ -104,6 +104,11 @@ "resource": "docs://modules/wiki_development_releasing", "title": "Releasing & Versioning" }, + { + "module": "wiki_mcp_setup", + "resource": "docs://modules/wiki_mcp_setup", + "title": "๐Ÿ”Œ MCP Setup" + }, { "module": "wiki_index", "resource": "docs://modules/wiki_index", diff --git a/standards/src/mkdocs.wiki.yml b/standards/src/mkdocs.wiki.yml index 6ca22eb..39a6e77 100644 --- a/standards/src/mkdocs.wiki.yml +++ b/standards/src/mkdocs.wiki.yml @@ -70,5 +70,7 @@ nav: - Overview: 01_overview.md - App Components: 02_components.md - Start an App: 03_start_an_app.md + - MCP: + - Setup: 05_mcp_setup.md - Testing & Quality: 04_development/01_testing.md - Releasing & Versioning: 04_development/02_releasing.md \ No newline at end of file diff --git a/standards/src/wiki/05_mcp_setup.md b/standards/src/wiki/05_mcp_setup.md new file mode 100644 index 0000000..a5a8193 --- /dev/null +++ b/standards/src/wiki/05_mcp_setup.md @@ -0,0 +1,338 @@ +# ๐Ÿ”Œ MCP Setup + +Every repository ships its documentation as a **Model Context Protocol (MCP)** +server, and the `standards` registry server ties them together. The `docs` +portal runs each one as a FastMCP **streamable-http** app bound to +`0.0.0.0:`, exposing the endpoint at `/mcp` (see `docs/main.py` and +`docs/config.yml`). + +Connect your agent to the **`standards`** server first: it answers +`find_library`, `list_repos`, and the `start_app` prompt, so the agent reaches +for an internal library instead of reimplementing one (see the +[Library Registry](../lib/13_library_registry/)). + +--- + +## โ–ถ๏ธ Run the servers locally + +From the `docs` checkout: + +```bash +.venv\Scripts\python.exe main.py # every server +.venv\Scripts\python.exe main.py --servers standards # just the registry +``` + +`:8000` is the health endpoint (`GET /healthz`), **not** an MCP server. + +--- + +## ๐Ÿงญ Servers + +| Slug | MCP server | Port | localhost | mcp.aetoskia.com | +|------|------------|------|-----------|------------------| +| `standards` | `standards` | 8009 | `http://localhost:8009/mcp` | `https://mcp.aetoskia.com/standards/mcp` | +| `doc-forge` | `docforge` | 8001 | `http://localhost:8001/mcp` | `https://mcp.aetoskia.com/doc-forge/mcp` | +| `mail-intake` | `mail_intake` | 8002 | `http://localhost:8002/mcp` | `https://mcp.aetoskia.com/mail-intake/mcp` | +| `omniread` | `omniread` | 8003 | `http://localhost:8003/mcp` | `https://mcp.aetoskia.com/omniread/mcp` | +| `openapi-first` | `openapi_first` | 8004 | `http://localhost:8004/mcp` | `https://mcp.aetoskia.com/openapi-first/mcp` | +| `py-jwt` | `jwtlib` | 8005 | `http://localhost:8005/mcp` | `https://mcp.aetoskia.com/py-jwt/mcp` | +| `dagpipe` | `dagpipe` | 8006 | `http://localhost:8006/mcp` | `https://mcp.aetoskia.com/dagpipe/mcp` | +| `mongo-ops` | `mongo_ops` | 8007 | `http://localhost:8007/mcp` | `https://mcp.aetoskia.com/mongo-ops/mcp` | +| `hexa` | `hexa` | 8008 | `http://localhost:8008/mcp` | `https://mcp.aetoskia.com/hexa/mcp` | +| `doc-weaver` | `doc-weaver` | 8010 | `http://localhost:8010/mcp` | `https://mcp.aetoskia.com/doc-weaver/mcp` | + +The hosted endpoints are served over HTTPS at `https://mcp.aetoskia.com//mcp`. +The tabs below are linked (`content.tabs.link`): switching one switches all of +them. Every snippet registers **all ten** servers, so a single paste is enough. + +--- + +## ๐Ÿค– Claude Code + +Project-scoped `.mcp.json` at the repo root. The `type` field is required โ€” an +entry with a `url` but no `type` is read as a stdio server and skipped. + +=== "localhost" + + ```json + { + "mcpServers": { + "standards": { "type": "http", "url": "http://localhost:8009/mcp" }, + "doc-forge": { "type": "http", "url": "http://localhost:8001/mcp" }, + "mail-intake": { "type": "http", "url": "http://localhost:8002/mcp" }, + "omniread": { "type": "http", "url": "http://localhost:8003/mcp" }, + "openapi-first": { "type": "http", "url": "http://localhost:8004/mcp" }, + "py-jwt": { "type": "http", "url": "http://localhost:8005/mcp" }, + "dagpipe": { "type": "http", "url": "http://localhost:8006/mcp" }, + "mongo-ops": { "type": "http", "url": "http://localhost:8007/mcp" }, + "hexa": { "type": "http", "url": "http://localhost:8008/mcp" }, + "doc-weaver": { "type": "http", "url": "http://localhost:8010/mcp" } + } + } + ``` + +=== "mcp.aetoskia.com" + + ```json + { + "mcpServers": { + "standards": { "type": "http", "url": "https://mcp.aetoskia.com/standards/mcp" }, + "doc-forge": { "type": "http", "url": "https://mcp.aetoskia.com/doc-forge/mcp" }, + "mail-intake": { "type": "http", "url": "https://mcp.aetoskia.com/mail-intake/mcp" }, + "omniread": { "type": "http", "url": "https://mcp.aetoskia.com/omniread/mcp" }, + "openapi-first": { "type": "http", "url": "https://mcp.aetoskia.com/openapi-first/mcp" }, + "py-jwt": { "type": "http", "url": "https://mcp.aetoskia.com/py-jwt/mcp" }, + "dagpipe": { "type": "http", "url": "https://mcp.aetoskia.com/dagpipe/mcp" }, + "mongo-ops": { "type": "http", "url": "https://mcp.aetoskia.com/mongo-ops/mcp" }, + "hexa": { "type": "http", "url": "https://mcp.aetoskia.com/hexa/mcp" }, + "doc-weaver": { "type": "http", "url": "https://mcp.aetoskia.com/doc-weaver/mcp" } + } + } + ``` + +Or add them with the CLI: +`claude mcp add --transport http standards http://localhost:8009/mcp`. + +--- + +## ๐Ÿค– Codex + +`~/.codex/config.toml` (or a project-scoped `.codex/config.toml`). + +=== "localhost" + + ```toml + [mcp_servers.standards] + url = "http://localhost:8009/mcp" + + [mcp_servers.doc-forge] + url = "http://localhost:8001/mcp" + + [mcp_servers.mail-intake] + url = "http://localhost:8002/mcp" + + [mcp_servers.omniread] + url = "http://localhost:8003/mcp" + + [mcp_servers.openapi-first] + url = "http://localhost:8004/mcp" + + [mcp_servers.py-jwt] + url = "http://localhost:8005/mcp" + + [mcp_servers.dagpipe] + url = "http://localhost:8006/mcp" + + [mcp_servers.mongo-ops] + url = "http://localhost:8007/mcp" + + [mcp_servers.hexa] + url = "http://localhost:8008/mcp" + + [mcp_servers.doc-weaver] + url = "http://localhost:8010/mcp" + ``` + +=== "mcp.aetoskia.com" + + ```toml + [mcp_servers.standards] + url = "https://mcp.aetoskia.com/standards/mcp" + + [mcp_servers.doc-forge] + url = "https://mcp.aetoskia.com/doc-forge/mcp" + + [mcp_servers.mail-intake] + url = "https://mcp.aetoskia.com/mail-intake/mcp" + + [mcp_servers.omniread] + url = "https://mcp.aetoskia.com/omniread/mcp" + + [mcp_servers.openapi-first] + url = "https://mcp.aetoskia.com/openapi-first/mcp" + + [mcp_servers.py-jwt] + url = "https://mcp.aetoskia.com/py-jwt/mcp" + + [mcp_servers.dagpipe] + url = "https://mcp.aetoskia.com/dagpipe/mcp" + + [mcp_servers.mongo-ops] + url = "https://mcp.aetoskia.com/mongo-ops/mcp" + + [mcp_servers.hexa] + url = "https://mcp.aetoskia.com/hexa/mcp" + + [mcp_servers.doc-weaver] + url = "https://mcp.aetoskia.com/doc-weaver/mcp" + ``` + +Or add them with the CLI: +`codex mcp add standards --url http://localhost:8009/mcp`. + +--- + +## ๐Ÿค– Antigravity + +`~/.gemini/antigravity/mcp_config.json` (IDE) or +`~/.gemini/config/mcp_config.json` (CLI). Antigravity uses **`serverUrl`**, not +`url`, for HTTP endpoints. + +=== "localhost" + + ```json + { + "mcpServers": { + "standards": { "serverUrl": "http://localhost:8009/mcp" }, + "doc-forge": { "serverUrl": "http://localhost:8001/mcp" }, + "mail-intake": { "serverUrl": "http://localhost:8002/mcp" }, + "omniread": { "serverUrl": "http://localhost:8003/mcp" }, + "openapi-first": { "serverUrl": "http://localhost:8004/mcp" }, + "py-jwt": { "serverUrl": "http://localhost:8005/mcp" }, + "dagpipe": { "serverUrl": "http://localhost:8006/mcp" }, + "mongo-ops": { "serverUrl": "http://localhost:8007/mcp" }, + "hexa": { "serverUrl": "http://localhost:8008/mcp" }, + "doc-weaver": { "serverUrl": "http://localhost:8010/mcp" } + } + } + ``` + +=== "mcp.aetoskia.com" + + ```json + { + "mcpServers": { + "standards": { "serverUrl": "https://mcp.aetoskia.com/standards/mcp" }, + "doc-forge": { "serverUrl": "https://mcp.aetoskia.com/doc-forge/mcp" }, + "mail-intake": { "serverUrl": "https://mcp.aetoskia.com/mail-intake/mcp" }, + "omniread": { "serverUrl": "https://mcp.aetoskia.com/omniread/mcp" }, + "openapi-first": { "serverUrl": "https://mcp.aetoskia.com/openapi-first/mcp" }, + "py-jwt": { "serverUrl": "https://mcp.aetoskia.com/py-jwt/mcp" }, + "dagpipe": { "serverUrl": "https://mcp.aetoskia.com/dagpipe/mcp" }, + "mongo-ops": { "serverUrl": "https://mcp.aetoskia.com/mongo-ops/mcp" }, + "hexa": { "serverUrl": "https://mcp.aetoskia.com/hexa/mcp" }, + "doc-weaver": { "serverUrl": "https://mcp.aetoskia.com/doc-weaver/mcp" } + } + } + ``` + +--- + +## ๐Ÿค– OpenCode + +`opencode.json` (project) or `~/.config/opencode/opencode.json` (global). + +=== "localhost" + + ```json + { + "$schema": "https://opencode.ai/config.json", + "mcp": { + "standards": { "type": "remote", "url": "http://localhost:8009/mcp", "enabled": true }, + "doc-forge": { "type": "remote", "url": "http://localhost:8001/mcp", "enabled": true }, + "mail-intake": { "type": "remote", "url": "http://localhost:8002/mcp", "enabled": true }, + "omniread": { "type": "remote", "url": "http://localhost:8003/mcp", "enabled": true }, + "openapi-first": { "type": "remote", "url": "http://localhost:8004/mcp", "enabled": true }, + "py-jwt": { "type": "remote", "url": "http://localhost:8005/mcp", "enabled": true }, + "dagpipe": { "type": "remote", "url": "http://localhost:8006/mcp", "enabled": true }, + "mongo-ops": { "type": "remote", "url": "http://localhost:8007/mcp", "enabled": true }, + "hexa": { "type": "remote", "url": "http://localhost:8008/mcp", "enabled": true }, + "doc-weaver": { "type": "remote", "url": "http://localhost:8010/mcp", "enabled": true } + } + } + ``` + +=== "mcp.aetoskia.com" + + ```json + { + "$schema": "https://opencode.ai/config.json", + "mcp": { + "standards": { "type": "remote", "url": "https://mcp.aetoskia.com/standards/mcp", "enabled": true }, + "doc-forge": { "type": "remote", "url": "https://mcp.aetoskia.com/doc-forge/mcp", "enabled": true }, + "mail-intake": { "type": "remote", "url": "https://mcp.aetoskia.com/mail-intake/mcp", "enabled": true }, + "omniread": { "type": "remote", "url": "https://mcp.aetoskia.com/omniread/mcp", "enabled": true }, + "openapi-first": { "type": "remote", "url": "https://mcp.aetoskia.com/openapi-first/mcp", "enabled": true }, + "py-jwt": { "type": "remote", "url": "https://mcp.aetoskia.com/py-jwt/mcp", "enabled": true }, + "dagpipe": { "type": "remote", "url": "https://mcp.aetoskia.com/dagpipe/mcp", "enabled": true }, + "mongo-ops": { "type": "remote", "url": "https://mcp.aetoskia.com/mongo-ops/mcp", "enabled": true }, + "hexa": { "type": "remote", "url": "https://mcp.aetoskia.com/hexa/mcp", "enabled": true }, + "doc-weaver": { "type": "remote", "url": "https://mcp.aetoskia.com/doc-weaver/mcp", "enabled": true } + } + } + ``` + +Or add them with the CLI: +`opencode mcp add standards --url http://localhost:8009/mcp --global`. + +--- + +## ๐Ÿค– PyCharm (Junie / AI Assistant) + +`~/.junie/mcp/mcp.json` (user scope) or `.junie/mcp/mcp.json` (project scope). +The same config is reachable from **Settings | Tools | MCP Server โ†’ Manual +Client Configuration โ†’ Copy HTTP Stream Config**. + +=== "localhost" + + ```json + { + "mcpServers": { + "standards": { "url": "http://localhost:8009/mcp" }, + "doc-forge": { "url": "http://localhost:8001/mcp" }, + "mail-intake": { "url": "http://localhost:8002/mcp" }, + "omniread": { "url": "http://localhost:8003/mcp" }, + "openapi-first": { "url": "http://localhost:8004/mcp" }, + "py-jwt": { "url": "http://localhost:8005/mcp" }, + "dagpipe": { "url": "http://localhost:8006/mcp" }, + "mongo-ops": { "url": "http://localhost:8007/mcp" }, + "hexa": { "url": "http://localhost:8008/mcp" }, + "doc-weaver": { "url": "http://localhost:8010/mcp" } + } + } + ``` + +=== "mcp.aetoskia.com" + + ```json + { + "mcpServers": { + "standards": { "url": "https://mcp.aetoskia.com/standards/mcp" }, + "doc-forge": { "url": "https://mcp.aetoskia.com/doc-forge/mcp" }, + "mail-intake": { "url": "https://mcp.aetoskia.com/mail-intake/mcp" }, + "omniread": { "url": "https://mcp.aetoskia.com/omniread/mcp" }, + "openapi-first": { "url": "https://mcp.aetoskia.com/openapi-first/mcp" }, + "py-jwt": { "url": "https://mcp.aetoskia.com/py-jwt/mcp" }, + "dagpipe": { "url": "https://mcp.aetoskia.com/dagpipe/mcp" }, + "mongo-ops": { "url": "https://mcp.aetoskia.com/mongo-ops/mcp" }, + "hexa": { "url": "https://mcp.aetoskia.com/hexa/mcp" }, + "doc-weaver": { "url": "https://mcp.aetoskia.com/doc-weaver/mcp" } + } + } + ``` + +--- + +## โœ… Verify + +- Health check: `curl http://localhost:8000/healthz` โ†’ `ok`. +- Claude Code: `claude mcp list` โ†’ each server โ€ฆ `โœ“ Connected`. +- Codex: `codex mcp list` โ†’ each server โ€ฆ `http`. +- OpenCode: `opencode mcp list` โ†’ each server โ€ฆ `connected`. +- In-session: run `/mcp` to list the connected servers and their tools. + +--- + +## ๐Ÿ“š Reference + +- [Library Registry](../lib/13_library_registry/) โ€” the catalog each server + mirrors, and where `find_library` resolves +- [Start an App](03_start_an_app.md) โ€” connect `standards`, then invoke + `start_app` +- [App Components](02_components.md) โ€” the component model + +--- + +## Related + +- [Start an App](03_start_an_app.md) ยท [Testing & Quality](04_development/01_testing.md) ยท [Library Registry](../lib/13_library_registry/) diff --git a/standards/wiki/01_overview/index.html b/standards/wiki/01_overview/index.html index 3d4f40a..da8fd90 100644 --- a/standards/wiki/01_overview/index.html +++ b/standards/wiki/01_overview/index.html @@ -277,6 +277,28 @@ + + +
  • + + + + + + + MCP + + +
  • + + + + + + + + +
  • @@ -526,6 +548,85 @@ + + + + + + + + + + + + + + +
  • + + + + + + + + + + + + +
  • + + + + + + + + +
  • diff --git a/standards/wiki/02_components/index.html b/standards/wiki/02_components/index.html index 495e69e..5ce3d09 100644 --- a/standards/wiki/02_components/index.html +++ b/standards/wiki/02_components/index.html @@ -277,6 +277,28 @@ + + +
  • + + + + + + + MCP + + +
  • + + + + + + + + +
  • @@ -601,6 +623,85 @@ + + + + + + + + + + + + + + +
  • + + + + + + + + + + + + +
  • + + + + + + + + +
  • diff --git a/standards/wiki/03_start_an_app/index.html b/standards/wiki/03_start_an_app/index.html index a006807..a140102 100644 --- a/standards/wiki/03_start_an_app/index.html +++ b/standards/wiki/03_start_an_app/index.html @@ -14,7 +14,7 @@ - + @@ -277,6 +277,28 @@ + + +
  • + + + + + + + MCP + + +
  • + + + + + + + + +
  • @@ -517,6 +539,85 @@ + + + + + + + + + + + + + + +
  • + + + + + + + + + + + + +
  • + + + + + + + + +
  • diff --git a/standards/wiki/04_development/01_testing/index.html b/standards/wiki/04_development/01_testing/index.html index 5b97fc0..d2201e9 100644 --- a/standards/wiki/04_development/01_testing/index.html +++ b/standards/wiki/04_development/01_testing/index.html @@ -11,7 +11,7 @@ - + @@ -274,6 +274,28 @@ + + + +
  • + + + + + + + MCP + + +
  • + + + + + + + + @@ -437,6 +459,85 @@ + + + + + + + + + + + + + + + + +
  • + + + + + + + + + + + + +
  • + + + + + + + diff --git a/standards/wiki/04_development/02_releasing/index.html b/standards/wiki/04_development/02_releasing/index.html index 1f80f23..d590f0f 100644 --- a/standards/wiki/04_development/02_releasing/index.html +++ b/standards/wiki/04_development/02_releasing/index.html @@ -273,6 +273,28 @@ + + +
  • + + + + + + + MCP + + +
  • + + + + + + + + +
  • @@ -437,6 +459,85 @@ + + + + + + + + + + + + + + +
  • + + + + + + + + + + + + +
  • + + + + + + + + +
  • diff --git a/standards/wiki/05_mcp_setup/index.html b/standards/wiki/05_mcp_setup/index.html new file mode 100644 index 0000000..6bda420 --- /dev/null +++ b/standards/wiki/05_mcp_setup/index.html @@ -0,0 +1,1336 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Setup - Aetos Standards โ€” Wiki + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + +
    + + +
    + +
    + + + + + + + + + +
    +
    + + + +
    +
    +
    + + + + + + + + + +
    +
    +
    + + + + +
    +
    + + + + + +

    ๐Ÿ”Œ MCP Setup

    +

    Every repository ships its documentation as a Model Context Protocol (MCP) +server, and the standards registry server ties them together. The docs +portal runs each one as a FastMCP streamable-http app bound to +0.0.0.0:<port>, exposing the endpoint at /mcp (see docs/main.py and +docs/config.yml).

    +

    Connect your agent to the standards server first: it answers +find_library, list_repos, and the start_app prompt, so the agent reaches +for an internal library instead of reimplementing one (see the +Library Registry).

    +
    +

    โ–ถ๏ธ Run the servers locally

    +

    From the docs checkout:

    +
    1
    +2
    .venv\Scripts\python.exe main.py                      # every server
    +.venv\Scripts\python.exe main.py --servers standards   # just the registry
    +
    +

    :8000 is the health endpoint (GET /healthz), not an MCP server.

    +
    +

    ๐Ÿงญ Servers

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    SlugMCP serverPortlocalhostmcp.aetoskia.com
    standardsstandards8009http://localhost:8009/mcphttps://mcp.aetoskia.com/standards/mcp
    doc-forgedocforge8001http://localhost:8001/mcphttps://mcp.aetoskia.com/doc-forge/mcp
    mail-intakemail_intake8002http://localhost:8002/mcphttps://mcp.aetoskia.com/mail-intake/mcp
    omnireadomniread8003http://localhost:8003/mcphttps://mcp.aetoskia.com/omniread/mcp
    openapi-firstopenapi_first8004http://localhost:8004/mcphttps://mcp.aetoskia.com/openapi-first/mcp
    py-jwtjwtlib8005http://localhost:8005/mcphttps://mcp.aetoskia.com/py-jwt/mcp
    dagpipedagpipe8006http://localhost:8006/mcphttps://mcp.aetoskia.com/dagpipe/mcp
    mongo-opsmongo_ops8007http://localhost:8007/mcphttps://mcp.aetoskia.com/mongo-ops/mcp
    hexahexa8008http://localhost:8008/mcphttps://mcp.aetoskia.com/hexa/mcp
    doc-weaverdoc-weaver8010http://localhost:8010/mcphttps://mcp.aetoskia.com/doc-weaver/mcp
    +

    The hosted endpoints are served over HTTPS at https://mcp.aetoskia.com/<slug>/mcp. +The tabs below are linked (content.tabs.link): switching one switches all of +them. Every snippet registers all ten servers, so a single paste is enough.

    +
    +

    ๐Ÿค– Claude Code

    +

    Project-scoped .mcp.json at the repo root. The type field is required โ€” an +entry with a url but no type is read as a stdio server and skipped.

    +
    +
    +
    +
     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    +13
    +14
    {
    +  "mcpServers": {
    +    "standards": { "type": "http", "url": "http://localhost:8009/mcp" },
    +    "doc-forge": { "type": "http", "url": "http://localhost:8001/mcp" },
    +    "mail-intake": { "type": "http", "url": "http://localhost:8002/mcp" },
    +    "omniread": { "type": "http", "url": "http://localhost:8003/mcp" },
    +    "openapi-first": { "type": "http", "url": "http://localhost:8004/mcp" },
    +    "py-jwt": { "type": "http", "url": "http://localhost:8005/mcp" },
    +    "dagpipe": { "type": "http", "url": "http://localhost:8006/mcp" },
    +    "mongo-ops": { "type": "http", "url": "http://localhost:8007/mcp" },
    +    "hexa": { "type": "http", "url": "http://localhost:8008/mcp" },
    +    "doc-weaver": { "type": "http", "url": "http://localhost:8010/mcp" }
    +  }
    +}
    +
    +
    +
    +
     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    +13
    +14
    {
    +  "mcpServers": {
    +    "standards": { "type": "http", "url": "https://mcp.aetoskia.com/standards/mcp" },
    +    "doc-forge": { "type": "http", "url": "https://mcp.aetoskia.com/doc-forge/mcp" },
    +    "mail-intake": { "type": "http", "url": "https://mcp.aetoskia.com/mail-intake/mcp" },
    +    "omniread": { "type": "http", "url": "https://mcp.aetoskia.com/omniread/mcp" },
    +    "openapi-first": { "type": "http", "url": "https://mcp.aetoskia.com/openapi-first/mcp" },
    +    "py-jwt": { "type": "http", "url": "https://mcp.aetoskia.com/py-jwt/mcp" },
    +    "dagpipe": { "type": "http", "url": "https://mcp.aetoskia.com/dagpipe/mcp" },
    +    "mongo-ops": { "type": "http", "url": "https://mcp.aetoskia.com/mongo-ops/mcp" },
    +    "hexa": { "type": "http", "url": "https://mcp.aetoskia.com/hexa/mcp" },
    +    "doc-weaver": { "type": "http", "url": "https://mcp.aetoskia.com/doc-weaver/mcp" }
    +  }
    +}
    +
    +
    +
    +
    +

    Or add them with the CLI: +claude mcp add --transport http standards http://localhost:8009/mcp.

    +
    +

    ๐Ÿค– Codex

    +

    ~/.codex/config.toml (or a project-scoped .codex/config.toml).

    +
    +
    +
    +
     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    [mcp_servers.standards]
    +url = "http://localhost:8009/mcp"
    +
    +[mcp_servers.doc-forge]
    +url = "http://localhost:8001/mcp"
    +
    +[mcp_servers.mail-intake]
    +url = "http://localhost:8002/mcp"
    +
    +[mcp_servers.omniread]
    +url = "http://localhost:8003/mcp"
    +
    +[mcp_servers.openapi-first]
    +url = "http://localhost:8004/mcp"
    +
    +[mcp_servers.py-jwt]
    +url = "http://localhost:8005/mcp"
    +
    +[mcp_servers.dagpipe]
    +url = "http://localhost:8006/mcp"
    +
    +[mcp_servers.mongo-ops]
    +url = "http://localhost:8007/mcp"
    +
    +[mcp_servers.hexa]
    +url = "http://localhost:8008/mcp"
    +
    +[mcp_servers.doc-weaver]
    +url = "http://localhost:8010/mcp"
    +
    +
    +
    +
     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    [mcp_servers.standards]
    +url = "https://mcp.aetoskia.com/standards/mcp"
    +
    +[mcp_servers.doc-forge]
    +url = "https://mcp.aetoskia.com/doc-forge/mcp"
    +
    +[mcp_servers.mail-intake]
    +url = "https://mcp.aetoskia.com/mail-intake/mcp"
    +
    +[mcp_servers.omniread]
    +url = "https://mcp.aetoskia.com/omniread/mcp"
    +
    +[mcp_servers.openapi-first]
    +url = "https://mcp.aetoskia.com/openapi-first/mcp"
    +
    +[mcp_servers.py-jwt]
    +url = "https://mcp.aetoskia.com/py-jwt/mcp"
    +
    +[mcp_servers.dagpipe]
    +url = "https://mcp.aetoskia.com/dagpipe/mcp"
    +
    +[mcp_servers.mongo-ops]
    +url = "https://mcp.aetoskia.com/mongo-ops/mcp"
    +
    +[mcp_servers.hexa]
    +url = "https://mcp.aetoskia.com/hexa/mcp"
    +
    +[mcp_servers.doc-weaver]
    +url = "https://mcp.aetoskia.com/doc-weaver/mcp"
    +
    +
    +
    +
    +

    Or add them with the CLI: +codex mcp add standards --url http://localhost:8009/mcp.

    +
    +

    ๐Ÿค– Antigravity

    +

    ~/.gemini/antigravity/mcp_config.json (IDE) or +~/.gemini/config/mcp_config.json (CLI). Antigravity uses serverUrl, not +url, for HTTP endpoints.

    +
    +
    +
    +
     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    +13
    +14
    {
    +  "mcpServers": {
    +    "standards": { "serverUrl": "http://localhost:8009/mcp" },
    +    "doc-forge": { "serverUrl": "http://localhost:8001/mcp" },
    +    "mail-intake": { "serverUrl": "http://localhost:8002/mcp" },
    +    "omniread": { "serverUrl": "http://localhost:8003/mcp" },
    +    "openapi-first": { "serverUrl": "http://localhost:8004/mcp" },
    +    "py-jwt": { "serverUrl": "http://localhost:8005/mcp" },
    +    "dagpipe": { "serverUrl": "http://localhost:8006/mcp" },
    +    "mongo-ops": { "serverUrl": "http://localhost:8007/mcp" },
    +    "hexa": { "serverUrl": "http://localhost:8008/mcp" },
    +    "doc-weaver": { "serverUrl": "http://localhost:8010/mcp" }
    +  }
    +}
    +
    +
    +
    +
     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    +13
    +14
    {
    +  "mcpServers": {
    +    "standards": { "serverUrl": "https://mcp.aetoskia.com/standards/mcp" },
    +    "doc-forge": { "serverUrl": "https://mcp.aetoskia.com/doc-forge/mcp" },
    +    "mail-intake": { "serverUrl": "https://mcp.aetoskia.com/mail-intake/mcp" },
    +    "omniread": { "serverUrl": "https://mcp.aetoskia.com/omniread/mcp" },
    +    "openapi-first": { "serverUrl": "https://mcp.aetoskia.com/openapi-first/mcp" },
    +    "py-jwt": { "serverUrl": "https://mcp.aetoskia.com/py-jwt/mcp" },
    +    "dagpipe": { "serverUrl": "https://mcp.aetoskia.com/dagpipe/mcp" },
    +    "mongo-ops": { "serverUrl": "https://mcp.aetoskia.com/mongo-ops/mcp" },
    +    "hexa": { "serverUrl": "https://mcp.aetoskia.com/hexa/mcp" },
    +    "doc-weaver": { "serverUrl": "https://mcp.aetoskia.com/doc-weaver/mcp" }
    +  }
    +}
    +
    +
    +
    +
    +
    +

    ๐Ÿค– OpenCode

    +

    opencode.json (project) or ~/.config/opencode/opencode.json (global).

    +
    +
    +
    +
     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    +13
    +14
    +15
    {
    +  "$schema": "https://opencode.ai/config.json",
    +  "mcp": {
    +    "standards": { "type": "remote", "url": "http://localhost:8009/mcp", "enabled": true },
    +    "doc-forge": { "type": "remote", "url": "http://localhost:8001/mcp", "enabled": true },
    +    "mail-intake": { "type": "remote", "url": "http://localhost:8002/mcp", "enabled": true },
    +    "omniread": { "type": "remote", "url": "http://localhost:8003/mcp", "enabled": true },
    +    "openapi-first": { "type": "remote", "url": "http://localhost:8004/mcp", "enabled": true },
    +    "py-jwt": { "type": "remote", "url": "http://localhost:8005/mcp", "enabled": true },
    +    "dagpipe": { "type": "remote", "url": "http://localhost:8006/mcp", "enabled": true },
    +    "mongo-ops": { "type": "remote", "url": "http://localhost:8007/mcp", "enabled": true },
    +    "hexa": { "type": "remote", "url": "http://localhost:8008/mcp", "enabled": true },
    +    "doc-weaver": { "type": "remote", "url": "http://localhost:8010/mcp", "enabled": true }
    +  }
    +}
    +
    +
    +
    +
     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    +13
    +14
    +15
    {
    +  "$schema": "https://opencode.ai/config.json",
    +  "mcp": {
    +    "standards": { "type": "remote", "url": "https://mcp.aetoskia.com/standards/mcp", "enabled": true },
    +    "doc-forge": { "type": "remote", "url": "https://mcp.aetoskia.com/doc-forge/mcp", "enabled": true },
    +    "mail-intake": { "type": "remote", "url": "https://mcp.aetoskia.com/mail-intake/mcp", "enabled": true },
    +    "omniread": { "type": "remote", "url": "https://mcp.aetoskia.com/omniread/mcp", "enabled": true },
    +    "openapi-first": { "type": "remote", "url": "https://mcp.aetoskia.com/openapi-first/mcp", "enabled": true },
    +    "py-jwt": { "type": "remote", "url": "https://mcp.aetoskia.com/py-jwt/mcp", "enabled": true },
    +    "dagpipe": { "type": "remote", "url": "https://mcp.aetoskia.com/dagpipe/mcp", "enabled": true },
    +    "mongo-ops": { "type": "remote", "url": "https://mcp.aetoskia.com/mongo-ops/mcp", "enabled": true },
    +    "hexa": { "type": "remote", "url": "https://mcp.aetoskia.com/hexa/mcp", "enabled": true },
    +    "doc-weaver": { "type": "remote", "url": "https://mcp.aetoskia.com/doc-weaver/mcp", "enabled": true }
    +  }
    +}
    +
    +
    +
    +
    +

    Or add them with the CLI: +opencode mcp add standards --url http://localhost:8009/mcp --global.

    +
    +

    ๐Ÿค– PyCharm (Junie / AI Assistant)

    +

    ~/.junie/mcp/mcp.json (user scope) or .junie/mcp/mcp.json (project scope). +The same config is reachable from Settings | Tools | MCP Server โ†’ Manual +Client Configuration โ†’ Copy HTTP Stream Config.

    +
    +
    +
    +
     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    +13
    +14
    {
    +  "mcpServers": {
    +    "standards": { "url": "http://localhost:8009/mcp" },
    +    "doc-forge": { "url": "http://localhost:8001/mcp" },
    +    "mail-intake": { "url": "http://localhost:8002/mcp" },
    +    "omniread": { "url": "http://localhost:8003/mcp" },
    +    "openapi-first": { "url": "http://localhost:8004/mcp" },
    +    "py-jwt": { "url": "http://localhost:8005/mcp" },
    +    "dagpipe": { "url": "http://localhost:8006/mcp" },
    +    "mongo-ops": { "url": "http://localhost:8007/mcp" },
    +    "hexa": { "url": "http://localhost:8008/mcp" },
    +    "doc-weaver": { "url": "http://localhost:8010/mcp" }
    +  }
    +}
    +
    +
    +
    +
     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    +13
    +14
    {
    +  "mcpServers": {
    +    "standards": { "url": "https://mcp.aetoskia.com/standards/mcp" },
    +    "doc-forge": { "url": "https://mcp.aetoskia.com/doc-forge/mcp" },
    +    "mail-intake": { "url": "https://mcp.aetoskia.com/mail-intake/mcp" },
    +    "omniread": { "url": "https://mcp.aetoskia.com/omniread/mcp" },
    +    "openapi-first": { "url": "https://mcp.aetoskia.com/openapi-first/mcp" },
    +    "py-jwt": { "url": "https://mcp.aetoskia.com/py-jwt/mcp" },
    +    "dagpipe": { "url": "https://mcp.aetoskia.com/dagpipe/mcp" },
    +    "mongo-ops": { "url": "https://mcp.aetoskia.com/mongo-ops/mcp" },
    +    "hexa": { "url": "https://mcp.aetoskia.com/hexa/mcp" },
    +    "doc-weaver": { "url": "https://mcp.aetoskia.com/doc-weaver/mcp" }
    +  }
    +}
    +
    +
    +
    +
    +
    +

    โœ… Verify

    +
      +
    • Health check: curl http://localhost:8000/healthz โ†’ ok.
    • +
    • Claude Code: claude mcp list โ†’ each server โ€ฆ โœ“ Connected.
    • +
    • Codex: codex mcp list โ†’ each server โ€ฆ http.
    • +
    • OpenCode: opencode mcp list โ†’ each server โ€ฆ connected.
    • +
    • In-session: run /mcp to list the connected servers and their tools.
    • +
    +
    +

    ๐Ÿ“š Reference

    + +
    + + + + + + + + + + + + + + + +
    +
    + + + + + +
    + + + +
    + + + +
    +
    +
    +
    + + + + + + + + + + + + + + \ No newline at end of file diff --git a/standards/wiki/404.html b/standards/wiki/404.html index 2a818db..09b4177 100644 --- a/standards/wiki/404.html +++ b/standards/wiki/404.html @@ -266,6 +266,28 @@ + + +
  • + + + + + + + MCP + + +
  • + + + + + + + + +
  • @@ -428,6 +450,85 @@ + + + + + + + + + + + + + + +
  • + + + + + + + + + + + + +
  • + + + + + + + + +
  • diff --git a/standards/wiki/index.html b/standards/wiki/index.html index ff93876..70eb845 100644 --- a/standards/wiki/index.html +++ b/standards/wiki/index.html @@ -275,6 +275,28 @@ + + +
  • + + + + + + + MCP + + +
  • + + + + + + + + +
  • @@ -506,6 +528,85 @@ + + + + + + + + + + + + + + +
  • + + + + + + + + + + + + +
  • + + + + + + + + +
  • diff --git a/standards/wiki/search/search_index.json b/standards/wiki/search/search_index.json index d7f0dfd..c3691aa 100644 --- a/standards/wiki/search/search_index.json +++ b/standards/wiki/search/search_index.json @@ -1 +1 @@ -{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"\ud83e\udde9 Standards \u2014 the Aetos App Blueprint","text":"

    One reusable architecture for every backend application in the Aetos ecosystem: a spec-first HTTP edge, a framework-free domain core, a pluggable infrastructure layer, and a single composition root.

    Fill in two axes only and a new app is done: your resource model, and (if needed) your pipeline family. The blueprint itself never names a business domain \u2014 expenses, health metrics, inventory, and analytics are all the same shape underneath.

    Doc model: this wiki is written for humans \u2014 how-to guides, the build recipe, and quality gates. The enforceable rules (layering, composition root, CRUD template, pipeline scaffold) and the library registry live in the reference pages, mirrored by the machine-readable standards MCP bundle. Query find_library before writing any infrastructure.

    "},{"location":"#key-features","title":"\ud83d\ude80 Key Features","text":"
    • \ud83e\udded Spec-first routing \u2014 the OpenAPI document, not decorator routers, is the source of truth (operationId lookup)
    • \ud83c\udfd7\ufe0f One-way layering \u2014 interfaces \u2192 domain \u2192 infra, enforced
    • \ud83d\udd0c Single composition root \u2014 every dependency is wired in exactly one place
    • \ud83e\udde9 Generic, not app-specific \u2014 reusable rules versus two authoring axes
    • \ud83d\udcda Library-backed \u2014 DB, DI, pipelines, ingestion, auth, and docs come from internal libraries, never hand-written
    • \ud83d\udea6 Explicit state machines \u2014 durable job statuses, progress, and human-in-the-loop pauses
    "},{"location":"#documentation-structure","title":"\ud83d\udcc1 Documentation Structure","text":"Section Description Overview Philosophy, the one-way dependency rule, architecture App Components The component model and how the pieces wire together Start an App The entry point: gather the two axes, then build Testing & Quality Test layout and acceptance gates

    Reference (separate site, mirrors the MCP bundle): the enforceable rules \u2014 Build Recipe, Layering, Composition Root, Spec-First Routing, CRUD Template, Pipeline Scaffold, Worker & Progress, Human-in-the-Loop, Infra Adapters, Genericity Matrix, Library Registry.

    "},{"location":"#related-resources","title":"\ud83d\udd17 Related Resources","text":"
    • MCP bundle \u2014 standards server on :8009: read docs://index, docs://nav, docs://modules/{module}; call find_library(capability)
    • Library registry \u2014 the catalog of internal libraries behind every app (libraries.json, served as registry://libraries)
    • Template \u2014 the runnable skeleton at standards/src/templates/app/
    • Start a build \u2014 invoke the start_app prompt on the standards server, or read the Start an App guide

    \u00a9 Aetoskia Internal \u2014 standards

    "},{"location":"01_overview/","title":"Overview","text":"

    The blueprint is a hexagonal (ports & adapters) application with a spec-first web edge and a single composition root. It favors explicit wiring over implicit magic and existing internal libraries over hand-written infrastructure. Start here to build the mental model; the enforceable details live in the reference pages.

    "},{"location":"01_overview/#architecture","title":"\ud83c\udfd7\ufe0f Architecture","text":"
    flowchart LR\n    subgraph EDGE[\"interfaces/ \u2014 HTTP edge\"]\n        OAS[\"openapi.yaml<br/>operationId contract\"]\n        RT[\"<resource>/routes.py<br/>thin handlers\"]\n    end\n\n    subgraph CORE[\"domain/ \u2014 business core\"]\n        MD[\"models\"]\n        PT[\"ports (adapter binding seam)\"]\n        SV[\"services\"]\n    end\n\n    subgraph INFRA[\"infra/ \u2014 adapters\"]\n        RP[\"mongo repos (mongo-ops)\"]\n        AD[\"cache \u00b7 stores \u00b7 llm \u00b7 mail\"]\n        DB[(\"MongoDB\")]\n    end\n\n    CR[\"init.py<br/>composition root\"]\n\n    OAS --> RT\n    RT --> SV\n    SV --> PT\n    SV --> RP\n    PT -. depends on .- RP\n    CR --- RT\n    CR --- SV\n    CR --- RP\n    RP --> DB\n    AD --- CR

    The rule holds at every edge: code in an outer ring may depend on a ring closer to the core, never the reverse. domain/ never imports a web framework; only its ports/ seam reaches into infra/ to bind adapters.

    Legend \u2014 solid arrows are compile-time calls; dotted arrows are the port/adapter binding, performed by the composition root at startup.

    "},{"location":"01_overview/#the-one-way-dependency-rule","title":"\ud83d\udd04 The one-way dependency rule","text":"Ring May import Never imports interfaces/ domain, framework glue (glue only) business logic, infra directly domain/ its own models + its ports/ seam (which binds infra/libraries) web frameworks, interfaces/ infra/ domain ports, drivers, libraries \u2014 init.py everything (the wiring point) \u2014"},{"location":"01_overview/#core-principles","title":"\ud83e\udded Core principles","text":"
    1. One-way dependencies. interfaces -> domain -> infra is allowed; the reverse is forbidden.
    2. Ports in the domain, adapters in infra. A service depends on a port; the port's factory binds the concrete adapter, and the composition root calls those factories.
    3. One composition root. Nothing constructs its own dependencies. All wiring lives in one module (init.py) exposed as a flat resource registry.
    4. Spec-first. The HTTP contract is declared in openapi.yaml; route handlers are looked up by operationId. There are no decorator routers.
    5. Reuse the libraries. Orchestration, DI, Mongo repositories, ingestion, auth, and docs come from internal libraries \u2014 see the Library Registry.
    6. Explicit state machines. Long-running work moves through explicit, durable statuses and can pause for human input.
    "},{"location":"01_overview/#runtime-processes","title":"\u2699\ufe0f Runtime processes","text":"

    A standard app may run as up to three processes that share the same composition root:

    Process Entry point Responsibility API main.py serve HTTP; start/stop resources via lifespan Worker worker.py poll durable jobs, run pipelines, publish progress Scripts python -m scripts.<name> one-shot operator tasks"},{"location":"01_overview/#read-next","title":"\u27a1\ufe0f Read Next","text":"
    • 02 \u2013 App Components \u00b7 03 \u2013 Start an App
    "},{"location":"02_components/","title":"App Components","text":"

    What ships in every standard app, and how the pieces relate. This is the blueprint's component model \u2014 templates/app/ is a runnable instance of it.

    "},{"location":"02_components/#component-model","title":"\ud83d\uddc2\ufe0f Component model","text":"

    The blueprint has two orthogonal views: runtime flow (who calls whom) and composition-root wiring (who constructs whom). Keeping them separate makes the layering visible instead of hiding it behind a hub.

    "},{"location":"02_components/#runtime-flow","title":"\ud83d\udd00 Runtime flow","text":"

    Who calls whom at request and job time:

    %%{init: {\"flowchart\": {\"nodeSpacing\": 50, \"rankSpacing\": 80}}}%%\nflowchart TB\n    subgraph REQ[\"Request path \u2014 API process\"]\n        direction LR\n        CL([\"Client<br/>operationId\"]) --> RT[\"interfaces/&lt;resource&gt;/routes.py\"]\n        RT --> SVC[\"&lt;resource&gt;_svc\"]\n        SVC --> REPO[\"&lt;resource&gt;_repo\"]\n    end\n\n    subgraph WRK[\"Background path \u2014 worker process\"]\n        direction LR\n        W[\"worker.py\"] --> JSVC[\"job_svc\"]\n        W --> PIPE[\"pipelines/&lt;family&gt;\"]\n        PIPE --> ISVC[\"item_svc\"]\n        JSVC --> JREPO[\"job_repo\"]\n        ISVC --> IREPO[\"item_repo\"]\n    end\n\n    subgraph INFRA[\"infra/ \u2014 adapters\"]\n        MONGO[(\"MongoDB / mongo_ops\")]\n    end\n\n    REPO --> MONGO\n    JREPO --> MONGO\n    IREPO --> MONGO

    Legend \u2014 solid arrows are runtime calls. Nothing is self-constructed.

    "},{"location":"02_components/#composition-root-wiring","title":"\ud83e\uddf5 Composition-root wiring","text":"

    Who constructs what at startup:

    %%{init: {\"flowchart\": {\"nodeSpacing\": 50, \"rankSpacing\": 80}}}%%\nflowchart TB\n    INIT[\"init.py \u2014 composition root\"]\n    SETUP[\"infra/db/setup.py\"]\n    FACT[\"domain/*/ports/*<br/>factory seams\"]\n    REPOS[\"repos<br/>infra/db/repos/mongo.py\"]\n    SVCES[\"services<br/>CrudsServiceAdaptor\"]\n    STATE[\"app.state.db_resources\"]\n    HEXA[\"hexa.build\"]\n    RT[\"routes.py\"]\n    WK[\"worker.py\"]\n\n    INIT --> SETUP\n    INIT --> FACT\n    FACT --> REPOS\n    FACT --> SVCES\n    REPOS --> SVCES\n    HEXA -.-> SVCES\n    INIT --> STATE\n    STATE --> RT\n    INIT --> WK

    Legend \u2014 init.py is the only place that imports concrete adapters. The ports/ factory seams bind infra; the API reads resources from app.state.db_resources, the worker calls init() directly.

    "},{"location":"02_components/#component-roles","title":"\ud83d\udce6 Component roles","text":""},{"location":"02_components/#1-interfaces-the-edge","title":"1. interfaces/ \u2014 the edge","text":"

    Thin handlers bound to openapi.yaml operationIds. They parse the request, call a service, and shape the response. No business rules, no I/O.

    • interfaces/openapi.py re-exports every route module so the OpenAPI-first app can resolve handlers.
    • Routes may mount the cache decorator on read endpoints.
    "},{"location":"02_components/#2-domain-the-core","title":"2. domain/ \u2014 the core","text":"

    Models, ports, and services (use cases). No framework imports. The ports/ package is the one seam allowed to reach into infra/: each port module declares the document shape and a factory that binds the adapter.

    • <aggregate>/models.py \u2014 dataclasses, enums, document shapes.
    • <aggregate>/ports/db.py \u2014 document model + create_<aggregate>_repo().
    • <aggregate>/ports/service.py \u2014 service + get_<aggregate>_service(repo).
    • Services compose ports and enforce the business rules; the port factories bind the implementations, and the composition root calls them.
    "},{"location":"02_components/#3-infra-the-adapters","title":"3. infra/ \u2014 the adapters","text":"

    Concrete implementations of the domain ports plus cross-cutting infrastructure:

    • db/ \u2014 mongo-ops repositories and the connection lifecycle.
    • adapters/ \u2014 cache store, progress bus, storages, fetchers (library-backed).
    • Anything else the domain needs, implemented against its ports.
    "},{"location":"02_components/#4-pipelines-data-driven-families-optional","title":"4. pipelines/ \u2014 data-driven families (optional)","text":"

    Extraction and enrichment families, each a deterministic step chain (abc.py / impl.py / pipeline.yaml / resources/). Roots are registered in the pattern registry and driven either by a worker job or a CLI.

    "},{"location":"02_components/#5-workerpy-the-job-worker-optional","title":"5. worker.py \u2014 the job worker (optional)","text":"

    A separate process that polls durable job collections, runs pipeline roots, and publishes progress to the progress bus. It shares the same composition root as the API.

    "},{"location":"02_components/#6-initpy-the-composition-root","title":"6. init.py \u2014 the composition root","text":"

    The only place anything is constructed: leaf repositories \u2192 dependent repositories \u2192 services \u2192 adapters. Exposes get_svc overloads and starts / stops resources on the app lifespan.

    "},{"location":"02_components/#how-the-request-flows","title":"\ud83d\udd17 How the request flows","text":"
    sequenceDiagram\n    participant C as Client\n    participant R as route (interfaces)\n    participant S as service (port factory / adapter)\n    participant P as repo (infra)\n    participant DB as MongoDB\n\n    C->>R: POST /items (operationId)\n    R->>S: svc.create(payload)\n    S->>P: repo.insert(doc)\n    P->>DB: insert\n    DB-->>P: ack\n    P-->>S: doc\n    S-->>R: result\n    R-->>C: 200 JSON
    "},{"location":"02_components/#related","title":"Related","text":"
    • 01 \u2013 Overview \u00b7 03 \u2013 Start an App \u00b7 04 \u2013 Testing & Quality
    "},{"location":"03_start_an_app/","title":"\ud83d\ude80 Start an App","text":"

    This is the entry point for building a new application from the blueprint. The goal is one deterministic pass: you supply only the two axes, and the agent does the rest by reading the standards MCP, importing Tier A libraries, and copying Tier B template components.

    Doc model: this page is the human entry point. The deterministic, machine-facing checklist lives in the reference page Build Recipe, served as docs://modules/build_recipe.

    "},{"location":"03_start_an_app/#what-the-agent-needs-from-you","title":"\ud83e\uddfe What the agent needs from you","text":"

    Gather these before starting \u2014 the start_app MCP prompt asks for them:

    1. App name + one-line purpose.
    2. Axis 1 \u2014 resources. Each resource, its fields, and relationships. Paste openapi.yaml if you already have it.
    3. Axis 2 \u2014 pipelines. Only if an input needs a multi-step transformation: the families and their input formats (or \"none\").
    4. Auth needed now? Default no. Auth is deferred (py-jwt primitives only), and an authless app is just a spec with no security keys \u2014 see Spec-First Routing \u2192 Authless apps.
    5. Integrations. Mongo, ingestion formats, email, LLM provider.

    If you can state axes 1 and 2, the rest is mechanical.

    "},{"location":"03_start_an_app/#how-to-start","title":"\u25b6\ufe0f How to start","text":"

    From an MCP client connected to the standards server:

    1. Invoke the intake prompt (or start_app with no arguments) to get the intake questions.
    2. Answer them, then invoke build (build(app_name=..., resources=..., pipelines=..., auth=...)), or use start_app to intake-and-build in one call.
    3. The prompt hands off to docs://modules/build_recipe; the agent scaffolds with get_app_template() and pulls exact files with get_app_component(kind, resource=..., family=...), authoring only the app-specific parts.
    4. To validate the standard without touching a real app, invoke trial (trial(app_name=..., build_path=...)) to build into a scratch directory, prove it builds, and report findings.

    Manual alternative \u2014 copy the skeleton and follow the reference recipe:

    cp -r <docs>/standards/src/templates/app apps/<your-app>\n
    "},{"location":"03_start_an_app/#reference","title":"\ud83d\udcda Reference","text":"
    • Build Recipe \u2014 the deterministic checklist
    • Genericity Matrix \u2014 Tier A / B / C
    • Library Registry \u2014 the Tier A catalog
    • App Components \u2014 the component model
    "},{"location":"03_start_an_app/#related","title":"Related","text":"
    • 01 \u2013 Overview \u00b7 02 \u2013 App Components \u00b7 04 \u2013 Testing & Quality
    "},{"location":"04_development/01_testing/","title":"Testing & Quality Gates","text":"

    Two suites run under pytest with asyncio auto mode: integration (the HTTP edge against fakes) and unit (pure domain and pipeline logic). Finish a blueprint app only when every gate below passes.

    "},{"location":"04_development/01_testing/#layout","title":"\ud83d\uddc2\ufe0f Layout","text":"
    tests/\n    integration/     # TestClient(app) + mocked resources\n    unit/            # models, converters, pipeline stages/roots\n    conftest.py      # fixtures\n
    "},{"location":"04_development/01_testing/#integration-tests","title":"\ud83d\ude80 Integration tests","text":"
    • Build the app with TestClient.
    • Replace app.state.db_resources with fake repositories/services so no database is required.
    • Patch the auth introspection call (httpx.AsyncClient.post) to return a canned identity.
    • Assert status codes and bodies for list/get/create/update/delete, plus 400, 404, 204, and the streaming endpoint's fallback.
    client = TestClient(app)\napp.state.db_resources = {\"item_svc\": FakeItemService(), ...}\n\ndef test_create_item():\n    r = client.post(\"/items\", json={\"name\": \"x\"})\n    assert r.status_code == 200\n
    "},{"location":"04_development/01_testing/#unit-tests","title":"\ud83e\uddea Unit tests","text":"
    • Domain models and converters: pure, no I/O.
    • Pipeline stages: feed a fixture state, assert the transformed state.
    • Assembled pipeline roots: fixture parity \u2014 replay a stored fixture input and compare against a golden output file.
    "},{"location":"04_development/01_testing/#config-consistency-tests","title":"\ud83d\udd10 Config-consistency tests","text":"

    For rule-driven pipelines, add a test that cross-references rules against the declared pattern registry: every flag emitted must be defined; every defined flag must be reachable. This catches drift without running the pipeline.

    "},{"location":"04_development/01_testing/#quality-gates","title":"\u2705 Quality gates","text":"

    A definition of done for any standard app:

    • python -c \"import main\" succeeds.
    • pytest passes.
    • The app serves the spec's operations; the worker drains its queue.
    • No domain module imports a web framework.
    • No infrastructure was reimplemented that a library already provides.
    "},{"location":"04_development/01_testing/#conventions","title":"\ud83d\udca1 Conventions","text":"
    • asyncio_mode = \"auto\"; no manual event loops.
    • Fixtures are checked into the repo (inputs + golden outputs).
    • Tests skip (not fail) when a required fixture is absent.
    • Do not mock the domain; mock only the infrastructure edge.
    "},{"location":"04_development/01_testing/#related","title":"Related","text":"
    • 02 \u2013 App Components \u00b7 03 \u2013 Start an App \u00b7 Overview
    "},{"location":"04_development/02_releasing/","title":"Releasing & Versioning","text":"

    How to cut a release of any Aetos repository. The rule lives in the reference page Versioning & Changelog; this is the runbook you follow.

    Every repository is one of two Drone shapes \u2014 a PyPI package or a Docker deployment (Drone Pipelines). Both release the same way: the version bump and changelog promotion go in the merge request, and the tag is created on the merged commit.

    "},{"location":"04_development/02_releasing/#before-you-start","title":"\ud83e\uddfe Before you start","text":"
    • You have an open merge request holding the change, and main is green (the Drone quality gate passed on the last run).
    • You know whether this is a breaking, feature, or fix release.
    • The version file exists:
    • package \u2192 version in pyproject.toml
    • service \u2192 VERSION at the repo root
    "},{"location":"04_development/02_releasing/#pick-the-next-version","title":"\ud83d\udea6 Pick the next version","text":"

    The version file and the tag must be identical. For 0.y.z, 0.y is the major line (see the reference page); once at 1.0.0, normal SemVer applies.

    Change 0.y.z \u2192 1.0.0+ \u2192 Breaking 0.(y+1).0 (x+1).0.0 Feature 0.y.(z+1) x.(y+1).0 Fix 0.y.(z+1) x.y.(z+1)"},{"location":"04_development/02_releasing/#release-in-the-mr","title":"\ud83c\udf3f Release in the MR","text":"

    The version is known while the change is still a merge request, so the bump rides along with it. Do all edits in the MR:

    • Reconcile the changelog first. [Unreleased] is a draft, not the source of truth: diff the change against the last tag (git log <last-tag>..HEAD, git diff --stat <last-tag>..HEAD) and add an entry for every user-facing change that is missing. Always show the proposed additions to the user and wait for approval before promoting \u2014 ask rather than guess when an entry is ambiguous.

    • Promote the changelog in CHANGELOG.md: move the (now reconciled) [Unreleased] content under a new ## [x.y.z] - YYYY-MM-DD heading, leave a fresh empty [Unreleased] on top, and add the compare links \u2014 naming the version/tag, never a commit id:

    [Unreleased]: https://git.aetoskia.com/aetos/<repo>/compare/x.y.z...HEAD\n[x.y.z]: https://git.aetoskia.com/aetos/<repo>/compare/x.y.(z-1)...x.y.z\n
    • Bump the version file to the intended release version: version = \"x.y.z\" in pyproject.toml (packages) or the VERSION file (services).
    "},{"location":"04_development/02_releasing/#tag-the-merged-commit","title":"\ud83c\udff7\ufe0f Tag the merged commit","text":"
    1. Merge or squash the MR into main.
    2. Create the tag on the resulting commit: git tag x.y.z (lightweight).
    3. Push the tag (git push origin x.y.z) \u2014 Drone builds the release.
    "},{"location":"04_development/02_releasing/#agent-assisted-tagging","title":"\ud83e\udd16 Agent-assisted tagging","text":"

    The agent does not author or merge the MR and never tags before the merge. After you confirm the MR is merged/squashed and tell it to proceed, the agent:

    1. Waits for that explicit go-ahead.
    2. Finds the commit that introduced the bump:
    3. package: git log -S 'version = \"x.y.z\"' -n 1 --format='%H %s' -- pyproject.toml
    4. service: git log -S 'x.y.z' -n 1 --format='%H %s' -- VERSION
    5. Verifies that commit's version file equals x.y.z, then tags only that commit: git tag x.y.z <sha>.
    6. Does not push \u2014 it asks you to run git push origin x.y.z.
    "},{"location":"04_development/02_releasing/#what-drone-does","title":"\ud83e\udd16 What Drone does","text":"
    • Type A (package): asserts tag == pyproject version, then skips if that version already exists on the index, runs the quality gate, builds, and uploads the wheel + sdist.
    • Type B (service): asserts tag == VERSION, resolves the tag, skips if the image already exists, runs the quality gate, builds, pushes, and restarts the container.

    If the guard fails, nothing is published \u2014 fix the version file, amend the commit, and move the tag only if it was never pushed.

    "},{"location":"04_development/02_releasing/#backfill-recovery","title":"\ud83d\udedf Backfill / recovery","text":"

    If an older tag never published (a past version-file mismatch, an index outage):

    • Package: run the backfill-pypi-from-tags pipeline (custom event). It checks out every tag, verifies tag == pyproject version at that commit, and uploads the ones missing from the index. Already-fixed history is never rewritten.
    • Service: rebuild the image for the missing tag with a fresh commit and a new patch version; do not move a published tag.
    "},{"location":"04_development/02_releasing/#if-a-release-is-wrong","title":"\ud83d\udd01 If a release is wrong","text":"
    • Never reuse or force-move a pushed tag.
    • Fix forward: bump to the next patch, promote the changelog, tag again.
    "},{"location":"04_development/02_releasing/#related","title":"Related","text":"
    • Testing & Quality Gates \u00b7 Versioning & Changelog \u00b7 Drone Pipelines
    "}]} \ No newline at end of file +{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"\ud83e\udde9 Standards \u2014 the Aetos App Blueprint","text":"

    One reusable architecture for every backend application in the Aetos ecosystem: a spec-first HTTP edge, a framework-free domain core, a pluggable infrastructure layer, and a single composition root.

    Fill in two axes only and a new app is done: your resource model, and (if needed) your pipeline family. The blueprint itself never names a business domain \u2014 expenses, health metrics, inventory, and analytics are all the same shape underneath.

    Doc model: this wiki is written for humans \u2014 how-to guides, the build recipe, and quality gates. The enforceable rules (layering, composition root, CRUD template, pipeline scaffold) and the library registry live in the reference pages, mirrored by the machine-readable standards MCP bundle. Query find_library before writing any infrastructure.

    "},{"location":"#key-features","title":"\ud83d\ude80 Key Features","text":"
    • \ud83e\udded Spec-first routing \u2014 the OpenAPI document, not decorator routers, is the source of truth (operationId lookup)
    • \ud83c\udfd7\ufe0f One-way layering \u2014 interfaces \u2192 domain \u2192 infra, enforced
    • \ud83d\udd0c Single composition root \u2014 every dependency is wired in exactly one place
    • \ud83e\udde9 Generic, not app-specific \u2014 reusable rules versus two authoring axes
    • \ud83d\udcda Library-backed \u2014 DB, DI, pipelines, ingestion, auth, and docs come from internal libraries, never hand-written
    • \ud83d\udea6 Explicit state machines \u2014 durable job statuses, progress, and human-in-the-loop pauses
    "},{"location":"#documentation-structure","title":"\ud83d\udcc1 Documentation Structure","text":"Section Description Overview Philosophy, the one-way dependency rule, architecture App Components The component model and how the pieces wire together Start an App The entry point: gather the two axes, then build Testing & Quality Test layout and acceptance gates

    Reference (separate site, mirrors the MCP bundle): the enforceable rules \u2014 Build Recipe, Layering, Composition Root, Spec-First Routing, CRUD Template, Pipeline Scaffold, Worker & Progress, Human-in-the-Loop, Infra Adapters, Genericity Matrix, Library Registry.

    "},{"location":"#related-resources","title":"\ud83d\udd17 Related Resources","text":"
    • MCP bundle \u2014 standards server on :8009: read docs://index, docs://nav, docs://modules/{module}; call find_library(capability)
    • Library registry \u2014 the catalog of internal libraries behind every app (libraries.json, served as registry://libraries)
    • Template \u2014 the runnable skeleton at standards/src/templates/app/
    • Start a build \u2014 invoke the start_app prompt on the standards server, or read the Start an App guide

    \u00a9 Aetoskia Internal \u2014 standards

    "},{"location":"01_overview/","title":"Overview","text":"

    The blueprint is a hexagonal (ports & adapters) application with a spec-first web edge and a single composition root. It favors explicit wiring over implicit magic and existing internal libraries over hand-written infrastructure. Start here to build the mental model; the enforceable details live in the reference pages.

    "},{"location":"01_overview/#architecture","title":"\ud83c\udfd7\ufe0f Architecture","text":"
    flowchart LR\n    subgraph EDGE[\"interfaces/ \u2014 HTTP edge\"]\n        OAS[\"openapi.yaml<br/>operationId contract\"]\n        RT[\"<resource>/routes.py<br/>thin handlers\"]\n    end\n\n    subgraph CORE[\"domain/ \u2014 business core\"]\n        MD[\"models\"]\n        PT[\"ports (adapter binding seam)\"]\n        SV[\"services\"]\n    end\n\n    subgraph INFRA[\"infra/ \u2014 adapters\"]\n        RP[\"mongo repos (mongo-ops)\"]\n        AD[\"cache \u00b7 stores \u00b7 llm \u00b7 mail\"]\n        DB[(\"MongoDB\")]\n    end\n\n    CR[\"init.py<br/>composition root\"]\n\n    OAS --> RT\n    RT --> SV\n    SV --> PT\n    SV --> RP\n    PT -. depends on .- RP\n    CR --- RT\n    CR --- SV\n    CR --- RP\n    RP --> DB\n    AD --- CR

    The rule holds at every edge: code in an outer ring may depend on a ring closer to the core, never the reverse. domain/ never imports a web framework; only its ports/ seam reaches into infra/ to bind adapters.

    Legend \u2014 solid arrows are compile-time calls; dotted arrows are the port/adapter binding, performed by the composition root at startup.

    "},{"location":"01_overview/#the-one-way-dependency-rule","title":"\ud83d\udd04 The one-way dependency rule","text":"Ring May import Never imports interfaces/ domain, framework glue (glue only) business logic, infra directly domain/ its own models + its ports/ seam (which binds infra/libraries) web frameworks, interfaces/ infra/ domain ports, drivers, libraries \u2014 init.py everything (the wiring point) \u2014"},{"location":"01_overview/#core-principles","title":"\ud83e\udded Core principles","text":"
    1. One-way dependencies. interfaces -> domain -> infra is allowed; the reverse is forbidden.
    2. Ports in the domain, adapters in infra. A service depends on a port; the port's factory binds the concrete adapter, and the composition root calls those factories.
    3. One composition root. Nothing constructs its own dependencies. All wiring lives in one module (init.py) exposed as a flat resource registry.
    4. Spec-first. The HTTP contract is declared in openapi.yaml; route handlers are looked up by operationId. There are no decorator routers.
    5. Reuse the libraries. Orchestration, DI, Mongo repositories, ingestion, auth, and docs come from internal libraries \u2014 see the Library Registry.
    6. Explicit state machines. Long-running work moves through explicit, durable statuses and can pause for human input.
    "},{"location":"01_overview/#runtime-processes","title":"\u2699\ufe0f Runtime processes","text":"

    A standard app may run as up to three processes that share the same composition root:

    Process Entry point Responsibility API main.py serve HTTP; start/stop resources via lifespan Worker worker.py poll durable jobs, run pipelines, publish progress Scripts python -m scripts.<name> one-shot operator tasks"},{"location":"01_overview/#read-next","title":"\u27a1\ufe0f Read Next","text":"
    • 02 \u2013 App Components \u00b7 03 \u2013 Start an App
    "},{"location":"02_components/","title":"App Components","text":"

    What ships in every standard app, and how the pieces relate. This is the blueprint's component model \u2014 templates/app/ is a runnable instance of it.

    "},{"location":"02_components/#component-model","title":"\ud83d\uddc2\ufe0f Component model","text":"

    The blueprint has two orthogonal views: runtime flow (who calls whom) and composition-root wiring (who constructs whom). Keeping them separate makes the layering visible instead of hiding it behind a hub.

    "},{"location":"02_components/#runtime-flow","title":"\ud83d\udd00 Runtime flow","text":"

    Who calls whom at request and job time:

    %%{init: {\"flowchart\": {\"nodeSpacing\": 50, \"rankSpacing\": 80}}}%%\nflowchart TB\n    subgraph REQ[\"Request path \u2014 API process\"]\n        direction LR\n        CL([\"Client<br/>operationId\"]) --> RT[\"interfaces/&lt;resource&gt;/routes.py\"]\n        RT --> SVC[\"&lt;resource&gt;_svc\"]\n        SVC --> REPO[\"&lt;resource&gt;_repo\"]\n    end\n\n    subgraph WRK[\"Background path \u2014 worker process\"]\n        direction LR\n        W[\"worker.py\"] --> JSVC[\"job_svc\"]\n        W --> PIPE[\"pipelines/&lt;family&gt;\"]\n        PIPE --> ISVC[\"item_svc\"]\n        JSVC --> JREPO[\"job_repo\"]\n        ISVC --> IREPO[\"item_repo\"]\n    end\n\n    subgraph INFRA[\"infra/ \u2014 adapters\"]\n        MONGO[(\"MongoDB / mongo_ops\")]\n    end\n\n    REPO --> MONGO\n    JREPO --> MONGO\n    IREPO --> MONGO

    Legend \u2014 solid arrows are runtime calls. Nothing is self-constructed.

    "},{"location":"02_components/#composition-root-wiring","title":"\ud83e\uddf5 Composition-root wiring","text":"

    Who constructs what at startup:

    %%{init: {\"flowchart\": {\"nodeSpacing\": 50, \"rankSpacing\": 80}}}%%\nflowchart TB\n    INIT[\"init.py \u2014 composition root\"]\n    SETUP[\"infra/db/setup.py\"]\n    FACT[\"domain/*/ports/*<br/>factory seams\"]\n    REPOS[\"repos<br/>infra/db/repos/mongo.py\"]\n    SVCES[\"services<br/>CrudsServiceAdaptor\"]\n    STATE[\"app.state.db_resources\"]\n    HEXA[\"hexa.build\"]\n    RT[\"routes.py\"]\n    WK[\"worker.py\"]\n\n    INIT --> SETUP\n    INIT --> FACT\n    FACT --> REPOS\n    FACT --> SVCES\n    REPOS --> SVCES\n    HEXA -.-> SVCES\n    INIT --> STATE\n    STATE --> RT\n    INIT --> WK

    Legend \u2014 init.py is the only place that imports concrete adapters. The ports/ factory seams bind infra; the API reads resources from app.state.db_resources, the worker calls init() directly.

    "},{"location":"02_components/#component-roles","title":"\ud83d\udce6 Component roles","text":""},{"location":"02_components/#1-interfaces-the-edge","title":"1. interfaces/ \u2014 the edge","text":"

    Thin handlers bound to openapi.yaml operationIds. They parse the request, call a service, and shape the response. No business rules, no I/O.

    • interfaces/openapi.py re-exports every route module so the OpenAPI-first app can resolve handlers.
    • Routes may mount the cache decorator on read endpoints.
    "},{"location":"02_components/#2-domain-the-core","title":"2. domain/ \u2014 the core","text":"

    Models, ports, and services (use cases). No framework imports. The ports/ package is the one seam allowed to reach into infra/: each port module declares the document shape and a factory that binds the adapter.

    • <aggregate>/models.py \u2014 dataclasses, enums, document shapes.
    • <aggregate>/ports/db.py \u2014 document model + create_<aggregate>_repo().
    • <aggregate>/ports/service.py \u2014 service + get_<aggregate>_service(repo).
    • Services compose ports and enforce the business rules; the port factories bind the implementations, and the composition root calls them.
    "},{"location":"02_components/#3-infra-the-adapters","title":"3. infra/ \u2014 the adapters","text":"

    Concrete implementations of the domain ports plus cross-cutting infrastructure:

    • db/ \u2014 mongo-ops repositories and the connection lifecycle.
    • adapters/ \u2014 cache store, progress bus, storages, fetchers (library-backed).
    • Anything else the domain needs, implemented against its ports.
    "},{"location":"02_components/#4-pipelines-data-driven-families-optional","title":"4. pipelines/ \u2014 data-driven families (optional)","text":"

    Extraction and enrichment families, each a deterministic step chain (abc.py / impl.py / pipeline.yaml / resources/). Roots are registered in the pattern registry and driven either by a worker job or a CLI.

    "},{"location":"02_components/#5-workerpy-the-job-worker-optional","title":"5. worker.py \u2014 the job worker (optional)","text":"

    A separate process that polls durable job collections, runs pipeline roots, and publishes progress to the progress bus. It shares the same composition root as the API.

    "},{"location":"02_components/#6-initpy-the-composition-root","title":"6. init.py \u2014 the composition root","text":"

    The only place anything is constructed: leaf repositories \u2192 dependent repositories \u2192 services \u2192 adapters. Exposes get_svc overloads and starts / stops resources on the app lifespan.

    "},{"location":"02_components/#how-the-request-flows","title":"\ud83d\udd17 How the request flows","text":"
    sequenceDiagram\n    participant C as Client\n    participant R as route (interfaces)\n    participant S as service (port factory / adapter)\n    participant P as repo (infra)\n    participant DB as MongoDB\n\n    C->>R: POST /items (operationId)\n    R->>S: svc.create(payload)\n    S->>P: repo.insert(doc)\n    P->>DB: insert\n    DB-->>P: ack\n    P-->>S: doc\n    S-->>R: result\n    R-->>C: 200 JSON
    "},{"location":"02_components/#related","title":"Related","text":"
    • 01 \u2013 Overview \u00b7 03 \u2013 Start an App \u00b7 04 \u2013 Testing & Quality
    "},{"location":"03_start_an_app/","title":"\ud83d\ude80 Start an App","text":"

    This is the entry point for building a new application from the blueprint. The goal is one deterministic pass: you supply only the two axes, and the agent does the rest by reading the standards MCP, importing Tier A libraries, and copying Tier B template components.

    Doc model: this page is the human entry point. The deterministic, machine-facing checklist lives in the reference page Build Recipe, served as docs://modules/build_recipe.

    "},{"location":"03_start_an_app/#what-the-agent-needs-from-you","title":"\ud83e\uddfe What the agent needs from you","text":"

    Gather these before starting \u2014 the start_app MCP prompt asks for them:

    1. App name + one-line purpose.
    2. Axis 1 \u2014 resources. Each resource, its fields, and relationships. Paste openapi.yaml if you already have it.
    3. Axis 2 \u2014 pipelines. Only if an input needs a multi-step transformation: the families and their input formats (or \"none\").
    4. Auth needed now? Default no. Auth is deferred (py-jwt primitives only), and an authless app is just a spec with no security keys \u2014 see Spec-First Routing \u2192 Authless apps.
    5. Integrations. Mongo, ingestion formats, email, LLM provider.

    If you can state axes 1 and 2, the rest is mechanical.

    "},{"location":"03_start_an_app/#how-to-start","title":"\u25b6\ufe0f How to start","text":"

    From an MCP client connected to the standards server:

    1. Invoke the intake prompt (or start_app with no arguments) to get the intake questions.
    2. Answer them, then invoke build (build(app_name=..., resources=..., pipelines=..., auth=...)), or use start_app to intake-and-build in one call.
    3. The prompt hands off to docs://modules/build_recipe; the agent scaffolds with get_app_template() and pulls exact files with get_app_component(kind, resource=..., family=...), authoring only the app-specific parts.
    4. To validate the standard without touching a real app, invoke trial (trial(app_name=..., build_path=...)) to build into a scratch directory, prove it builds, and report findings.

    Manual alternative \u2014 copy the skeleton and follow the reference recipe:

    cp -r <docs>/standards/src/templates/app apps/<your-app>\n
    "},{"location":"03_start_an_app/#reference","title":"\ud83d\udcda Reference","text":"
    • Build Recipe \u2014 the deterministic checklist
    • Genericity Matrix \u2014 Tier A / B / C
    • Library Registry \u2014 the Tier A catalog
    • App Components \u2014 the component model
    "},{"location":"03_start_an_app/#related","title":"Related","text":"
    • 01 \u2013 Overview \u00b7 02 \u2013 App Components \u00b7 04 \u2013 Testing & Quality
    "},{"location":"05_mcp_setup/","title":"\ud83d\udd0c MCP Setup","text":"

    Every repository ships its documentation as a Model Context Protocol (MCP) server, and the standards registry server ties them together. The docs portal runs each one as a FastMCP streamable-http app bound to 0.0.0.0:<port>, exposing the endpoint at /mcp (see docs/main.py and docs/config.yml).

    Connect your agent to the standards server first: it answers find_library, list_repos, and the start_app prompt, so the agent reaches for an internal library instead of reimplementing one (see the Library Registry).

    "},{"location":"05_mcp_setup/#run-the-servers-locally","title":"\u25b6\ufe0f Run the servers locally","text":"

    From the docs checkout:

    .venv\\Scripts\\python.exe main.py                      # every server\n.venv\\Scripts\\python.exe main.py --servers standards   # just the registry\n

    :8000 is the health endpoint (GET /healthz), not an MCP server.

    "},{"location":"05_mcp_setup/#servers","title":"\ud83e\udded Servers","text":"Slug MCP server Port localhost mcp.aetoskia.com standards standards 8009 http://localhost:8009/mcp https://mcp.aetoskia.com/standards/mcp doc-forge docforge 8001 http://localhost:8001/mcp https://mcp.aetoskia.com/doc-forge/mcp mail-intake mail_intake 8002 http://localhost:8002/mcp https://mcp.aetoskia.com/mail-intake/mcp omniread omniread 8003 http://localhost:8003/mcp https://mcp.aetoskia.com/omniread/mcp openapi-first openapi_first 8004 http://localhost:8004/mcp https://mcp.aetoskia.com/openapi-first/mcp py-jwt jwtlib 8005 http://localhost:8005/mcp https://mcp.aetoskia.com/py-jwt/mcp dagpipe dagpipe 8006 http://localhost:8006/mcp https://mcp.aetoskia.com/dagpipe/mcp mongo-ops mongo_ops 8007 http://localhost:8007/mcp https://mcp.aetoskia.com/mongo-ops/mcp hexa hexa 8008 http://localhost:8008/mcp https://mcp.aetoskia.com/hexa/mcp doc-weaver doc-weaver 8010 http://localhost:8010/mcp https://mcp.aetoskia.com/doc-weaver/mcp

    The hosted endpoints are served over HTTPS at https://mcp.aetoskia.com/<slug>/mcp. The tabs below are linked (content.tabs.link): switching one switches all of them. Every snippet registers all ten servers, so a single paste is enough.

    "},{"location":"05_mcp_setup/#claude-code","title":"\ud83e\udd16 Claude Code","text":"

    Project-scoped .mcp.json at the repo root. The type field is required \u2014 an entry with a url but no type is read as a stdio server and skipped.

    localhostmcp.aetoskia.com
    {\n  \"mcpServers\": {\n    \"standards\": { \"type\": \"http\", \"url\": \"http://localhost:8009/mcp\" },\n    \"doc-forge\": { \"type\": \"http\", \"url\": \"http://localhost:8001/mcp\" },\n    \"mail-intake\": { \"type\": \"http\", \"url\": \"http://localhost:8002/mcp\" },\n    \"omniread\": { \"type\": \"http\", \"url\": \"http://localhost:8003/mcp\" },\n    \"openapi-first\": { \"type\": \"http\", \"url\": \"http://localhost:8004/mcp\" },\n    \"py-jwt\": { \"type\": \"http\", \"url\": \"http://localhost:8005/mcp\" },\n    \"dagpipe\": { \"type\": \"http\", \"url\": \"http://localhost:8006/mcp\" },\n    \"mongo-ops\": { \"type\": \"http\", \"url\": \"http://localhost:8007/mcp\" },\n    \"hexa\": { \"type\": \"http\", \"url\": \"http://localhost:8008/mcp\" },\n    \"doc-weaver\": { \"type\": \"http\", \"url\": \"http://localhost:8010/mcp\" }\n  }\n}\n
    {\n  \"mcpServers\": {\n    \"standards\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/standards/mcp\" },\n    \"doc-forge\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/doc-forge/mcp\" },\n    \"mail-intake\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/mail-intake/mcp\" },\n    \"omniread\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/omniread/mcp\" },\n    \"openapi-first\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/openapi-first/mcp\" },\n    \"py-jwt\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/py-jwt/mcp\" },\n    \"dagpipe\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/dagpipe/mcp\" },\n    \"mongo-ops\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/mongo-ops/mcp\" },\n    \"hexa\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/hexa/mcp\" },\n    \"doc-weaver\": { \"type\": \"http\", \"url\": \"https://mcp.aetoskia.com/doc-weaver/mcp\" }\n  }\n}\n

    Or add them with the CLI: claude mcp add --transport http standards http://localhost:8009/mcp.

    "},{"location":"05_mcp_setup/#codex","title":"\ud83e\udd16 Codex","text":"

    ~/.codex/config.toml (or a project-scoped .codex/config.toml).

    localhostmcp.aetoskia.com
    [mcp_servers.standards]\nurl = \"http://localhost:8009/mcp\"\n\n[mcp_servers.doc-forge]\nurl = \"http://localhost:8001/mcp\"\n\n[mcp_servers.mail-intake]\nurl = \"http://localhost:8002/mcp\"\n\n[mcp_servers.omniread]\nurl = \"http://localhost:8003/mcp\"\n\n[mcp_servers.openapi-first]\nurl = \"http://localhost:8004/mcp\"\n\n[mcp_servers.py-jwt]\nurl = \"http://localhost:8005/mcp\"\n\n[mcp_servers.dagpipe]\nurl = \"http://localhost:8006/mcp\"\n\n[mcp_servers.mongo-ops]\nurl = \"http://localhost:8007/mcp\"\n\n[mcp_servers.hexa]\nurl = \"http://localhost:8008/mcp\"\n\n[mcp_servers.doc-weaver]\nurl = \"http://localhost:8010/mcp\"\n
    [mcp_servers.standards]\nurl = \"https://mcp.aetoskia.com/standards/mcp\"\n\n[mcp_servers.doc-forge]\nurl = \"https://mcp.aetoskia.com/doc-forge/mcp\"\n\n[mcp_servers.mail-intake]\nurl = \"https://mcp.aetoskia.com/mail-intake/mcp\"\n\n[mcp_servers.omniread]\nurl = \"https://mcp.aetoskia.com/omniread/mcp\"\n\n[mcp_servers.openapi-first]\nurl = \"https://mcp.aetoskia.com/openapi-first/mcp\"\n\n[mcp_servers.py-jwt]\nurl = \"https://mcp.aetoskia.com/py-jwt/mcp\"\n\n[mcp_servers.dagpipe]\nurl = \"https://mcp.aetoskia.com/dagpipe/mcp\"\n\n[mcp_servers.mongo-ops]\nurl = \"https://mcp.aetoskia.com/mongo-ops/mcp\"\n\n[mcp_servers.hexa]\nurl = \"https://mcp.aetoskia.com/hexa/mcp\"\n\n[mcp_servers.doc-weaver]\nurl = \"https://mcp.aetoskia.com/doc-weaver/mcp\"\n

    Or add them with the CLI: codex mcp add standards --url http://localhost:8009/mcp.

    "},{"location":"05_mcp_setup/#antigravity","title":"\ud83e\udd16 Antigravity","text":"

    ~/.gemini/antigravity/mcp_config.json (IDE) or ~/.gemini/config/mcp_config.json (CLI). Antigravity uses serverUrl, not url, for HTTP endpoints.

    localhostmcp.aetoskia.com
    {\n  \"mcpServers\": {\n    \"standards\": { \"serverUrl\": \"http://localhost:8009/mcp\" },\n    \"doc-forge\": { \"serverUrl\": \"http://localhost:8001/mcp\" },\n    \"mail-intake\": { \"serverUrl\": \"http://localhost:8002/mcp\" },\n    \"omniread\": { \"serverUrl\": \"http://localhost:8003/mcp\" },\n    \"openapi-first\": { \"serverUrl\": \"http://localhost:8004/mcp\" },\n    \"py-jwt\": { \"serverUrl\": \"http://localhost:8005/mcp\" },\n    \"dagpipe\": { \"serverUrl\": \"http://localhost:8006/mcp\" },\n    \"mongo-ops\": { \"serverUrl\": \"http://localhost:8007/mcp\" },\n    \"hexa\": { \"serverUrl\": \"http://localhost:8008/mcp\" },\n    \"doc-weaver\": { \"serverUrl\": \"http://localhost:8010/mcp\" }\n  }\n}\n
    {\n  \"mcpServers\": {\n    \"standards\": { \"serverUrl\": \"https://mcp.aetoskia.com/standards/mcp\" },\n    \"doc-forge\": { \"serverUrl\": \"https://mcp.aetoskia.com/doc-forge/mcp\" },\n    \"mail-intake\": { \"serverUrl\": \"https://mcp.aetoskia.com/mail-intake/mcp\" },\n    \"omniread\": { \"serverUrl\": \"https://mcp.aetoskia.com/omniread/mcp\" },\n    \"openapi-first\": { \"serverUrl\": \"https://mcp.aetoskia.com/openapi-first/mcp\" },\n    \"py-jwt\": { \"serverUrl\": \"https://mcp.aetoskia.com/py-jwt/mcp\" },\n    \"dagpipe\": { \"serverUrl\": \"https://mcp.aetoskia.com/dagpipe/mcp\" },\n    \"mongo-ops\": { \"serverUrl\": \"https://mcp.aetoskia.com/mongo-ops/mcp\" },\n    \"hexa\": { \"serverUrl\": \"https://mcp.aetoskia.com/hexa/mcp\" },\n    \"doc-weaver\": { \"serverUrl\": \"https://mcp.aetoskia.com/doc-weaver/mcp\" }\n  }\n}\n
    "},{"location":"05_mcp_setup/#opencode","title":"\ud83e\udd16 OpenCode","text":"

    opencode.json (project) or ~/.config/opencode/opencode.json (global).

    localhostmcp.aetoskia.com
    {\n  \"$schema\": \"https://opencode.ai/config.json\",\n  \"mcp\": {\n    \"standards\": { \"type\": \"remote\", \"url\": \"http://localhost:8009/mcp\", \"enabled\": true },\n    \"doc-forge\": { \"type\": \"remote\", \"url\": \"http://localhost:8001/mcp\", \"enabled\": true },\n    \"mail-intake\": { \"type\": \"remote\", \"url\": \"http://localhost:8002/mcp\", \"enabled\": true },\n    \"omniread\": { \"type\": \"remote\", \"url\": \"http://localhost:8003/mcp\", \"enabled\": true },\n    \"openapi-first\": { \"type\": \"remote\", \"url\": \"http://localhost:8004/mcp\", \"enabled\": true },\n    \"py-jwt\": { \"type\": \"remote\", \"url\": \"http://localhost:8005/mcp\", \"enabled\": true },\n    \"dagpipe\": { \"type\": \"remote\", \"url\": \"http://localhost:8006/mcp\", \"enabled\": true },\n    \"mongo-ops\": { \"type\": \"remote\", \"url\": \"http://localhost:8007/mcp\", \"enabled\": true },\n    \"hexa\": { \"type\": \"remote\", \"url\": \"http://localhost:8008/mcp\", \"enabled\": true },\n    \"doc-weaver\": { \"type\": \"remote\", \"url\": \"http://localhost:8010/mcp\", \"enabled\": true }\n  }\n}\n
    {\n  \"$schema\": \"https://opencode.ai/config.json\",\n  \"mcp\": {\n    \"standards\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/standards/mcp\", \"enabled\": true },\n    \"doc-forge\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/doc-forge/mcp\", \"enabled\": true },\n    \"mail-intake\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/mail-intake/mcp\", \"enabled\": true },\n    \"omniread\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/omniread/mcp\", \"enabled\": true },\n    \"openapi-first\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/openapi-first/mcp\", \"enabled\": true },\n    \"py-jwt\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/py-jwt/mcp\", \"enabled\": true },\n    \"dagpipe\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/dagpipe/mcp\", \"enabled\": true },\n    \"mongo-ops\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/mongo-ops/mcp\", \"enabled\": true },\n    \"hexa\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/hexa/mcp\", \"enabled\": true },\n    \"doc-weaver\": { \"type\": \"remote\", \"url\": \"https://mcp.aetoskia.com/doc-weaver/mcp\", \"enabled\": true }\n  }\n}\n

    Or add them with the CLI: opencode mcp add standards --url http://localhost:8009/mcp --global.

    "},{"location":"05_mcp_setup/#pycharm-junie-ai-assistant","title":"\ud83e\udd16 PyCharm (Junie / AI Assistant)","text":"

    ~/.junie/mcp/mcp.json (user scope) or .junie/mcp/mcp.json (project scope). The same config is reachable from Settings | Tools | MCP Server \u2192 Manual Client Configuration \u2192 Copy HTTP Stream Config.

    localhostmcp.aetoskia.com
    {\n  \"mcpServers\": {\n    \"standards\": { \"url\": \"http://localhost:8009/mcp\" },\n    \"doc-forge\": { \"url\": \"http://localhost:8001/mcp\" },\n    \"mail-intake\": { \"url\": \"http://localhost:8002/mcp\" },\n    \"omniread\": { \"url\": \"http://localhost:8003/mcp\" },\n    \"openapi-first\": { \"url\": \"http://localhost:8004/mcp\" },\n    \"py-jwt\": { \"url\": \"http://localhost:8005/mcp\" },\n    \"dagpipe\": { \"url\": \"http://localhost:8006/mcp\" },\n    \"mongo-ops\": { \"url\": \"http://localhost:8007/mcp\" },\n    \"hexa\": { \"url\": \"http://localhost:8008/mcp\" },\n    \"doc-weaver\": { \"url\": \"http://localhost:8010/mcp\" }\n  }\n}\n
    {\n  \"mcpServers\": {\n    \"standards\": { \"url\": \"https://mcp.aetoskia.com/standards/mcp\" },\n    \"doc-forge\": { \"url\": \"https://mcp.aetoskia.com/doc-forge/mcp\" },\n    \"mail-intake\": { \"url\": \"https://mcp.aetoskia.com/mail-intake/mcp\" },\n    \"omniread\": { \"url\": \"https://mcp.aetoskia.com/omniread/mcp\" },\n    \"openapi-first\": { \"url\": \"https://mcp.aetoskia.com/openapi-first/mcp\" },\n    \"py-jwt\": { \"url\": \"https://mcp.aetoskia.com/py-jwt/mcp\" },\n    \"dagpipe\": { \"url\": \"https://mcp.aetoskia.com/dagpipe/mcp\" },\n    \"mongo-ops\": { \"url\": \"https://mcp.aetoskia.com/mongo-ops/mcp\" },\n    \"hexa\": { \"url\": \"https://mcp.aetoskia.com/hexa/mcp\" },\n    \"doc-weaver\": { \"url\": \"https://mcp.aetoskia.com/doc-weaver/mcp\" }\n  }\n}\n
    "},{"location":"05_mcp_setup/#verify","title":"\u2705 Verify","text":"
    • Health check: curl http://localhost:8000/healthz \u2192 ok.
    • Claude Code: claude mcp list \u2192 each server \u2026 \u2713 Connected.
    • Codex: codex mcp list \u2192 each server \u2026 http.
    • OpenCode: opencode mcp list \u2192 each server \u2026 connected.
    • In-session: run /mcp to list the connected servers and their tools.
    "},{"location":"05_mcp_setup/#reference","title":"\ud83d\udcda Reference","text":"
    • Library Registry \u2014 the catalog each server mirrors, and where find_library resolves
    • Start an App \u2014 connect standards, then invoke start_app
    • App Components \u2014 the component model
    "},{"location":"05_mcp_setup/#related","title":"Related","text":"
    • Start an App \u00b7 Testing & Quality \u00b7 Library Registry
    "},{"location":"04_development/01_testing/","title":"Testing & Quality Gates","text":"

    Two suites run under pytest with asyncio auto mode: integration (the HTTP edge against fakes) and unit (pure domain and pipeline logic). Finish a blueprint app only when every gate below passes.

    "},{"location":"04_development/01_testing/#layout","title":"\ud83d\uddc2\ufe0f Layout","text":"
    tests/\n    integration/     # TestClient(app) + mocked resources\n    unit/            # models, converters, pipeline stages/roots\n    conftest.py      # fixtures\n
    "},{"location":"04_development/01_testing/#integration-tests","title":"\ud83d\ude80 Integration tests","text":"
    • Build the app with TestClient.
    • Replace app.state.db_resources with fake repositories/services so no database is required.
    • Patch the auth introspection call (httpx.AsyncClient.post) to return a canned identity.
    • Assert status codes and bodies for list/get/create/update/delete, plus 400, 404, 204, and the streaming endpoint's fallback.
    client = TestClient(app)\napp.state.db_resources = {\"item_svc\": FakeItemService(), ...}\n\ndef test_create_item():\n    r = client.post(\"/items\", json={\"name\": \"x\"})\n    assert r.status_code == 200\n
    "},{"location":"04_development/01_testing/#unit-tests","title":"\ud83e\uddea Unit tests","text":"
    • Domain models and converters: pure, no I/O.
    • Pipeline stages: feed a fixture state, assert the transformed state.
    • Assembled pipeline roots: fixture parity \u2014 replay a stored fixture input and compare against a golden output file.
    "},{"location":"04_development/01_testing/#config-consistency-tests","title":"\ud83d\udd10 Config-consistency tests","text":"

    For rule-driven pipelines, add a test that cross-references rules against the declared pattern registry: every flag emitted must be defined; every defined flag must be reachable. This catches drift without running the pipeline.

    "},{"location":"04_development/01_testing/#quality-gates","title":"\u2705 Quality gates","text":"

    A definition of done for any standard app:

    • python -c \"import main\" succeeds.
    • pytest passes.
    • The app serves the spec's operations; the worker drains its queue.
    • No domain module imports a web framework.
    • No infrastructure was reimplemented that a library already provides.
    "},{"location":"04_development/01_testing/#conventions","title":"\ud83d\udca1 Conventions","text":"
    • asyncio_mode = \"auto\"; no manual event loops.
    • Fixtures are checked into the repo (inputs + golden outputs).
    • Tests skip (not fail) when a required fixture is absent.
    • Do not mock the domain; mock only the infrastructure edge.
    "},{"location":"04_development/01_testing/#related","title":"Related","text":"
    • 02 \u2013 App Components \u00b7 03 \u2013 Start an App \u00b7 Overview
    "},{"location":"04_development/02_releasing/","title":"Releasing & Versioning","text":"

    How to cut a release of any Aetos repository. The rule lives in the reference page Versioning & Changelog; this is the runbook you follow.

    Every repository is one of two Drone shapes \u2014 a PyPI package or a Docker deployment (Drone Pipelines). Both release the same way: the version bump and changelog promotion go in the merge request, and the tag is created on the merged commit.

    "},{"location":"04_development/02_releasing/#before-you-start","title":"\ud83e\uddfe Before you start","text":"
    • You have an open merge request holding the change, and main is green (the Drone quality gate passed on the last run).
    • You know whether this is a breaking, feature, or fix release.
    • The version file exists:
    • package \u2192 version in pyproject.toml
    • service \u2192 VERSION at the repo root
    "},{"location":"04_development/02_releasing/#pick-the-next-version","title":"\ud83d\udea6 Pick the next version","text":"

    The version file and the tag must be identical. For 0.y.z, 0.y is the major line (see the reference page); once at 1.0.0, normal SemVer applies.

    Change 0.y.z \u2192 1.0.0+ \u2192 Breaking 0.(y+1).0 (x+1).0.0 Feature 0.y.(z+1) x.(y+1).0 Fix 0.y.(z+1) x.y.(z+1)"},{"location":"04_development/02_releasing/#release-in-the-mr","title":"\ud83c\udf3f Release in the MR","text":"

    The version is known while the change is still a merge request, so the bump rides along with it. Do all edits in the MR:

    • Reconcile the changelog first. [Unreleased] is a draft, not the source of truth: diff the change against the last tag (git log <last-tag>..HEAD, git diff --stat <last-tag>..HEAD) and add an entry for every user-facing change that is missing. Always show the proposed additions to the user and wait for approval before promoting \u2014 ask rather than guess when an entry is ambiguous.

    • Promote the changelog in CHANGELOG.md: move the (now reconciled) [Unreleased] content under a new ## [x.y.z] - YYYY-MM-DD heading, leave a fresh empty [Unreleased] on top, and add the compare links \u2014 naming the version/tag, never a commit id:

    [Unreleased]: https://git.aetoskia.com/aetos/<repo>/compare/x.y.z...HEAD\n[x.y.z]: https://git.aetoskia.com/aetos/<repo>/compare/x.y.(z-1)...x.y.z\n
    • Bump the version file to the intended release version: version = \"x.y.z\" in pyproject.toml (packages) or the VERSION file (services).
    "},{"location":"04_development/02_releasing/#tag-the-merged-commit","title":"\ud83c\udff7\ufe0f Tag the merged commit","text":"
    1. Merge or squash the MR into main.
    2. Create the tag on the resulting commit: git tag x.y.z (lightweight).
    3. Push the tag (git push origin x.y.z) \u2014 Drone builds the release.
    "},{"location":"04_development/02_releasing/#agent-assisted-tagging","title":"\ud83e\udd16 Agent-assisted tagging","text":"

    The agent does not author or merge the MR and never tags before the merge. After you confirm the MR is merged/squashed and tell it to proceed, the agent:

    1. Waits for that explicit go-ahead.
    2. Finds the commit that introduced the bump:
    3. package: git log -S 'version = \"x.y.z\"' -n 1 --format='%H %s' -- pyproject.toml
    4. service: git log -S 'x.y.z' -n 1 --format='%H %s' -- VERSION
    5. Verifies that commit's version file equals x.y.z, then tags only that commit: git tag x.y.z <sha>.
    6. Does not push \u2014 it asks you to run git push origin x.y.z.
    "},{"location":"04_development/02_releasing/#what-drone-does","title":"\ud83e\udd16 What Drone does","text":"
    • Type A (package): asserts tag == pyproject version, then skips if that version already exists on the index, runs the quality gate, builds, and uploads the wheel + sdist.
    • Type B (service): asserts tag == VERSION, resolves the tag, skips if the image already exists, runs the quality gate, builds, pushes, and restarts the container.

    If the guard fails, nothing is published \u2014 fix the version file, amend the commit, and move the tag only if it was never pushed.

    "},{"location":"04_development/02_releasing/#backfill-recovery","title":"\ud83d\udedf Backfill / recovery","text":"

    If an older tag never published (a past version-file mismatch, an index outage):

    • Package: run the backfill-pypi-from-tags pipeline (custom event). It checks out every tag, verifies tag == pyproject version at that commit, and uploads the ones missing from the index. Already-fixed history is never rewritten.
    • Service: rebuild the image for the missing tag with a fresh commit and a new patch version; do not move a published tag.
    "},{"location":"04_development/02_releasing/#if-a-release-is-wrong","title":"\ud83d\udd01 If a release is wrong","text":"
    • Never reuse or force-move a pushed tag.
    • Fix forward: bump to the next patch, promote the changelog, tag again.
    "},{"location":"04_development/02_releasing/#related","title":"Related","text":"
    • Testing & Quality Gates \u00b7 Versioning & Changelog \u00b7 Drone Pipelines
    "}]} \ No newline at end of file diff --git a/standards/wiki/sitemap.xml.gz b/standards/wiki/sitemap.xml.gz index 2bca4d8..43b6693 100644 Binary files a/standards/wiki/sitemap.xml.gz and b/standards/wiki/sitemap.xml.gz differ