MCPcopy
hub / github.com/simstudioai/sim / route.ts

File route.ts

apps/sim/app/api/mcp/oauth/start/route.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { auth as mcpAuth } from '@modelcontextprotocol/sdk/client/auth.js'
2import { OAuthError, ServerError } from '@modelcontextprotocol/sdk/server/auth/errors.js'
3import { db } from '@sim/db'
4import { mcpServers } from '@sim/db/schema'

Callers

nothing calls this directly

Calls 14

createLoggerFunction · 0.90
withRouteHandlerFunction · 0.90
withMcpAuthFunction · 0.90
parseRequestFunction · 0.90
createMcpErrorResponseFunction · 0.90
assertSafeOauthServerUrlFunction · 0.90
getOrCreateOauthRowFunction · 0.90
setOauthRowUserFunction · 0.90
loadPreregisteredClientFunction · 0.90
toErrorFunction · 0.90
surfaceOauthErrorFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected