io.github.Modelglass/modelglass

السجل الرسمي الذكاء الاصطناعي والوكلاء

Sourced AI-model pricing and capability data — compare and route to the cheapest capable model.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http modelglass 'https://modelglass-api.vercel.app/mcp' --header 'Authorization: <Bearer <api-key>. Get a free key at https://modelglass.com.au/signup>'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "modelglass": {
            "type": "http",
            "url": "https://modelglass-api.vercel.app/mcp",
            "headers": {
                "Authorization": "<Bearer <api-key>. Get a free key at https://modelglass.com.au/signup>"
            }
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. modelglass-vscode
  2. What Modelglass is
  3. What this repo is
  4. Development
  5. Contributing
  6. Talk to us

Modelglass's VS Code extensions — route dev tasks (and generate video/audio) to the cheapest capable option against your own provider keys, or bring the live Modelglass pricing/capability feed into Copilot's agent mode as MCP tools.

= 1.104">

modelglass-vscode

What Modelglass is

Modelglass is a pricing-and-capability data layer for AI models — image, video, audio, and LLM — built as a sourced, append-only registry: every price carries a source URL and the date it was verified, and a repricing is a new dated entry, never a silent overwrite. It's served two ways: a free comparison site, and a paid read API + MCP server (https://modelglass-api.vercel.app, POST /mcp) for operators wiring model pricing into their own tooling. Modelglass itself doesn't proxy your traffic or pick a model at runtime — it's the data other people's tools (including both extensions in this repo) read.

What this repo is

An npm workspaces monorepo publishing two independent VS Code extensions, each installable on its own:

PackageWhat it isMarketplace
packages/routerModelglass Cost-Aware Router — routes dev tasks to the cheapest capable LLM (and generates video via Runway, audio via ElevenLabs) directly against your own provider keys, BYOK, no Modelglass proxy in the request path. Also available directly inside Copilot Chat's model picker.modelglass.cost-aware-router
packages/mcpModelglass MCP — registers the live Modelglass MCP server directly in Copilot's agent mode, no manual .vscode/mcp.json editing. Seven read-only tools (models, pricing history, competitors, account/tier info) — Copilot's agent decides when to use them, this extension just makes them discoverable.modelglass.modelglass-mcp
packages/sharedInternal only, not published. SecretStorage-backed auth (ensureApiKey/peekApiKey) and the Modelglass API base URL, shared by both extensions above.—

Both extensions use the same Modelglass account/API key — installing one doesn't require separately authenticating the other. See each package's own README.md for full usage docs, including a screenshot of it in action.

Development

npm install                              # installs + links all three workspace packages
npm run typecheck                        # all packages
npm run test                             # all packages (packages without a test script are skipped)
npm run build                            # all packages

# per-package:
npm run build --workspace packages/router
npm run package --workspace packages/mcp   # -> packages/mcp/*.vsix

To run an extension locally: open packages/router or packages/mcp as the VS Code workspace root and press F5 to launch an Extension Development Host with your changes loaded — standard VS Code extension tooling, no custom launch config needed. See CONTRIBUTING.md for the full local-dev + PR flow.

The router/mcp split is tracked as SCO-434 in the main modelglass repo's Linear project.

Contributing

Bug reports, fixes, and new features are welcome — see CONTRIBUTING.md and our Code of Conduct.

To report a security vulnerability, follow SECURITY.md instead of opening a public issue.

Talk to us

Questions about Modelglass itself or either extension — email scott@modelglass.com.au.


Copyright © 2026 Modelglass Pty Ltd. Licensed under the MIT License — see LICENSE.

الأسئلة الشائعة

ما هو io.github.Modelglass/modelglass؟

Sourced AI-model pricing and capability data — compare and route to the cheapest capable model.

كيف أثبّت io.github.Modelglass/modelglass؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http modelglass 'https://modelglass-api.vercel.app/mcp' --header 'Authorization: <Bearer <api-key>. Get a free key at https://modelglass.com.au/signup>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.Modelglass/modelglass إلى مفتاح API؟

نعم. يتطلب Authorization، وتضبطها في إعداداته.

هل io.github.Modelglass/modelglass مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.Modelglass/modelglass؟

ينشره Modelglass. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.