CircleCI
CircleCI hosts its MCP server at https://mcp.circleci.com/v1/mcp over streamable HTTP. The Official card pre-fills that URL. It is the CircleCI card with the Official badge. A call runs as the CircleCI user who signs in, or as the owner of a personal API token.
CircleCI registers an OAuth client only for a loopback redirect (http://localhost, http://127.0.0.1, or http://[::1], on a port from 1025 to 65535) or for a hosted redirect it already supports. Willow's callback is not one of those:
- SaaS:
https://{org}.withwillow.ai/{org}/api/auth/callback - On-prem:
{CONNECT_URL}/{org}/api/auth/callback
Copy the exact URL from the server Setup tab if you need to compare it. CircleCI refuses it with invalid_redirect_uri. There is no OAuth app to create. Connect with Local sign-in, or with a personal API token.
See Connecting to the CircleCI MCP server and OAuth 2.0 API access with Dynamic Client Registration.
Local sign-in
Each person signs in with their own CircleCI account. Local sign-in registers a http://localhost redirect, which CircleCI accepts. A helper on each person's computer receives the sign-in and passes it to Willow. The helper is part of the Willow Scan Agent, or people can run it in a terminal.
1. In Willow — add the server
- In the sidebar, go to MCP Servers under the Build section and click + Add MCP server.
- Find the CircleCI card with the Official badge and click + Use.
- Setup says Willow couldn't register itself with CircleCI and asks for an OAuth app's client ID. This is expected. Click Skip for now.
- Open the server, go to the Setup tab, and scroll to Authentication. OAuth sign-in is selected.
- Turn on Local sign-in. Willow registers itself with CircleCI and shows OAuth client registered for local sign-in.
- Click Save Changes.
- In Tools, turn on the tools you want, assign the server to groups, and click Publish.
2. Each person — sign in
- Make sure the Willow Scan Agent is running, or run
npx -y @mcp-s/mcp oauth-relayin a terminal and keep it open while signing in. - The first time an assistant calls a CircleCI tool, Willow asks the person to sign in. Willow checks that the helper is running, then opens CircleCI.
On the consent screen, choose Read, Write, or Admin. That choice limits the token, and it stays within the user's role in CircleCI. If the account belongs to SSO-enabled organizations, select Authorize next to each organization the agent should reach. Sign-in still finishes when an organization is left unauthorized, and that organization's projects stay inaccessible. SSO access for an existing token can be changed later from the OAuth Clients page in user settings.
The token lasts 90 days. CircleCI does not issue a refresh token. When it expires, sign in again with the helper running. Signing in again replaces the previous token for this client.
Personal API token
Use a token for a shared connection, or when someone should not sign in in a browser. CircleCI expects Authorization: Bearer and a personal API token.
- In CircleCI, open your profile, then User Settings → Personal API Tokens. Select Create New Token, name it, and set an expiry no more than one year out. Copy the token. CircleCI shows it once. See Managing API tokens.
- In Willow, choose API key under Sign-in:
- One shared — leave Scheme as Bearer and paste the token itself. Willow keeps it in the vault and sends
Authorization: Bearer <token>on every request. - Each person's own — each person pastes
Bearer <token>, including the word Bearer, the first time they connect. Willow sends that value as theAuthorizationheader and does not add a prefix.
- One shared — leave Scheme as Bearer and paste the token itself. Willow keeps it in the vault and sends
A token created here carries the user's full permissions.
When the organization uses SSO, the token can reach that organization's resources after it is SSO-authenticated. Sign in to CircleCI through SSO, open Personal API Tokens, and select the organization in the token's SSO column. That option is available while the SSO session is active. See Personal API tokens with SSO.
Troubleshooting
Registration fails with invalid_redirect_uri. Local sign-in is off, so Willow tried to register its hosted callback. CircleCI answers no supported redirect_uri. Turn on Local sign-in and save.
"One quick step before you sign in". Nothing on the person's computer is listening for the sign-in. Start the Willow Scan Agent, or run npx -y @mcp-s/mcp oauth-relay in a terminal, then click I've started it. If the browser asks to allow access to devices on your network, allow it.
Sign-in works, and an SSO organization's projects are missing. That organization was not authorized. On the consent screen, select Authorize for it, or grant it later from OAuth Clients in user settings. For a personal API token, select the organization in the token's SSO column while signed in through SSO.
A token stops working. A manually created token expires on the date set when it was created. An OAuth token expires after 90 days. Create a new token, or sign in again.