r/modelcontextprotocol • • 7d ago

new-release Rebut 0.3.1: an MCP server for second-pass code review in Codex and Claude Code

I built Rebut to send a selected diff and its requirements to a separate reviewer before I merge a patch. The coding host and review provider are configured separately, so I can use Claude Code for implementation and GPT-6.2 Astra for review, or Codex with an Anthropic reviewer.

The MCP exposes review and review_status. The first starts a billable review with a fixed input bundle and request ID. If the connection drops, the second lets the client check that same ID. An unknown outcome retains the budget reservation because the provider may already have processed the request.

It runs locally by default and supports OpenAI Responses and Anthropic Claude APIs. You can use eligible subscription API credits through your linked API organization.

I’d be interested in feedback on the tool contract. When a long-running billable MCP call loses its connection, what should the client show the user?

MIT licensed. Code and setup: https://github.com/abruption/rebut

2 Upvotes

5 comments sorted by

1

u/kantorcodes1 6d ago

On the display question: I would show the request ID and an explicit unknown state, not a failure, with retry blocked until review_status resolves it. Does review_status actually separate "provider finished, response lost" from "provider never got it", or does the client only learn that the outcome is unknown? And does the budget reservation expire on its own at some point, or does it sit there until someone runs the status check?

1

u/CH_CGV 6d ago

Thanks, I agree the client should show the request ID and label an uncertain outcome as unknown.

review_status reads Rebut’s ledger. If Rebut recorded completion before the client disconnected, it can report completed, though it can’t replay the review text. If the ledger says unknown, the status check can’t tell whether the provider finished or never received the request.

The budget reservation doesn’t expire automatically, and checking status doesn’t release it. An unresolved request can still occupy a concurrency slot. While the outcome is uncertain, the safe next step is to check the original ID on the same backend and avoid starting another billable review with a new ID.

1

u/kantorcodes1 6d ago

That ledger limit is the part that matters. If review_status cannot tell finished from never received, and the reservation never expires on its own, an unresolved request holds a slot and the only safe move is checking the same ID again. A second billable call with a new ID is the one thing that has to stay blocked.

That is the exact boundary HOL Guard documents for MCP servers. I help with that project. Would you be up for adding Rebut as a Guard MCP contribution? The first step is one descriptor file, contributions/mcp-servers/mcp.rebut.json, covering the review tool. The first test worth writing is the unknown outcome case: a review call whose result is unknown cannot be followed by a second billable review until review_status resolves the original ID.

Guide is here: https://github.com/hashgraph-online/hol-guard/blob/main/docs/guard/mcp-server-contributions.md

1

u/ava_6c 6d ago

separate second-pass code review sounds useful, especialy when implementation and review come from different models.

1

u/CH_CGV 6d ago

Thanks! If you give Rebut a try, I’d love to hear what works for you and what could be better.