Skip to content

feat: simplify MCP eval development and sharing - #514

Merged
mattrossman merged 24 commits into
mainfrom
mattrossman/ai-1477-make-mcp-eval-development-easy-to-run
Nov 17, 2026
Merged

mattrossman merged 24 commits into
mainfrom
mattrossman/ai-1477-make-mcp-eval-development-easy-to-run

Conversation

@mattrossman

@mattrossman mattrossman commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Teams need a way to test MCP changes with evals locally and verify findings in CI. So far the local MCP override had no documented development workflow, and sharing unpublished changes for PR or CI testing required publishing a preview package and wiring it into an eval experiment.

Changes

This updates the contributing guide to explain how to use a local checkout and share a revision and tweaks the resolution logic. See Testing MCP Changes.

As we look towards a future where you can plug in different revisions of the MCP server, CLI, and docs source code, I've changed the local override to accept a path to the full MCP repo instead of a package directory. This keeps package layout out of contributor config and lets future CLI and docs repo overrides follow the same convention.

# Local clone of https://github.com/supabase/mcp
SUPABASE_MCP_REPO_PATH=../mcp

For sharing and CI, experiments can now target an MCP branch, tag, or commit directly. You can update this broadly across experiments using the default runtime in presets.ts

// Pin a commit for reproducible runs.
supabaseMcpServer({ revision: 'b0724c9d37e9e74cddd8c79eaf93cdfac9b7523d' })

// Follow a branch while developing.
supabaseMcpServer({ revision: 'feature/my-mcp-change' })

The runner builds each revision once per process, mounts the checkout for container agents, and records the resolved SHA in results and Braintrust. We can explore optimizations to re-use checkouts across Sandboxes in follow-ups.

Verification

I tested roundtrips of eval runs with the new env var locally, and CI runs with revision config for a a commit SHA pin and a branch reference with a canary marker in the MCP list_projects source. Both resolved, and the SHA trace and branch trace show that build’s marker in the actual list_projects response.

Resolved MCP source Canary tool response
CleanShot 2026-11-16 at 7 25 34 PM@2x CleanShot 2026-11-16 at 4 22 29 PM@2x

Closes AI-1477

@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
evals Ignored Ignored Preview Nov 17, 2026 2:53pm UTC

Request Review

@mattrossman mattrossman changed the title feat: run evals against MCP source revisions feat: simplify MCP eval development and sharing Nov 16, 2026
@mattrossman
mattrossman marked this pull request as ready for review November 16, 2026 22:20
@mattrossman
mattrossman requested a review from a team as a code owner November 16, 2026 22:20
@mattrossman
mattrossman marked this pull request as draft November 16, 2026 23:44
@mattrossman
mattrossman marked this pull request as ready for review November 17, 2026 00:17
@mattrossman

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T00:25:02.986660Z 9209208 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 9209208708

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@barryroodt barryroodt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looking good! The repo path works well as the override and it'll carry over nicely to the CLI and docs repos.

Nothing blocking from me, I've left a few smaller comments inline.

Comment thread packages/core/src/mcp-revision.ts Resolved
Comment thread CONTRIBUTING.md Resolved
@mattrossman
mattrossman force-pushed the mattrossman/ai-1477-make-mcp-eval-development-easy-to-run branch from 59b2a12 to ebcef77 Compare November 17, 2026 14:53
@mattrossman
mattrossman merged commit bd897f6 into main Nov 17, 2026
10 checks passed
barryroodt added a commit that referenced this pull request Nov 24, 2026
## Problem

PRs here inherit the org template from `supabase/.github`, and nobody
fills it in. Recent evals PRs (#463, #466, #506, #514, #535) all go
Problem, then Changes or Fix, then Verification with the exact `pnpm
eval` command and a pass count. There's also nowhere that tells authors
how to show CI results, which changed when #535 moved results to
Braintrust only.

## Changes

Adds `.github/PULL_REQUEST_TEMPLATE.md` with the shape those PRs already
use:

- **Problem** and **Changes** replace the org template's four prompts.
- **How to Review** is optional, for multi-file PRs. The eval reading
path sits in a comment and links to the reviewer checklist in
`CONTRIBUTING.md` so it doesn't get copied.
- **Verification** asks for the exact commands and before/after pass
counts. The eval checklist matches `CONTRIBUTING.md` after #535:
`run-evals-changed` or Refresh eval results, then link the Braintrust
run.
- A closing comment prompts for the Linear issue.

Small PRs can still replace the whole thing with a couple of sentences.

## Verification

One new file, `.github/PULL_REQUEST_TEMPLATE.md`. Both `CONTRIBUTING.md`
anchors it links to (`#reviewing-an-eval`,
`#submitting-evals-for-review`) exist on `main`.

Closes AI-1130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants