Skip to content

v0.7.3 — model_info MCP tool

Choose a tag to compare

@michalekz michalekz released this 30 Jun 13:18
· 99 commits to main since this release

[0.7.3] — 2026-06-29

Added — model_info MCP tool

Static lookup tool returning canonical Claude model metadata. No JSONL scan, no network call — just an in-process table sourced from Anthropic platform docs.

Per-model fields:

  • id, displayName, family (opus/sonnet/haiku/fable/mythos), generation (current/legacy/deprecated)
  • contextWindow, maxOutputTokens
  • pricing (input/output per MTok)
  • capabilities (vision, extendedThinking, adaptiveThinking)
  • knowledgeCutoff, trainingDataCutoff
  • notes (special quirks, EOL dates)

Usage:

  • model_info() — list all 10 known models
  • model_info({ model: "claude-opus-4-7" }) — single lookup (date suffix + [1m] stripped)
  • model_info({ generation: "current" }) — filter by lifecycle

Refactored

  • Extracted canonical model table to src/parser/model-metadata.ts (= single source of truth shared between context-usage.ts and model_info tool).
  • detectContextLimit now delegates to lookupModel from the shared table.

Tests

  • 248 → 263 (+15 covering normalization, lookup, table integrity).