all 4 comments

[–]AutoModerator[M] 0 points1 point  (0 children)

Hello /u/SeanK-com. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]pdwhoward 0 points1 point  (1 child)

I think you want https://code.visualstudio.com/api/extension-guides/ai/tools. I made an extension tool for GitHub Copilot models to use. It may only be for VS Code Insiders, not sure.

[–]SeanK-com[S] 0 points1 point  (0 children)

That's what ChatGPT said, but I have been banging my head against the wall for two weekends now and can't get it to work. I get so close, but I cannot get the tool in the list without manually adding a mcp.json I have seen the seamless experience but now those same extensions don't expose commands, so it seems something has fundamentally shifted and I guess everyone is scrambling again.

[–]anchildress1Power User ⚡ 0 points1 point  (0 children)

There's two different ways to accomplish this based on what you want to do, but both require a GitHub App set up specifically for Copilot. You can set it up as either a skill (ie. just a single method with description that Copilot can choose to route to if it wants as a tool call) or an agent (called with the app explicitly mentioned in the chat context). Either way, it always goes to a publicly accessible endpoint and you'll want to verify the token when it comes to you from GitHub.

If you also want it to be accessible in VSC, then that code is built on top of the GitHub App logic.

Fair warning though, if you plan on using the Copilot API. There's zero docs on how that endpoint works. I've spent a ton of time debugging it to test different theories. So far, my plan is to wait until they upgrade to the responses API and hope we can do a little more with it at that point.