Skip to content

Point the default MCP endpoint at mcp.fly.io - #8

Merged
aezell merged 1 commit into
mainfrom
mcp-fly-io-endpoint
Nov 13, 2026
Merged

aezell merged 1 commit into
mainfrom
mcp-fly-io-endpoint

Conversation

@aezell

@aezell aezell commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Part of superfly/sprites-ecosystem#184

We are transitioning from the Sprites MCP at https://sprites.dev/mcp to the new Fly MCP server. This moves the plugin's default endpoint to the Fly MCP at https://mcp.fly.io.

What changed

  • src/shared.js: DEFAULT_MCP_URL is now https://mcp.fly.io. The MCP server name stays sprites, so the generated sprites_* tool names, the guarded permission patterns, the commands and the guidance text are unchanged. The Sprites tool names are the same on both servers.
  • README.md: the endpoint in the intro, the feature list and the options table; plus a new "Upgrading from the sprites.dev/mcp endpoint" section.
  • Tests (test/v1.test.js, test/v2.test.js, test/plugin.bun.js): the default-URL assertions. They assert https://mcp.fly.io/ with a trailing slash, because the existing option parser returns new URL(url).toString(), which adds the slash to a URL with no path. I did not change the parser.

Users must re-authorize

The two endpoints have separate OAuth grants. Every existing user has to authorize once after updating (opencode mcp auth sprites / opencode2 mcp auth sprites if the browser flow does not start by itself). The README upgrade section says so. Anyone who pinned the old address through the url option, or defined the sprites server themselves, has to change it by hand.

Needs a manual test before this leaves draft

Nothing here was exercised against the live server with a real OAuth login. The automated tests only check the registered configuration.

  • OpenCode 1 and OpenCode 2 complete the browser OAuth flow against https://mcp.fly.io (discovery through https://mcp.fly.io/.well-known/oauth-protected-resource, authorization server https://fly.io/mcp/oauth) and list the Sprites tools.
  • The trailing slash is harmless. The plugin hands OpenCode https://mcp.fly.io/, while the server's protected-resource metadata names https://mcp.fly.io. An unauthenticated POST to either form returns the same 401 challenge, but I could not check how OpenCode's OAuth client compares the two when it builds the resource parameter.
  • Consent scope. The server's 401 challenge advertises every scope (fly:* as well as sprites:read and sprites:write), and the plugin sets no scope. Check what OpenCode requests and what the consent screen offers. With more than Sprites access granted, non-Sprites Fly tools appear under the same sprites_ prefix; the README now says this.
  • /sprites-status and /sprites-smoke still pass, and the three guarded tools (destroy_sprite, checkpoint_restore, policy_network_update) still prompt.
  • The oauth: false plus headers path (OpenCode 2) is documented for header credentials. Whether static bearer tokens work on mcp.fly.io is unverified; assume they do not until tested.

Left unchanged on purpose

  • Code Mode stays off for the server. The README, CONTRIBUTING.md and a code comment say the Sprites MCP server does not support the Code Mode dispatcher call shape; I did not verify whether the Fly MCP does, so the default and that wording are as they were.
  • The "OAuth access restrictions" README section and the name-prefix guidance (mcp- default, Full access wording) describe the previous consent screen. I did not verify them against the Fly consent screen, so they are untouched. A reviewer who knows the Fly grant model should check them.
  • The model guidance in src/shared.js still describes the sprites_* tools as the Sprites control plane and does not mention non-Sprites Fly tools.
  • sprites.dev product links (README.md, package.json homepage) and the sprites.dev trigger phrase in the guidance activation tests are not the MCP endpoint.
  • Version stays 0.1.0. The repository has no changelog, and nothing ties the version to one.

Outside this repository

  • An npm release. npm view @flydotio/sprites-opencode-plugin returns 404 today, so this looks like it would be the first publication; decide whether 0.1.0 ships with the new endpoint or the version is bumped first. Nothing was published or tagged from this branch.

Checks run locally (Node 22.19.0)

  • npm run check (prettier, tsc --noEmit, export test 3/3, OpenCode 1 unit and integration 16/16, OpenCode 2 unit and integration 33/33): pass
  • npm pack --dry-run: pass
  • git diff --check: clean
  • npm run test:bun: not run, Bun is not installed here. The two assertions in test/plugin.bun.js were updated to match; CI's bun job will exercise them.

🤖 Generated with Claude Code

The plugin now registers the Fly MCP server at https://mcp.fly.io instead of https://sprites.dev/mcp, as part of the transition to the new Fly MCP server, keeping the sprites server name and tool names. The README gains an upgrade note about re-authorizing.
@aezell
aezell force-pushed the mcp-fly-io-endpoint branch from 855a617 to 41a7b9e Compare November 13, 2026 20:06
@aezell
aezell marked this pull request as ready for review November 13, 2026 20:30
@aezell
aezell requested a review from a team as a code owner November 13, 2026 20:30
@aezell
aezell merged commit f63a85a into main Nov 13, 2026
6 checks passed
@aezell
aezell deleted the mcp-fly-io-endpoint branch November 13, 2026 20:30
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.

1 participant