Ferrari-grade MCP server that bridges Claude Code to the OpenAI API. Chat, vision, image-gen, embeddings, audio, moderation, cost-capping, caching, and audit logging.
gpt-bridge demonstrates solid tool definition quality with comprehensive schemas, clear descriptions, and proper parameter typing across all 10 tools. Naming follows verb_noun conventions (gpt_chat, gpt_vision, gpt_embed). Most tools include detailed descriptions (100-300 chars) with usage guidance. Input schemas are well-structured with type constraints, enums, and ranges. However, three tools (gpt_vision, gpt_transcribe, gpt_usage) lack visible descriptions in the provided source, and error handling guidance is minimal. Output schemas are documented in descriptions but not formally in JSON Schema. The server demonstrates good composition with single-responsibility tools and proper chaining via returned IDs.
Send a chat request to OpenAI's GPT family and get a completion. This is the workhorse tool. Use it when you want a second opinion, want GPT's take on a problem, or want to delegate a sub-task to a different model. Cost pre-flight is automatic: if the estimated cost exceeds GPT_BRIDGE_MAX_COST_USD, the call is refused before it hits the API. Args: - messages (Message[]): {role, content} pairs. Roles: 'system', 'user', 'assistant'. - model (string): Alias or ID. Default 'smart' = gpt-5. Try 'fast' for gpt-5-mini, 'cheap' for gpt-5-nano. - max_output_tokens (int): Cap on output tokens. Default 4096. - temperature (0-2, optional): Sampling temperature. Omitted for reasoning models. - top_p (0-1, optional): Nucleus sampling. - response_format ('markdown' | 'json'): Output format. Returns JSON schema: { content: string, model: string, usage: { input_tokens, output_tokens, cost_usd }, cached: boolean } Examples: - "Summarize this text" -> messages=[{role:'user', content:'...'}], model='fast' - "Deep analysis" -> model='smart', max_output_tokens=8000 - "Quick classification" -> model='cheap'
Convert text into high-dimensional embedding vectors using text-embedding-3-large (default) or text-embedding-3-small. Use for semantic search, clustering, classification, or similarity. Batches up to 2048 strings per call. Args: - input: single string OR array of strings (up to 2048). - model: 'embed' (3-large, 3072 dims) or 'embed-small' (3-small, 1536 dims). - dimensions (optional): truncate output (3-large supports reducing to smaller dim for storage). - response_format: 'json' recommended (embeddings are numeric). Returns: { embeddings: number[][], model, usage: { input_tokens, cost_usd } }
Edit an existing image using gpt-image-1. Supports inpainting with an optional mask. Args: - image (abs path): Source PNG. - mask (abs path, optional): PNG where transparent pixels mark edit zones. - prompt (string): Edit instruction. - model: default 'image' = gpt-image-1. - size, n, output_dir: same as gpt_image_generate. Returns: { files: string[], model, usage: { cost_usd } }
Three tools lack visible descriptions: gpt_vision, gpt_transcribe, gpt_usage. LLMs cannot determine when to select these tools without descriptions.
Output schemas documented only in prose descriptions, not as formal JSON Schema. Clients cannot programmatically validate responses or extract typed fields.
Error handling lacks recovery guidance. Tools do not document what errors are retryable, user-fixable, or fatal, or suggest next steps when failures occur.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 55 | 2025-06-18+ | v2 |
Generate images from a text prompt using gpt-image-1 (default) or dall-e-3. Images are saved to disk as PNG and the absolute path is returned. Use output_dir to pin a location. Args: - prompt (string, ≤4000 chars) - model: 'image' (gpt-image-1) or 'dall-e-3' - size: 1024x1024 / 1024x1536 / 1536x1024 / 1024x1792 / 1792x1024 / auto - quality: low | medium | high | auto - n (int 1-4) - output_dir (abs path, optional) Returns: { files: string[], model, usage: { cost_usd } }
List every model your OpenAI key has access to, plus the alias table resolved by this server. Use this before picking a model ID you're unsure about, or to check if a new model has rolled out. Hits OpenAI's /models endpoint. Args: - filter (string, optional): Substring filter on model ID. - response_format: 'markdown' (default) or 'json'. Returns: { models: [{ id, created, owned_by }], aliases: [{ alias, resolves_to }] }
Run text through OpenAI's moderation classifier to detect unsafe content categories. Returns per-category flags and confidence scores: sexual, hate, violence, harassment, self-harm, illicit, and their variants. Free — no per-call cost. Args: - input: string or array of strings (up to 500). - model: default 'moderate' = omni-moderation-latest. Returns: { results: [{ flagged, categories, category_scores }], model }
Synthesize speech from text using OpenAI TTS models. Saves audio to disk. Args: - input (≤4096 chars) - model: 'tts' (tts-1-hd, higher quality) or 'tts-fast' (tts-1, lower cost). - voice: alloy | echo | fable | onyx | nova | shimmer | ash | coral | sage | verse - format: mp3 | opus | aac | flac | wav | pcm - speed: 0.25-4.0 - output_path (abs, optional) Returns: { file, model, voice, format, usage: { cost_usd } }
gpt_vision and gpt_transcribe schemas are inferred (not visible in source).
No confirmation or dry-run pattern for destructive/write operations (gpt_image_generate, gpt_image_edit, gpt_speak write files; gpt_chat may incur costs). Agents cannot preview side effects.