MCPcopy
hub / github.com/cursor/cookbook / GET

Function GET

sdk/agent-kanban/src/app/api/repositories/route.ts:7–14  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

5export const dynamic = "force-dynamic"
6
7export async function GET(request: Request) {
8 try {
9 const session = await requireSession(request)
10 return Response.json({ repositories: await listRepositories(session.apiKey) })
11 } catch (error) {
12 return jsonError(error, "Failed to list repositories.")
13 }
14}

Callers

nothing calls this directly

Calls 3

requireSessionFunction · 0.90
listRepositoriesFunction · 0.90
jsonErrorFunction · 0.90

Tested by

no test coverage detected