MCP Connection & Configuration

How to connect to and configure the Guid AI MCP service

This document describes how to connect to and configure the Guid AI MCP service.


Prerequisites

  1. A valid API Key (sk-xxx)
  2. The gateway is deployed and exposes the /mcp endpoint
  3. The client supports MCP Streamable HTTP

Client configuration

Add the following to your MCP config:

{
  "mcpServers": {
    "guid": {
      "url": "https://www.guid.ai/mcp",
      "headers": {
        "Authorization": "Bearer sk-xxx"
      }
    }
  }
}
FieldDescription
mcpServers.guidService key name; recommended value is guid
urlGateway address + /mcp; must share the same origin as the API Base URL
headers.AuthorizationBearer + your API Key

Replace sk-xxx with your API Key.


Session management

MCP Streamable HTTP uses sessions:

ItemDescription
First requestServer returns Mcp-Session-Id in the response headers
Subsequent requestsClient must send the same Mcp-Session-Id in request headers
End sessionDELETE /mcp

Client SDKs usually manage sessions automatically.


Authentication

  • Auth is identical to the V1 API
  • Shares the same API Key billing, limits, and model restrictions
  • Admins may append -{channelId} after the Key to select a channel (e.g. sk-xxx-6)

Auth failures return HTTP 401 / 403.


Verify the connection

After configuration, verify via the MCP protocol:

  1. Call tools/list and confirm Tools such as list_models and generate_image are returned
  2. Call list_models and confirm returned models include supported_endpoint_types

If the Tool list is empty or missing expected Tools, check:

  • Whether the API Key is valid and the balance is sufficient
  • Whether the token restricts available models
  • Whether models support the corresponding supported_endpoint_types

Troubleshooting

SymptomLikely causeAction
Connection failedWrong URL or gateway not runningCheck Base URL and /mcp reachability
401 / 403Invalid Key or IP not on allowlistCheck token settings
Tool list missing image/videoNo permission for those modelsCall list_models and check supported_endpoint_types
Video stuck in queuedUpstream queuePoll at next_poll_after_sec intervals; avoid overly frequent requests
TTS returns an errorInvalid voiceCall list_audio_voices first to get the correct code