Polydev
← DocsReference

MCP reference

For developers and MCP client authors: the hosted endpoint, OAuth sign-in, per-client configuration, tool schemas and the local stdio package. For plain setup steps, see /install.

Endpoint

endpoint
https://polydev.ai/mcp
Transport
Streamable HTTP. Each JSON-RPC message is a POST; the reply is JSON, or an SSE stream when the client accepts text/event-stream. GET (server push) is not offered and returns 405.
Protocol versions
2025-11-25, 2025-06-18, 2025-03-26
Session
The initialize response carries an Mcp-Session-Id header.
Auth
Every request needs Authorization: Bearer <access token> from Polydev's OAuth server. See below.

Authentication

OAuth 2.1 for public clients. Users sign in to Polydev in the browser and approve the client; nobody copies a token by hand. Most MCP clients do all of this automatically.

  1. 01A request without a valid token gets 401 with a WWW-Authenticate header pointing at the protected resource metadata.
  2. 02The client reads /.well-known/oauth-protected-resource/mcp (RFC 9728), which names the authorization server, then /.well-known/oauth-authorization-server (RFC 8414).
  3. 03The client registers itself with dynamic client registration at /api/mcp/register (RFC 7591).
  4. 04The client runs the authorization code flow with PKCE. S256 is required; plain is rejected. The scope is mcp.
  5. 05The client exchanges the code for an access token and a refresh token. Refresh tokens rotate: each refresh returns a new one and the old one stops working.
an unauthenticated request
curl -i -X POST https://polydev.ai/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"example","version":"1.0.0"}}}'

HTTP/2 401
www-authenticate: Bearer resource_metadata="https://polydev.ai/.well-known/oauth-protected-resource/mcp", scope="mcp"

If a signed-in client starts getting 401, the user signs in again with the client's MCP auth command (for example /mcp in Claude Code or codex mcp login polydev in Codex). Users can see and disconnect clients in Dashboard → Connected apps.

Client setup

The same configuration as /install, which has the full steps and one-click links.

Claude (web, desktop and mobile)

Settings → Connectors → Add custom connector → paste https://polydev.ai/mcp → Connect, then sign in to Polydev and approve.

ChatGPT

In the apps settings, add a custom MCP server (developer mode on some plans), paste https://polydev.ai/mcp, choose OAuth, then sign in to Polydev and approve.

Claude Code

terminal
claude mcp add --transport http polydev https://polydev.ai/mcp

Then run /mcp and choose Polydev to sign in. Or install the plugin:

claude code
/plugin marketplace add backspacevenkat/polydev-claude-code-plugin
/plugin install polydev-hosted@polydev-marketplace

Codex

terminal
codex mcp add polydev --url https://polydev.ai/mcp
codex mcp login polydev

Cursor

Use the one-click link on /install, or add this to ~/.cursor/mcp.json and choose Connect next to Polydev:

~/.cursor/mcp.json
{
  "mcpServers": {
    "polydev": {
      "url": "https://polydev.ai/mcp"
    }
  }
}

VS Code (GitHub Copilot)

Use the link on /install, or run:

terminal
code --add-mcp '{"name":"polydev","type":"http","url":"https://polydev.ai/mcp"}'

Windsurf

Add this to ~/.codeium/windsurf/mcp_config.json:

mcp_config.json
{
  "mcpServers": {
    "polydev": {
      "serverUrl": "https://polydev.ai/mcp"
    }
  }
}

Cline and any other MCP client

Use https://polydev.ai/mcp with the Streamable HTTP transport. The client signs in with OAuth on first use.

Tools

tools/list on the hosted endpoint returns these five tools (get_perspectives is the older name of ask_model). Results are text content blocks, and every answer from ask_model ends with a Paid by: line. Image generation is not on the hosted endpoint.

ask_modeltitle: Ask other AI models

Sends the prompt to one model, several, or the models set up in the user's Polydev account, and returns each answer as text. Each answer says what paid for it: the user's API key, their OpenRouter key or Polydev free requests.

