Sujahath Siddeek
All work

TeardownNov 2026Solo project

Team Ops MCP

An MCP server that lets AI coding assistants search incidents and work with GitHub, behind authentication, roles and a full audit log.

team-ops-mcp, connected as alice (viewer)
Replayed from the README demo: real prompts in Claude Code, connected as a viewer.
more model context from PR listings than from incident search
12×
tests, plus an end-to-end smoke test in CI
28
roles, checked inside every tool so denials are audited
3

Call a tool as someone else

Pick a user and a tool. The server checks the token, then the role, and writes every call to the audit log, denied ones included. Responses and latencies are the ones recorded in the README.

Connect as
Call

Response

Pick a user and a tool, then send the request.

tool_calls, newest first
idusertoolstatusmsarguments, as stored
No calls yet. Denied calls are logged too.

Latencies are the ones recorded in the README demo; a dash means it wasn't recorded.

The problem

Giving AI assistants access to internal tools is easy. Doing it safely needs identity, least privilege and a record of every call.

How I built it

Tools over Streamable HTTP: incident and runbook search (Postgres full-text search with a weighted tsvector and a GIN index), open PRs, issue summaries, and creating issues.

Random 256-bit Bearer tokens, stored only as SHA-256 hashes. Roles are viewer, editor and admin, checked inside each tool so that denials are audited too.

Every call is logged to Postgres with secrets redacted, its latency and an estimated token count. An admin-only /usage endpoint summarises it.

Pure ASGI auth middleware, because Starlette's BaseHTTPMiddleware buffers responses and breaks streaming. Full-text search instead of a vector database, because incident lookups are dominated by exact terms like error codes.

What happened

  • Tested with real prompts in Claude Code: incident search, GitHub reads, and a write correctly denied for a viewer.
  • The token estimate showed that the PR-listing tool adds about 12 times more context than incident search, which shows where to trim payloads.
  • Agent-security finding: after the server denied create_issue, the assistant offered to create the issue with the developer's own gh CLI. Server-side RBAC is necessary but not sufficient.
  • 28 tests plus an end-to-end smoke test in GitHub Actions. Runs as a non-root container.

Architecture

AI clientClaude CodeBearer authSHA-256 lookupMCP toolsauditedRBACrole checkGitHub APIIncidentsPostgres FTSAudit logsecrets redacted/usageadmin onlyevery call
  • Python
  • MCP
  • PostgreSQL
  • Docker
  • RBAC
  • GitHub Actions
  • pytest

Next teardown

Battery energy platform

Production work at Blue Brand