Stalemodel

io.github.GillMacedo由 GitHub 帳號 GillMacedo 發布v0.1.1更新於 Nov 3, 2026

Catch outdated AI model names, and look up current models, prices and limits.

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

對照即時目錄檢查程式碼中的 AI 模型 ID,標出已棄用或缺少的 ID,並列出目前模型的价格與上下文上限。

可以做什麼
  • 檢查模型 ID,回傳狀態並建議同系列中較新的模型
  • 依供應商、價格、上下文大小或工具支援列出目前模型,最新的排在前面
  • 掃描檔案或目錄中帶引號的模型 ID,找出已棄用或目錄中缺少的,只回傳位置
適用情境
當編碼助理依訓練資料寫出模型 ID,你想在交付前發現過時的 OpenAI、Claude、Gemini、Grok、DeepSeek 或 Mistral 名稱時適用;也適合需要目前價格與上下文上限來挑選模型的情況。
執行需求
以本機 stdio 程序執行 npm 套件 stalemodel,需要 Node 22.19 或更新版本。不需要 API 金鑰或帳號。目錄資料從 models.dev 取得,離線時使用內建快照。
安裝前請注意
三個工具皆為唯讀,不會把程式碼傳送到任何地方,但會從 models.dev 取得目錄資料。建議是依系列與發行日期產生,切換前應確認價格與行為。掃描只認得帶引號的 ID,會漏掉執行時才組出的 ID。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Stalemodel,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

stalemodel: find deprecated AI model names in your code

[npm] [CI] [MIT license] [MCP Registry]

Catch outdated OpenAI, Claude and Gemini model IDs before your coding agent ships them, and look up current LLM prices and context limits.

Coding agents write model IDs from old training data, so new code often calls models that are deprecated or gone, and fails with errors like "model not found". stalemodel checks IDs against a live catalog, suggests the newest model in the same family, and gives agents current LLM pricing and limits. It's an MCP server and a CLI. It needs no API key or account, sends no code anywhere, and falls back to a bundled snapshot when offline.

It covers Anthropic Claude, OpenAI GPT, Google Gemini, xAI Grok, DeepSeek and Mistral.

What you can ask your agent

  • "Which Claude model ID should I use, and what does it cost?"
  • "Why do I get 'model not found' for claude-3-5-sonnet-20241022?"
  • "Check this repo for deprecated model names."
  • "What's the cheapest current model with tool calling and a 1M context window?"

Install

As a Claude Code plugin, which adds the MCP server and a skill that tells Claude when to use it:

claude plugin marketplace add GillMacedo/stalemodelclaude plugin install stalemodel@stalemodel-marketplace

For other MCP clients, run it from npm. You need Node 22.19 or newer. It's also in the official MCP Registry as io.github.GillMacedo/stalemodel.

json
{  "mcpServers": {    "stalemodel": {      "command": "npx",      "args": ["-y", "stalemodel", "serve"]    }  }}

Usage

Without installing anything, run npx stalemodel scan .. The examples below run from a clone of this repo.

Scan a project. Only quoted strings count, and scan exits 1 on findings, so it can run in CI.

$ node plugin/dist/stalemodel.js scan examplesexamples/app.py:2  claude-3-5-sonnet-20241022  not in catalog  try claude-sonnet-5-5examples/app.py:3  gpt-3.5-turbo  deprecated  try gpt-5.5examples/app.py:4  gemini-1.5-pro  not in catalog  try gemini-2.5-pro3 findings in 1 files

Check an ID.

$ node plugin/dist/stalemodel.js check gpt-4o claude-opus-5-5gpt-4o  current  try gpt-5.5claude-opus-5-5  current

Find current models, newest first, with prices per million tokens.

$ node plugin/dist/stalemodel.js find --provider anthropic --limit 2claude-haiku-5-5  anthropic  2026-10-07  $0.1/$0.5 per MTok  1000000 contextclaude-sonnet-5-5  anthropic  2026-09-28  $2/$10 per MTok  1000000 context

Add --json for machine-readable output, or --offline to use only the bundled snapshot. These examples use the snapshot from 2026-10-31, so live results will change.

MCP tools

ToolWhat it does
models_checkSays whether IDs are current, deprecated or unknown, and suggests a newer model
models_findLists models by provider, name, price, context size or tool support
models_scanFinds outdated IDs in a file or folder, returning locations only

All three are read-only.

Limits

  • Data comes from models.dev, so it can lag behind providers or contain errors.
  • "Not in catalog" can also mean a new, private or misspelled model.
  • try is a suggestion based on family and release date. Check price and behavior before switching.
  • scan only sees quoted IDs, so it misses IDs built at runtime. It also doesn't flag bare gpt-4o-style IDs that are old but still current.

FAQ

How do I find deprecated LLM models in my code? Run npx stalemodel scan .. It exits 1 on findings, so it also works as a CI check.

Where does the pricing data come from? From models.dev, fetched live, with a snapshot bundled for offline use.

Does it work outside Claude Code? It's a standard MCP server, so it should work in any MCP client. So far it has only been tested in Claude Code.

Contributing

Contributions are welcome, from people and from people working with AI agents. See CONTRIBUTING.md. Good first issues:

  • Add a GitHub Action that runs scan on pull requests
  • Add an option to flag current models that have a newer version
  • Support Bedrock and Vertex model ID formats
  • Add a --fix option that shows a diff of suggested replacements
  • Add a plugin icon

How pull requests work

  1. Open a PR. Fork the repo, work on a branch, and keep it to one change. Write a title that says what changes for users, because it becomes the changelog line: feat: goes under Added and fix: under Fixed.
  2. Automatic check. Code changes need tests, and make test must pass. Changes over 30 lines need a linked open issue (Closes #<number>), and a PR can have at most 800 changed lines. If something is missing, a comment tells you what to fix.
  3. Review. Claude reviews each PR automatically. Code PRs also get a security review and are tested in a sandbox. The review then merges the PR or asks for changes. PRs that change CI, agent settings, npm or Python dependencies, vendored code or build files can't be merged this way, and a comment says so. The same goes for anything the security review doesn't clear.
  4. Release. A merge that changes what users install becomes a new version within about two hours, with a GitHub Release and, if the project has one, its npm package. Docs and CI changes wait for the next release.

AI disclosure

This project was largely generated with Claude Code and reviewed by its maintainer.

About me

I'm Giulliano Macedo, and I build developer tools at GoTech Solutions. Follow along or get in touch:

If stalemodel helped you, a star helps others find it.


MIT licensed. Model data from models.dev (MIT).

Built by Giulliano Macedo, GoTech Solutions · LinkedIn · X

來源:README.md,提交 f931659

工具

3

models_check

Check model names

Checks whether AI model IDs are current, deprecated or missing from the catalog, and suggests the newest model in the same family. Use before writing a model ID into code or config, because IDs from training data are often out of date. Status unknown can also mean a new or private model.

輸入參數model_ids必填

models_find

Find current models

Lists non-deprecated AI models, newest first, with price per million tokens and context size. Use to choose a model or get a current ID, price or limit.

輸入參數limitqueryprovidermin_contextrequires_toolsmax_input_price

models_scan

Scan files for outdated model names

Scans a file or directory for quoted AI model IDs that are deprecated or missing from the catalog. Read-only. Skips dependency and build folders, and returns locations and IDs, not file contents.

輸入參數path必填

版本歷史

1
  1. v0.1.1最新Oct 31, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分