Connect an AI app to your brain
Point any app that speaks MCP at https://mcp.repoops.ai/mcp and it can search and read your team's RepoOps brain. The app registers itself, you sign in with your repoops.ai account, pick the team, and approve read access, or write access when you tick the box.
How to
A repoops.ai account on a team. The brain an app reads belongs to a team.
An app that supports remote MCP servers with OAuth: Claude Code, Cursor, VS Code, Codex, Claude.ai or ChatGPT.
- Add the server to your app.
The address is the same everywhere:
https://mcp.repoops.ai/mcp.- Claude Code: run
claude mcp add --transport http repoops https://mcp.repoops.ai/mcp, then type/mcpin a session and choose repoops to sign in. With the RepoOps desktop app installed, the plugin instead connects the app's own server and adds five job skills and the pre-edit hook: run/plugin marketplace add https://repoops.ai/updates/marketplace.json, then/plugin install repoops@repoops. - Cursor: Add to Cursor. The link adds a server that runs the
mcp-remotebridge, which signs in through your browser and a callback on this machine. To add it by hand, put{"mcpServers":{"repoops":{"command":"npx","args":["-y","mcp-remote","https://mcp.repoops.ai/mcp"]}}}in~/.cursor/mcp.json. - VS Code: Add to VS Code, then start the server from the MCP view and sign in when it asks.
- Codex: run
codex mcp add repoops --url https://mcp.repoops.ai/mcp, thencodex mcp login repoops. Or add[mcp_servers.repoops]withurl = "https://mcp.repoops.ai/mcp"to~/.codex/config.toml. - Claude.ai: in Settings, Connectors, add a custom connector named RepoOps with the URL above, then press Connect.
- ChatGPT: turn on developer mode under Settings, Apps and Connectors, Advanced, then create a connector with the URL above and OAuth as its authentication.
- Claude Code: run
- Sign in with repoops.ai.
Your app opens the RepoOps sign-in page in a browser. Press Sign in with repoops.ai and sign in the way you always do: Google, Apple, email, or PromptReports where your team uses it. If you are on more than one team, pick the one whose brain the app should read.
- Approve the access.
The next screen names the app, the team and the address it will send you back to. Read access is always included. Tick Allow brain:write only if the app should propose entries to your brain. Choose your team, or yourself for your own portable brain, then press Approve.
- Ask your app about your brain.
The app now lists the RepoOps tools, such as search_brain, get_brain_file and ask_brain, and calls them as you work.
Use cases
A question in Claude.ai
- Situation
- You are drafting a design in Claude.ai and want the decisions your team already made about the same service.
- You do
- Add the RepoOps connector once, sign in, and approve read access for your team.
- You see
- Claude.ai searches your team's brain and quotes the decision files it read, with no copy and paste.
Writing a lesson back from Claude Code
- Situation
- A fix in Claude Code teaches the team something worth keeping.
- You do
- Connect with the write box ticked, then ask Claude Code to record the lesson.
- You see
- It calls propose_brain_entry. The entry waits in your brain's proposals until a person approves it; nothing is written straight to a brain file.
Expected outcome
Next step: An app that registers itself must use an https address or a callback on this machine (http on localhost or 127.0.0.1). An app with a custom-scheme callback cannot register on its own; use the mcp-remote bridge, as in the Cursor step.
Next step: The sign-in must finish within ten minutes in the browser that started it. Go back to the app and connect again.
Next step: Create a team or accept an invite on repoops.ai, then connect again.
Next step: A sign-in with repoops.ai lasts 30 days, and ends sooner if you left the team or the app sent an old refresh token twice. A device-token sign-in lasts an hour. Sign in again; if the app reports an unknown client, remove the connector and add it again.
Next step: You approved read access only. Connect again and tick Allow brain:write. Each write call also has to carry confirm:true, which your app sends when you ask it to write.
What else to consider
What an app can read
Only the brain of the team you picked, and only the repositories your role in that team can see. Approving the app does not widen either.
Unverified names
An app names itself when it registers, so the consent screen calls the name unverified. Check the address it shows: claude.ai for Claude.ai, chatgpt.com for ChatGPT, and localhost for an app on your machine.
Other ways to sign in
Below the Sign in with repoops.ai button, the page still takes a RepoOps device token, the one the desktop app or the CLI uses. A device token signs in as the team it was made for, and revoking the device on repoops.ai stops the app within a minute.
Search sessions
Two tools search what was said in your team's agent sessions, word for word. search_sessions takes the words to find and returns the turns that hold them, each with its session, agent, person, repository and time, and what the session led to. get_session_turns reads the turns around one hit. Tool inputs and results are left out unless the call sets include_tools: true, and every text is redacted. With session scoring on, score_below (and score_question) keeps only the sessions scored under a bound.
search_sessions { "query": "ECONNREFUSED 127.0.0.1:5432", "repo": "acme/shop", "limit": 5 }
get_session_turns { "session_id": "9f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a5b", "turn": 12, "around": 2 }On this server a search sees only the sessions you may open: your own, the ones a transcript grant opens to you, and the ones your teammates shared at a level that lets you in. A session you may not open is not counted in the totals either. An agent token reads as a member at most, whatever your own role, and a connection with the personal scope reads no team session. A hit here names the commit its turns were captured on; the desktop app's own MCP also names the pull request, the deploy and any production case the session led to. Search is on for this server: repoops.ai set REPOOPS_SESSION_SEARCH=1 on 2026-11-19. On the desktop app's MCP it stays off until you set REPOOPS_SESSION_SEARCH=1 in your machine's RepoOps environment, and until then both tools there answer that search is off.
Hand a session to another agent
get_agent_handoff with a session in place of a caseId hands one session to the next agent: the first and latest request and the last answer, the files it changed, the questions it left open, the approaches it ruled out, the commits and a link to the session. format names the agent that picks it up: claude-code, codex or gemini-cli.
get_agent_handoff { "session": "9f1c2a4e-5b6d-4e7f-8a9b-0c1d2e3f4a5b", "format": "codex" }On this server it hands over only a session you may open, by the same rule as a search, and a session you may not open answers not found. Each handoff is logged on the session, so its author can see who took it. The answer is built from text with secrets masked and code left out, never a tool's output, and every part taken from the session is fenced as untrusted under a note that tells the next agent it is a record of earlier work, not a task list.
The handoff reaches the next agent as the first message of a new session, so the agent reads it as something you typed. That is a known risk of every resume format: the note at the top and the fences are the defense, so read the recap before you ask the agent to act on it.
The tool writes no file. Save its answer, then run repoops handoff --from <file> --to codex in the folder the next agent will work in (see the CLI). It writes a new session into that agent's own session store and prints the line that opens it, such as codex resume <id>. For a session on your own machine, repoops handoff <session> --to codex reads it directly. No existing session is changed. Handoff is off until REPOOPS_SESSION_HANDOFF=1 is set where the handoff is built: in your machine's RepoOps environment for the CLI and the desktop app's MCP, and on repoops.ai for this server, which has not set it yet. Until then both answer that handoff is off.
Ask a teammate
When an agent needs an answer it does not have, ask_teammate asks a person instead of guessing. to names who: user:<email> or member:mem_... for a person, role:<role> for a role, team:<key> for a team, or a list of up to 10. choices offers up to 10 short answers; without them the answer is free text.
ask_teammate { "question": "Which schema should the migration use, A or B?", "to": "team:platform", "choices": ["Schema A", "Schema B"], "wait": 120 }The question goes through your team's PromptCompute connection, which shows it to that person in its inbox, in Slack and by email, and signs the answer like a decision. With wait (true, or up to 300 seconds) the call returns the answer when it comes; otherwise, or when the wait runs out, the answer arrives on the session's next prompt, so the agent does not need to ask again. A question counts as a run in PromptCompute.
The question has its secrets masked before it leaves your machine. An answer is a teammate's own words: the agent gets it masked and fenced as untrusted text, never as an instruction, and it approves nothing, so a change it mentions still waits for its own approval. The question and the answer show on the session's transcript, with a link to the signed answer, and in search_sessions, only for people who may open that session. A session asks at most 5 questions an hour.
It runs on your own machine's server, with its team sign-in; this server does not ask for you. It is off until three switches are on: REPOOPS_ASK_TEAMMATE=1 in your machine's RepoOps environment, the same switch on repoops.ai, and teammate questions at PromptCompute. repoops.ai and PromptCompute have not turned theirs on yet, so for now the tool answers that it is off and no question reaches an inbox, Slack or email.
Score each session
With session scoring on, each session is scored when it ends against four questions (safety, followed the plan, quality, cost) and up to eight your team adds. An owner or admin sets the team's own questions on Agent sessions. Each score below 0.8 comes with a finding that names the turn, so a session that deleted a failing test to pass scores low on safety and says which turn did it.
The scoring runs on your own model key, on your machine, with secrets masked and code bodies withheld first; see what leaves your machine. Scoring is off until REPOOPS_SESSION_SCORING=1 is set in your machine's RepoOps environment, with a model key. Scores reach repoops.ai only once repoops.ai switches scoring on for your team, which it has not done for any team yet, and a teammate sees a score only for a session they may open, in the list and in every count.
search_sessions { "query": "deploy", "score_below": 0.5, "score_question": "safety" }A finding seen in more sessions than the team's threshold becomes a proposed lesson. It waits in the brain's proposed folder, and no agent reads it until a person approves it. Findings are text a model wrote, so every page shows them as untrusted text.
Slack, Linear and Notion in search
Where repoops.ai switches it on for your team, which it has not done for any team yet, an owner or admin picks Slack channels, Linear teams and Notion pages in Team settings, and search_sessions on this server also returns the messages, issues and pages that hold your words, in work_items, each marked by source. A Linear issue lists the sessions whose branch or commit names its key, only the ones you may open.
search_sessions { "query": "why the checkout flag" }
-> work_items: [{ "source": "linear", "title": "ENG-42 Add the checkout flag", "sessions": [{ "session_id": "s-7f3a" }] }]Only members of the team see these results, and an agent reads as a member at most; a token scoped to some repositories gets none. Only the picked sources are read, and removing one deletes what was read from it. Only public Slack channels and public Linear teams can be picked, because every member sees what is read, and a Slack channel made private later is dropped at its next read. RepoOps reads the picked sources again every hour, so a new message is found within the hour. When the hub says your org took a connection back, the next read deletes what was read through it; and a source that has not been read through the hub in the last 7 days drops out of search. Notion has no such flag, so every member sees any picked Notion page: pick only pages the whole team may read. Text is masked before it is stored, and an agent gets each item's title and text inside one untrusted fence, because someone else wrote them. RepoOps keeps no Slack, Linear or Notion token: your org connects each tool in the PromptReports hub and lends it to RepoOps, and each read asks the hub for a short-lived token.
Four questions in one call
Four reads answer a question in the words of the job, so an agent does not have to chain the tools behind them. Each answer is the same one the underlying tools give.
why_did_this_breaktakes a problem id and returns the problem, its cause, the causing session or a line saying none is known, up to five ranked suspects and what was ruled out.before_i_edittakes up to 10 files and returns past incidents on them, the lessons that match and each file's CODEOWNERS owners. It never blocks the edit.is_this_safe_to_mergetakes the changed files and returns a risk of high, medium, low or unknown with the reason per file, the pending deploy, and the promises the pull request satisfies when the CommitOps feed is connected. It never blocks a merge.what_did_my_agents_dotakes up to 31 days and returns spend, sessions and merged pull requests beside the changes, reverts and incidents each agent caused. The two are never added together.
One write goes with them. fix_this takes a case and the approval a person gave in PromptCompute. When the case holds a production incident and this machine has the repository, it builds the fix; otherwise it sends the case to the agent session that caused it. Either way the pull request waits for a person to merge it, and the answer carries a held block to check.
is_this_safe_to_merge { "files": ["lib/pay.mjs"] }
-> { "ok": true, "risk": "high", "why": ["lib/pay.mjs was changed in PR #42 tied to case_7"], "blocks": false }The first three read a repository's history, so they answer from the RepoOps app on your own machine. On repoops.ai, why_did_this_break returns the problem and the link to its case page. Ask on this machine answers the same four questions.
Ask on repoops.ai answers three of them. "Why did this break" reads the case: its sessions, the ranked suspects of its AI diagnosis and what was ruled out. "Is this safe to merge" reads the change risk cards and the pending deploy your desktop app published: high when a production case of the last 90 days named one of the files, otherwise unknown. "What did my agents do" reads the spend and outcome scorecards your desktop app published. Each answer lists under missing what only the desktop reads, such as the commit, the past reverts or the code owners. "Before I edit" stays on the desktop.
On mcp.repoops.ai, pending_deploy_risk answers the deploy waiting on the production branch as your desktop app last published it, and replays any what-if rule over the kept deploy verdicts. causal_blast_radius with files answers the production cases that named each file, and names the live routes, the files usually changed with them and the code edges as missing. Pass repo when the team has several repositories.
get_agent_scorecards returns the problems behind each agent, model, prompt pattern and fixing agent, the cause of each from its postmortem, and how many fixes held for 30 days, as the outcome scorecards show them. A row with fewer than 5 problems, or a rate with fewer than 5 judged fixes, reads not enough data instead of a number. Pass kind, agent or model to narrow it; each kind returns at most 20 rows. Prompt patterns are the first words a person typed, so they come back redacted inside one untrusted block. It reads the summary your desktop app writes once a day. On mcp.repoops.ai it reads the copy your desktop app published to repoops.ai, the one the Scorecards page shows, for the repositories your token can see; pass repo when your team published more than one. Until a desktop app has published one, it answers not measured and says why.
A tool call can carry a W3C traceparent in params._meta, the trace context your agent's OpenTelemetry export already uses. RepoOps keeps it only when it is the strict form: version 00, a 32 hex trace id and a 16 hex parent id that are not all zeros, and 2 hex flags, in lowercase. Any other value is ignored and the call runs as it would without one. On the desktop, the context packet get_pre_edit_context builds keeps the trace, and reading that packet lists the OpenTelemetry sessions the desktop received on the trace the call named. The trace id is the caller's word, so treat a listed session as a lead to check. On repoops.ai, the audit row of an Ask over MCP call records the trace id.
When a write waits for a person
A write that needs a person, such as a key rotation request, a drafted decision, a proposed rule or a fix build, answers with a held block beside its usual fields. The block has the same shape for every tool: an id, a state (waiting, approved, refused, expired or done), the reason in words, the page where a person acts, and the call that checks again.
get_held_write { "id": "queue:ad-0a1b2c3d4e5f" }
-> { "ok": true, "held": { "state": "waiting", "reason": "The draft waits for a person to decide the item.", "poll": { "tool": "get_held_write", "args": { "id": "queue:ad-0a1b2c3d4e5f" } } } }An agent should tell the person where to act and check back now and then, not in a tight loop. The state is what RepoOps's own records show; RepoOps does not read a PromptCompute approval back. No RepoOps write expires yet, so a held write stays waiting until a person acts.
Removing access
Remove the connector in your app. A token already issued stops working within the hour. Leaving the team stops it within a minute and ends the app's 30-day sign-in, and so does revoking the device when you signed in with a device token.