From 38a86560088a76d8f4c72001420397d45944020d Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Mon, 10 Aug 2026 08:25:12 +0000 Subject: [PATCH] Added proper agents config for mcp servers and skills. Added the menu category delete route. Fix: Show blank vouchers in tables Fix: In rare cases, the old settements can stick around. fixed it. --- .agents/mcp_config.json | 31 ++++++++++++++ .agents/rules.md | 30 ++++++++++++++ .agents/skills/angular-signals/SKILL.md | 17 ++++++++ .agents/skills/fastapi-pydantic-v2/SKILL.md | 16 ++++++++ .agents/skills/sqlalchemy-async/SKILL.md | 19 +++++++++ .agents/skills/strict-mypy/SKILL.md | 30 ++++++++++++++ .vscode/launch.json | 4 +- .vscode/settings.json | 2 +- .vscode/tasks.json | 3 ++ Dockerfile | 11 ++--- Makefile | 3 +- README.md | 4 +- ...roles.py => 5cb65066be86_role_includes.py} | 2 +- barker/barker/main.py | 5 +-- barker/barker/routers/menu_category.py | 15 ++++--- barker/barker/routers/voucher/__init__.py | 22 +++++----- barker/barker/routers/voucher/show.py | 12 +++--- bookie/karma.conf.js | 41 ------------------- lint.sh | 10 ++--- 19 files changed, 193 insertions(+), 84 deletions(-) create mode 100644 .agents/mcp_config.json create mode 100644 .agents/rules.md create mode 100644 .agents/skills/angular-signals/SKILL.md create mode 100644 .agents/skills/fastapi-pydantic-v2/SKILL.md create mode 100644 .agents/skills/sqlalchemy-async/SKILL.md create mode 100644 .agents/skills/strict-mypy/SKILL.md rename barker/alembic/versions/{5cb65066be86_inculded_roles.py => 5cb65066be86_role_includes.py} (98%) delete mode 100644 bookie/karma.conf.js 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