Personal project
Enterprise Agentic Assistant
Built an RBAC-aware assistant linking coding-agent MCP updates to manager Q&A: project-scoped MCP server, Neon Postgres state, Qdrant hybrid RAG, and a LangGraph agent with evidence-backed streaming chat and role-scoped dashboards.
- LangGraph
- Hybrid RAG
- Qdrant
- MCP
- FastAPI
- Next.js
The problem
- Project-status reporting runs on manual effort: a Tech Lead knows the state, but management visibility lags behind the work.
- Pointing a chatbot at project docs fails two ways: it hallucinates answers it cannot cite, and it leaks scope by answering beyond what the asker is allowed to see.
- The signal is split in two places: structured state (features, blockers, updates) and unstructured docs, and neither is useful to a manager on its own.
Architecture
- A Tech Lead works normally through a coding agent, which reads context and submits confirmed updates through the project-scoped MCP server (
get_project_context,get_project_updates,manage_project_feature,manage_project_blocker,submit_daily_update). - Structured project state lives in Neon Postgres; documentation is chunked, embedded, and served through hybrid retrieval (Qdrant vectors plus BM25, fused with RRF).
- The manager-facing LangGraph agent combines scoped project tools with retrieval: JWT to short-lived WebSocket ticket for auth, permission scopes derived server-side from the login, cheap fast model for chitchat and the reasoning model with tools for real questions.
- A grading step rewrites weak queries or recovers safely instead of hallucinating, and every answer streams over WebSocket with its project facts and document chunks cited.
- Served as a FastAPI API plus a Next.js 16 dashboard, traced with Langfuse.
The decision I'd defend
- I derived access scope server-side from the login and never let the model supply it.
- A model that can grant itself wider access is a demo, not an internal system: every tool call and retrieval pass runs through the server's project-plus-role filter first.
How I knew it worked
- 351 tests across four Python packages (246 / 63 / 35 / 7), plus ruff, frontend typecheck, lint, and production builds, with CI gates per affected project.
- The loop closes in practice: a coding agent's confirmed MCP update shows up immediately in dashboards and cited chat answers.