MCPcopy Index your code
hub / github.com/simstudioai/sim / route.ts

File route.ts

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

Source from the content-addressed store, hash-verified

1import { UnauthorizedError } from '@modelcontextprotocol/sdk/client/auth.js'
2import { createLogger } from '@sim/logger'
3import { getErrorMessage } from '@sim/utils/errors'
4import type { NextRequest } from 'next/server'

Callers

nothing calls this directly

Calls 15

createLoggerFunction · 0.90
withRouteHandlerFunction · 0.90
withMcpAuthFunction · 0.90
validationErrorResponseFunction · 0.90
createMcpSuccessResponseFunction · 0.90
createMcpErrorResponseFunction · 0.90
categorizeErrorFunction · 0.90
readMcpJsonBodyWithLimitFunction · 0.90
getErrorMessageFunction · 0.90
mcpBodyReadErrorResponseFunction · 0.90
settleWithConcurrencyFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected