Repository navigation
journeys: an MCP client connects through OAuth end to end; the credit override reminder asks for a reply once - #148
Merged
Merged
Conversation
… override reminder asks for a reply once
VisualCIdocspring/visualci · build #223 · 2 changed, 339 unchanged · approved by visualci features agent for Nathan Broadbent This PR vs base: 2 changed since #221, across 1 build
docspring/visualci · journeys · build #222 · 2 added, 12 unchanged · approved by visualci features agent for Nathan Broadbent This PR vs base: 2 added since #220, across 1 build
Updated as builds change. Agents can review with VisualCI's MCP tools. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two changes.
1. An OAuth journey (
mcp-client-connects-with-oauth)The end-to-end proof that
/mcpaccepts OAuth access tokens (PR #145), in the journeys suite (scripts/screenshots/journeys.mjs, run byscripts/journeys/run.sh). It does what an MCP client does, on the .test hosts behind Caddy with the GitHub stub:POST /mcpon the MCP host answers 401;/.well-known/oauth-protected-resource/mcpnameshttps://mcp.visualci.test/mcpand the MCP host as its authorization server;/.well-known/oauth-authorization-serverputs consent athttps://app.visualci.test/oauth/authorizeand tokens athttps://mcp.visualci.test/oauth/token, with S256 PKCE.http://127.0.0.1:33418/callback).scope=mcp,resource=https://mcp.visualci.test/mcp. Signed out, so the browser goes to/login, signs in through the GitHub stub and comes back to the consent page, which names the client andada@journeys.test. It clicks Allow, and a real loopback listener (as a desktop client runs one) gets the redirect; the state matches and the code is taken.vca_and a refresh token startingvcr_.Authorization: Bearer vca_…on/mcp(from a cookie-free HTTP client, so only the token can sign it in):initialize,tools/list(listswhoami,list_builds,get_build), andwhoami, which is Ada withvia.source = oauth./mcp/adminis refused (401 or 403); a refresh with thevcr_token gives a new, differentvca_, andtools/listworks with it.2. Credit override reminder: no repeated "reply" line
The credit-override ending-soon email's body already says "If you still need more, reply to this email…", so it no longer ends with "Questions? Reply to this email." (HTML and text). Every other email keeps the line, byte for byte.
app/tests/emails.rsgains a test that checks this for each sample. No golden holds the email's text.VisualCI builds that will change
credit_override_endingemail snapshots (HTML and text) lose the "Questions? Reply to this email." line. Nothing else changes.journeys/mcp-client-connects-with-oauth/01-sign-in(the/loginpage) and02-consent(the consent page). Neither holds a timestamp or random id.Checks run (on a build box, with this branch's own Postgres and RustFS)
cargo fmt --all --check,cargo clippy --locked --workspace --all-targets -- -D warnings: clean.cargo test --locked --workspace: all pass.scripts/journeys/run.shas CI runs it: all 7 journeys pass, the new one included.Not merged here: it merges under the main-merge lock.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.