Phase 11, part 5: the JSON API
/api/v1 offers the MCP tools as plain HTTP for scripts: GET /api/v1/tools lists what a key may call, POST /api/v1/<tool> calls one with JSON. Each call goes through /mcp internally, so keys, scopes, limits, logging and approvals are the same. /api/v1/docs documents every tool. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,8 @@ var routeAreas = map[string]string{
|
||||
"/static": areaPublic, "=/favicon.ico": areaPublic, "=/healthz": areaPublic, "=/mcp": areaPublic,
|
||||
"/signin": areaPublic, "=/signout": areaPublic, "=/forgot": areaPublic, "/reset": areaPublic,
|
||||
"/setup": areaPublic, "/invite": areaPublic,
|
||||
// The JSON API: its own keys, like /mcp.
|
||||
"/api": areaPublic,
|
||||
|
||||
"=/": areaSignedIn, "=/search": areaSignedIn, "/settings/account": areaSignedIn,
|
||||
"/users": areaSignedIn, "=/settings": areaSignedIn,
|
||||
|
||||
Reference in New Issue
Block a user