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

File route.ts

apps/sim/app/api/mcp/servers/test-connection/route.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { createLogger } from '@sim/logger'
2import { toError } from '@sim/utils/errors'
3import type { NextRequest } from 'next/server'
4import { mcpServerTestBodySchema } from '@/lib/api/contracts/mcp'

Callers

nothing calls this directly

Calls 15

createLoggerFunction · 0.90
withRouteHandlerFunction · 0.90
withMcpAuthFunction · 0.90
readMcpJsonBodyWithLimitFunction · 0.90
createMcpErrorResponseFunction · 0.90
validateMcpDomainFunction · 0.90
validateMcpServerSsrfFunction · 0.90
resolveMcpConfigEnvVarsFunction · 0.90
detectMcpAuthTypeFunction · 0.90
createMcpSuccessResponseFunction · 0.90
mcpBodyReadErrorResponseFunction · 0.90
toErrorFunction · 0.90

Tested by

no test coverage detected