diff --git a/.agents/mcp_config.json b/.agents/mcp_config.json new file mode 100644 index 00000000..199f6a62 --- /dev/null +++ b/.agents/mcp_config.json @@ -0,0 +1,31 @@ +{ + "mcpServers": { + "postgres-db": { + "command": "npx", + "args": [ + "-y", + "@modelcontextprotocol/server-postgres", + "${POSTGRES_URL}" + ], + "env": { + "POSTGRES_URL": "${env:SQLALCHEMY_DATABASE_URI}" + } + }, + "filesystem": { + "command": "npx", + "args": [ + "-y", + "@modelcontextprotocol/server-filesystem", + "." + ] + }, + "angular-cli": { + "command": "npx", + "args": [ + "-y", + "@angular/cli", + "mcp" + ] + } + } +} diff --git a/.agents/rules.md b/.agents/rules.md new file mode 100644 index 00000000..c385e322 --- /dev/null +++ b/.agents/rules.md @@ -0,0 +1,30 @@ +# Project Architecture & Guidelines + +## Monorepo Layout +- **Backend**: `./barker` (Python, managed via `uv`) +- **Frontend**: `./bookie` (Angular, managed via `npm`/`ng`) +- **Environment**: Root `.env` file containing shared/database variables. + +--- + +## Execution Rules & Commands + +### Backend (`/barker`) +- **Working Directory**: Always execute backend commands within `./barker` OR pass `--directory barker` to `uv`. +- **Package & Script Management**: + - Use `uv` exclusively. Never run bare `pip` or global `python`. + - Run scripts/tests: `uv run python