MCPcopy Index your code
hub / github.com/copilot-extensions/github-models-extension

github.com/copilot-extensions/github-models-extension @v0.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.1 ↗ · + Follow
26 symbols 43 edges 8 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

@gh-models Copilot Extension

This is a GitHub Copilot Extension that provides a way to interact with GitHub Models, directly in Copilot Chat.

[!NOTE] To use Copilot Extensions, you must be enrolled in the limited public beta.

All enrolled users with a GitHub Copilot Individual subscription can use Copilot Extensions.

For enrolled organizations or enterprises with a Copilot Business or Copilot Enterprise subscription, organization owners and enterprise administrators can grant access to Copilot Extensions.

What it can do

You can ask it things like "what models are available?" or "which model should I use for my use-case?". You can also ask it to execute a basic prompt using a particular model.

Description Image
User asking @gh-models for a recommended model that is low-cost and supports function calling User asking @gh-models for a recommended model that is low-cost and supports function calling
Dialogue with the Extension, asking for an OpenAI model Dialogue with the Extension, asking for an OpenAI model
User executing a basic prompt using the model that the extension recommended User executing a basic prompt using the model that the extension recommended
In VS Code, explain code using a specific model image

Development

Install dependencies:

npm install

To run in development mode:

npm run dev

To build and run in production mode:

npm run build && npm start

Extension points exported contracts — how you extend this code

GitHubKeysPayload (Interface)
(no doc)
src/validate-signature.ts
Model (Interface)
(no doc)
src/models-api.ts
RunnerResponse (Interface)
(no doc)
src/functions.ts

Core symbols most depended-on inside this repo

listModels
called by 3
src/models-api.ts
verifySignature
called by 1
src/validate-signature.ts
getModel
called by 1
src/models-api.ts
getModelSchema
called by 1
src/models-api.ts
execute
called by 1
src/functions/list-models.ts
verifySignatureMiddleware
called by 0
src/validate-signature.ts
constructor
called by 0
src/models-api.ts
constructor
called by 0
src/functions.ts

Shape

Class 11
Method 8
Function 4
Interface 3

Languages

TypeScript100%

Modules by API surface

src/models-api.ts7 symbols
src/functions.ts4 symbols
src/validate-signature.ts3 symbols
src/functions/recommend-model.ts3 symbols
src/functions/list-models.ts3 symbols
src/functions/execute-model.ts3 symbols
src/functions/describe-model.ts3 symbols

For agents

$ claude mcp add github-models-extension \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact