OpsBridge MCP
README.md
# OpsBridge MCP — Multi-System Agent Connector & Eval Suite
An open-source Model Context Protocol (MCP) server that gives Claude scoped, recoverable tools across GitHub issues, Notion docs, and MongoDB queries, paired with a 60-case eval suite that exercises every tool against mocked backends.
## What it does
- Exposes scoped MCP tools for three systems: GitHub issues, Notion documents, and MongoDB queries
- Read-only by default: MongoDB access is limited to allowlisted collections, code-execution operators (`$where`, `$function`, `$accumulator`) are rejected, and result limits are capped by config
- Descriptive tool schemas and actionable error hints: every failure returns a machine-readable code plus a hint the agent can act on, so it can fix its own call and retry
- 60-case eval suite (`npm run eval`) that runs the real tool handlers against mocked backends and checks results, error codes, and recovery hints before any change ships
## Tools
| Tool | Scope | What it does |
| --- | --- | --- |
| `github_list_issues` | `githubIssues` | List repo issues, filtered by state and labels |
| `github_get_issue` | `githubIssues` | Read one issue by number |
| `notion_search` | `notionDocs` | Search Notion pages shared with the integration |
| `notion_get_page` | `notionDocs` | Read one page as markdown |
| `mongo_find` | `mongoQuery` | Read-only find against an allowlisted collection |
## Tech stack
TypeScript · Claude Agent SDK / MCP protocol · MongoDB · AWS · Zod
## Setup
```bash
npm install
npm run build
```
Set the credentials for the systems you want (any tool without credentials fails with a recoverable `MISSING_CREDENTIALS` error and a hint):
```bash
export GITHUB_TOKEN=... # fine-grained PAT, Issues read
export GITHUB_REPO=owner/name
export NOTION_TOKEN=... # internal integration token
export MONGODB_URI=... # read-only user
export MONGODB_DB=mydb
```
Copy `opsbridge.config.example.json` to `opsbridge.config.json` to set scopes: which tool groups are enabled, which MongoDB collections are readable, and the result limit cap.
Run the server (stdio transport, ready for Claude Desktop / Claude Code):
```bash
npm start
```
## Evals
```bash
npm run eval
```
Runs all 60 cases in `evals/cases.json` against the real handlers with mocked GitHub, Notion, and MongoDB clients: happy paths, schema validation, permission scoping, unsafe-filter rejection, and error-recovery hints. Exits non-zero on any failure, so it can gate a release in CI.
## Why
Enterprise APIs are messy. OpsBridge shows that careful tool design, scoped permissions, and eval-driven iteration make agent tool-calling reliable enough for production workflows.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues