OpenAI-compatible API wrapper for Claude Code that provides chat completions, model listing, and session management
This is an HTTP API wrapper around Claude Code, not an MCP server. It exposes 9 REST endpoints (chat completions, models, auth, health, debug, sessions management) as if they were MCP tools. Critical structural problem: these are OpenAI-compatible HTTP endpoints, not MCP tool definitions. The 'tools' listed are HTTP routes, not MCP-registered tools with proper schemas and descriptions. Schema definitions exist in models.py (referenced but not shown), so I must score based on what is visible. The descriptions provided are for HTTP endpoints, not MCP tool descriptions. Per the rubric, if tool definitions are inferred rather than directly visible in the source, cap per-tool scores at 50. Only the POST /v1/chat/completions endpoint shows an explicit input schema in the evaluation; others lack visible schemas. Tool naming uses HTTP verb+path conventions (POST, GET, DELETE) rather than MCP verb_noun patterns. Error handling is rudimentary, no recovery guidance, no actionable error classification. Security concern: session_id is passed as a parameter in chat completions, which is a deprecated pattern (Mcp-Session-Id was removed from the spec). No tool annotations (readOnlyHint, destructiveHint, idempotentHint) are present. This server does not implement MCP protocol, it is a standalone HTTP wrapper that happens to call Claude Code.
Delete a session and its associated message history.
Health check endpoint that verifies the server is running and responsive.
Get current authentication and server configuration status. Returns information about API key requirements, Claude Code authentication method, and server capabilities.
List available models for chat completions. Returns information about supported Claude models.
List all active sessions with their metadata and message counts.
Get aggregated session statistics including active session count and total message count.
Get detailed information about a specific session including message history and metadata.
This is not an MCP server; it is an HTTP API wrapper. The 9 'tools' are REST endpoints, not MCP-registered tools. MCP servers must implement the MCP protocol with tool definitions, resources, prompts, and proper request/response handling via stdio, HTTP+SSE, or Streamable HTTP. This repository does not follow the MCP specification.
Tool naming does not follow verb_noun MCP conventions. All 'tools' use HTTP method + path naming (GET /v1/models, POST /v1/chat/completions) instead of MCP verb_noun style (list_models, send_chat_completion). MCP tools should be named with clear action verbs that LLMs can parse before reading descriptions.
Inferred effective spec: 2026-07-28+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 23 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Main chat endpoint that processes messages and returns completions using Claude Code. Supports both streaming and non-streaming responses, system prompts, temperature control, and session continuity.
Debug endpoint for validating and analyzing request parameters. Provides detailed information about parameter compatibility and any validation issues.
Input schemas are missing for 6 of 9 endpoints (GET /v1/models, GET /v1/auth/status, GET /health, GET /v1/sessions, GET /v1/sessions/stats, and the path parameter schema is not explicitly shown for GET /v1/sessions/{session_id}). Per the hard scoring rule, if a tool has NO input schema, its schema score MUST be 0.
Descriptions are generic and under 50 characters for most endpoints (e.g., 'Health check endpoint that verifies the server is running and responsive' is 82 chars, but others are much shorter). For /v1/models: '30 chars; for /health: 40 chars. Even these are not LLM-optimized for tool selection.
session_id is passed as a parameter in POST /v1/chat/completions and in URL paths. This mirrors the deprecated Mcp-Session-Id pattern that was removed from the MCP spec in 2026. The protocol is now stateless, each request should be self-contained. Using session IDs as parameters violates current spec alignment.
No tool annotations are present (readOnlyHint, destructiveHint, idempotentHint). DELETE /v1/sessions/{session_id} is clearly destructive and should declare destructiveHint=true. GET endpoints should declare readOnlyHint=true. This metadata is required for proper spec alignment with current MCP (2026-07-28).
Error handling is absent from visible tool definitions. POST /v1/chat/completions references error scenarios (timeout, API failures) but no recovery guidance or error classification is documented. DELETE /v1/sessions/{session_id} could fail (session not found) with no guidance on what the agent should do next.
Output schemas are not documented for any endpoint. LLMs need to know what fields POST /v1/chat/completions returns (usage, choices structure, streaming format). GET /v1/sessions returns session metadata but the structure is not documented. Per the rubric, 100% of A+ tools have documented return types.
POST /v1/chat/completions accepts 'model' as a string parameter with minimal description ('Model identifier (e.g., claude-3-5-sonnet-20241022)'). The description includes an example value, which per the rubric should not appear in descriptions, it causes LLMs to reuse example values literally. Should use an enum or format constraint instead.
POST /v1/chat/completions accepts 'temperature' (0-2) without documenting what temperature control does or when to use different ranges. Parameter description 'Sampling temperature (0-2)' is vague for an LLM trying to decide how to invoke the tool.
No pagination or result limits documented for GET /v1/sessions (list all active sessions) or GET /v1/sessions/stats. If there are hundreds of active sessions, returning all could blow the context window. Should accept limit/offset parameters and return total_count.