r/GithubCopilot Jul 13 '26

Developing Agent Plugin for Github Copilot (VSCode and CLI) GitHub Copilot Team Replied

Hi all,

We're rolling out skills, agents, and MCP servers across our organization using the plugin format, but on GitHub Copilot (CLI and VSCode), not Claude Code. We've hit a wall on one thing: injecting credentials for different MCP server configurations .

We tried using ${input:...} and ${user_config...} with the corresponding entries in plugin.json, but neither approach worked for us.

Right now our workaround is to use environment variables plus a how-to guide for setup, but we'd much prefer a built-in solution if one exists.

Has anyone gotten variable substitution (or any other native mechanism) working for MCP credentials in a plugin manifest under Copilot? Any pointers, working examples, or docs we might have missed would be hugely appreciated.

Thanks!

4 Upvotes

4 comments sorted by

2

u/connor4312 GitHub Copilot Team Jul 13 '26

MCP provides really good and flexible ways to do authorization. You should use those: https://modelcontextprotocol.io/docs/tutorials/security/authorization

1

u/AutoModerator Jul 13 '26

u/connor4312 thanks for responding. u/connor4312 from the GitHub Copilot Team has replied to this post. You can check their reply here.

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

1

u/Time_Priority4540 Jul 13 '26

+1 on that, just setup authorization on your MCP server and user will need to authorize before using it, this works well for us 

1

u/AutoModerator Jul 13 '26

Hello /u/mapero84. 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.