MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / mcp-oauth-scope-discovery.test.ts

File mcp-oauth-scope-discovery.test.ts

e2e/selfhost/mcp-oauth-scope-discovery.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Selfhost-only: an MCP integration declares NO oauth scopes — the server does.
2// At connect, `oauth.start` DISCOVERS the request scopes from the MCP server's
3// RFC 9728 protected-resource metadata and asks for exactly those on the
4// authorize URL. Proven end-to-end: a real MCP server (in this process)

Callers

nothing calls this directly

Calls 10

scenarioFunction · 0.90
serveOAuthTestServerFunction · 0.90
serveMcpServerFunction · 0.90
makeGreetingMcpServerFunction · 0.90
scopesFromAuthorizeUrlFunction · 0.90
composePluginApiFunction · 0.85
makeApiClientFunction · 0.85
cancelMethod · 0.80
freshSlugFunction · 0.70
startMethod · 0.65

Tested by

no test coverage detected