DEV Community

Cover image for Stop Claude Code and Cursor writing retired AI models with an MCP server
Versyka
Versyka

Posted on AI-assisted

Stop Claude Code and Cursor writing retired AI models with an MCP server

Ask a coding agent to "add summaries with OpenAI" and there's a good chance it writes something like this:

response = client.chat.completions.create(
    model="gpt-4-0613",
    messages=[...],
)
Enter fullscreen mode Exit fullscreen mode

It looks right. It was right, until October 23, when that model was retired.

The agent isn't careless. It learned from code written before the shutdown date, and nothing in your editor tells it otherwise. The same goes for SDK versions: it will happily write calls that were removed two majors ago.

The fix: let the agent look it up

The Model Context Protocol (MCP) lets an agent call tools while it works. If one of those tools knows current model retirements and SDK versions, the agent can check before it writes.

Versyka runs a public MCP server at https://www.versyka.com/api/mcp. No API key.

Claude Code

claude mcp add --transport http versyka https://www.versyka.com/api/mcp
Enter fullscreen mode Exit fullscreen mode

Cursor

.cursor/mcp.json:

{
  "mcpServers": {
    "versyka": { "url": "https://www.versyka.com/api/mcp" }
  }
}
Enter fullscreen mode Exit fullscreen mode

VS Code

.vscode/mcp.json:

{
  "servers": {
    "versyka": { "type": "http", "url": "https://www.versyka.com/api/mcp" }
  }
}
Enter fullscreen mode Exit fullscreen mode

What the agent can ask

Tool Example question
lookup_model Is gpt-4-0613 still available? What replaces it?
list_model_retirements What retires in the next 90 days?
find_retired_models Does this code call a retired model?
check_dependencies Is this package.json or requirements.txt behind?
get_sdk_versions What's the latest version of openai?
list_migration_guides Which migration guides exist?
get_migration_guide How do I move from Pydantic 1 to 2?

Nudge it to use them

Agents use tools more reliably when your project instructions mention them. Add a line to CLAUDE.md, .cursorrules or your agent instructions:

Before writing an AI model ID or adding a dependency, check it with the versyka MCP tools
(lookup_model, get_sdk_versions).
Enter fullscreen mode Exit fullscreen mode

After that, the same prompt gets you:

response = client.chat.completions.create(
    model="gpt-5.6-sol",
    messages=[...],
)
Enter fullscreen mode Exit fullscreen mode

The agent still writes the code. It just checks the calendar first.

Top comments (0)