-
Notifications
You must be signed in to change notification settings - Fork 0
Tools Get Developer Context
wiki-agent[bot] edited this page Jul 24, 2026
·
7 revisions
Returns the authenticated user's developer profile, subscription status, GitHub integration status, and organization memberships.
-
Source:
src/tools/get-developer-context.ts -
Function:
registerGetDeveloperContext(server, chronova) -
Handler shape:
async () => { ... }— no parameters.
z.object({})No input is required. The tool uses the configured API key to identify the user.
| Method | Path | Auth |
|---|---|---|
| GET | users/current |
Authorization: Bearer <api_key> |
The response is typed as { data: ChronovaUser } in src/lib/types.ts and unwrapped before returning.
interface ChronovaUser {
id: string;
username: string;
email?: string;
avatar_url?: string;
subscription?: { plan: string; status: string };
github_connected: boolean;
organizations: Array<{ id: string; name: string; role?: string }>;
created_at: string;
modified_at: string;
}On success:
{
"content": [
{
"type": "text",
"text": "{ \"id\": \"...\", \"username\": \"...\", ... }"
}
]
}On error:
{
"content": [
{ "type": "text", "text": "Unauthorized: Invalid or expired API key. Check your CHRONOVA_API_KEY configuration." }
],
"isError": true
}Errors are formatted by formatToolError in src/lib/errors.ts and never include stack traces. Common errors are 401 Unauthorized (missing/invalid key) and SERVER_ERROR for Chronova API failures.