inputSchema
{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "description": "The question or task to send to the other models, with the context they need"
    },
    "model": {
      "type": "string",
      "description": "Optional: one model ID to ask (see list_models)"
    },
    "models": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional: model IDs to ask, at most 10; by default the models set up in the user's Polydev account"
    },
    "temperature": {
      "type": "number",
      "description": "Sampling temperature (0.0-2.0)",
      "minimum": 0,
      "maximum": 2
    }
  },
  "required": [
    "prompt"
  ]
}

readOnlyHint: true · destructiveHint: false · idempotentHint: false · openWorldHint: true

get_perspectivestitle: Ask other AI models (older name)

Same as ask_model, with the same inputs, under the name older clients use. It stays listed.

inputSchema
{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "description": "The question or task to send to the other models, with the context they need"
    },
    "model": {
      "type": "string",
      "description": "Optional: one model ID to ask (see list_models)"
    },
    "models": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional: model IDs to ask, at most 10; by default the models set up in the user's Polydev account"
    },
    "temperature": {
      "type": "number",
      "description": "Sampling temperature (0.0-2.0)",
      "minimum": 0,
      "maximum": 2
    }
  },
  "required": [
    "prompt"
  ]
}

readOnlyHint: true · destructiveHint: false · idempotentHint: false · openWorldHint: true

list_modelstitle: List available models

Lists the models this account can ask and, for each, what would pay for an answer. Also shows how many free requests are left. list_available_models is accepted as an alias.

inputSchema
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "description": "Optional: only list models from this provider, for example \"openai\""
    }
  }
}

readOnlyHint: true · destructiveHint: false · idempotentHint: true · openWorldHint: false

search_xtitle: Search X

Searches recent posts on X through Grok and returns a summary with links to the posts. Read-only. Needs the user's own xAI key in Polydev.

inputSchema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "What to search X for"
    }
  },
  "required": [
    "query"
  ]
}

readOnlyHint: true · destructiveHint: false · idempotentHint: true · openWorldHint: true

rank_perspectivestitle: Rate the answers

Records which answers from ask_model were most useful, if the user wants to rate them. Ratings feed the public leaderboard as counts.

inputSchema
{
  "type": "object",
  "properties": {
    "ranked_models": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Model IDs from the ask_model answers, best first"
    },
    "model_scores": {
      "type": "object",
      "description": "Optional: a score from 1 to 10 per model ID"
    },
    "feedback_text": {
      "type": "string",
      "description": "Optional: why they were ranked this way"
    }
  },
  "required": [
    "ranked_models"
  ]
}

readOnlyHint: false · destructiveHint: false · idempotentHint: false · openWorldHint: false

Example call
tools/call
curl -X POST https://polydev.ai/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Mcp-Session-Id: $SESSION_ID" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "ask_model",
      "arguments": { "prompt": "Review this SQL migration for locking problems: ..." }
    }
  }'

Local stdio package

Optional. The npm package polydev-ai (1.12.0, Apache-2.0) runs Polydev as a stdio MCP server on the user's machine. It needs Node.js 20 or newer. On top of the hosted tools it can use the user's ChatGPT plan through Continue with ChatGPT, and the Claude Code or Codex signed in on that machine under the user's own login. It never runs the CLI of the app that called it, and it checks sign-in with claude auth status and codex login status rather than reading credential files.

Claude Code
claude mcp add polydev -- npx -y polydev-ai@latest
other clients
{
  "mcpServers": {
    "polydev": {
      "command": "npx",
      "args": [
        "-y",
        "polydev-ai@latest"
      ]
    }
  }
}

The first tool call opens the browser to sign in. Extra tools in the local package:

ToolWhat it does
generate_imageImage generation with OpenAI or Google models, on the user's key or one free request.
connect_chatgpt_planContinue with ChatGPT: OpenAI models then use the user's ChatGPT plan.
chatgpt_plan_statusWhether the ChatGPT plan is connected.
loginBrowser sign-in; saves the token on the machine.
get_auth_statusConnection, local CLIs found and configured models.

Advanced: where a browser sign-in is not possible, the local package can read a token from the POLYDEV_USER_TOKEN environment variable, created on the Connected apps page. Keep it out of files you commit.