Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

GitHub Models Helper

БесплатноНе проверен

MCP server that lists available GitHub Models and compares responses from multiple models for the same prompt.

GitHubEmbed

Описание

MCP server that lists available GitHub Models and compares responses from multiple models for the same prompt.

README

TypeScript MCP server that integrates with GitHub Models to list available models and compare responses across models for the same prompt. This README includes full requirements, project description, build steps, and testing flow.

Project requirements

  • Node.js 18+
  • GitHub account with access to GitHub Models
  • GitHub Personal Access Token (PAT) with GitHub Models access
  • MCP Inspector (runs via npx)

Project description

This server exposes three MCP primitives:

  • Resource: models://available (lists available models)
  • Tool: compare_models (compares model responses to the same prompt)
  • Prompt: compare_models_prompt (builds a reusable comparison prompt)

Project structure

mcp-typescript-github-models-helper/
  src/
    githubModels.ts
    index.ts
  .env.template
  .gitignore
  package.json
  tsconfig.json

Step-by-step setup

  1. Install dependencies
npm install
  1. Create .env from the template
cp .env.template .env
  1. Add your GitHub Models token
GITHUB_TOKEN=your_github_token_here

Optional: override the API base URL in .env:

GITHUB_MODELS_API_BASE=https://models.inference.ai.azure.com

Step-by-step implementation (what the code does)

  1. src/githubModels.ts

    • Fetches available models with GET /models
    • Compares models with POST /chat/completions
    • Uses GITHUB_TOKEN from .env
  2. src/index.ts

    • Creates the MCP server
    • Registers the models://available resource
    • Registers the compare_models tool
    • Registers the compare_models_prompt prompt
    • Connects to STDIO transport

Run (development)

npm run dev

Build and run (production-style)

npm run build
npm start

Step-by-step testing with MCP Inspector

  1. Build the server
npm run build
  1. Start the Inspector
npx @modelcontextprotocol/inspector node dist/index.js
  1. Open the URL printed by the Inspector and click Connect

  2. Test resources

    • Resources tab -> models://available
  3. Test tools

    • Tools tab -> compare_models
  4. Test prompts

    • Prompts tab -> compare_models_prompt

Claude Desktop configuration

Add this to your claude_desktop_config.json and update the paths:

{
  "mcpServers": {
    "GitHub Models Comparison": {
      "command": "node",
      "args": [
        "/absolute/path/to/mcp-typescript-github-models-helper/dist/index.js"
      ],
      "env": {
        "GITHUB_TOKEN": "your_github_personal_access_token"
      }
    }
  }
}

Note: This is not secure for production. Use proper secrets management and authentication when publishing MCP servers.

Troubleshooting

  • Cannot find name 'process': run npm install --save-dev @types/node.
  • 401/403 from GitHub Models: verify the PAT has GitHub Models access.
  • Inspector connection errors: rebuild and re-run npx @modelcontextprotocol/inspector node dist/index.js.

from github.com/bvm-arjun108/mcp-typescript-github-models-helper

Установка GitHub Models Helper

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/bvm-arjun108/mcp-typescript-github-models-helper

FAQ

GitHub Models Helper MCP бесплатный?

Да, GitHub Models Helper MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для GitHub Models Helper?

Нет, GitHub Models Helper работает без API-ключей и переменных окружения.

GitHub Models Helper — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить GitHub Models Helper в Claude Desktop, Claude Code или Cursor?

Открой GitHub Models Helper на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare GitHub Models Helper with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development