Repository navigation
Copilot: MCP servers, skills, AGENTS.md, Fusion and tool images - #417
Merged
Merged
Conversation
- IDE-wide MCP connectors under Settings > AI Chat > Connectors, stored in ~/.copilot/mcp-config.json, secrets in a shared ISecretStore, OAuth sign-in - Per-connector secret delivery via session config (no env leakage) - Load skills and AGENTS.md from user directories and open projects - Tool search enabled, core OneWare tools always loaded; surface context-blocked warnings in chat - Resolve login shell robustly for PATH (nvm/npx) - Remove getFocusedFile (replaced by attachments) and make focused-document tracking robust (floating windows, tab close, throwing handlers) - Cloud login refresh tokens moved to ISecretStore
…dates, new UI) - McpConnectorHub owns <AppData>/Copilot/mcp.json (Copilot CLI format plus id, disabled, secretEnv, secretHeaders); secrets are one ISecretStore entry per server. The file is watched, can be edited by hand and is never overwritten when broken. - Chats get the enabled servers as session MCP servers; changes only start, restart or stop the servers that changed. Copilot CLI user servers are disabled in OneWare chats and offered for import. - Settings list with status, toggle, sign-in and overflow menu; editor that fills from a pasted snippet, with Test and Advanced OAuth options. - Per-chat MCP server list in the chat's overflow menu (GitHub Copilot and OneWare Agents), with a warning dot for failed or signed-out servers. - IOneWareAiFunction.AlwaysLoaded keeps core IDE tools out of tool search deferral; read-only agents allow MCP tools marked read-only. - Tests and plugin docs updated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Bump GitHub.Copilot.SDK to 1.0.28 and Copilot CLI to 1.0.105 - Offer account-specific auto routing tiers incl. HydraFusion, show Fusion review phases as sub-agent blocks - Add ChatImageEvent and render images returned by tools (MCP, readFile) in the chat, stored per session Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
# Conflicts: # docs/PluginDevelopment.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the Copilot chat integration with MCP connectors, skills and AGENTS.md support. Also changes how tools are handled and how the focused file is tracked.
MCP servers
<AppData>/Copilot/mcp.json(Copilot CLImcpServersformat plusid,disabled,secretEnv,secretHeaders). The file can be edited by hand and is watched for changes. A broken file is reported and never overwritten.ISecretStoreentry per server (new shared store inOneWare.Essentials, implemented in Core). OAuth tokens are kept persistently by the runtime.~/.copilot/mcp-config.jsonare disabled in OneWare chats and offered for import..mcp.jsongets a one-time offer to trust the folder and start its servers.$SHELLlooked up onPATH, then/etc/passwd), so stdio servers can findnpxand similar tools installed through nvm.Skills, AGENTS.md, projects
AGENTS.mdis recognized.Tools
readFile,editFile,runTerminalCommand, …) are flaggedIOneWareAiFunction.AlwaysLoadedand never deferred. Read-only agents (Ask/Plan) allow MCP tools marked read-only.compaction_static_context_blockedwarning now shows in the chat instead of the generic "No response was returned".getFocusedFile; file attachments replace it.Focused file tracking
CurrentDocumentchange handler throws, the error is logged and tracking keeps working.Copilot Fusion
Images from tools
ChatImageEventinOneWare.Essentials(additive). The Copilot chats raise it for images in tool results: inline contents, binary results andsession.binary_assetreferences (e.g. MCP screenshots, images read byreadFile).<AppData>/Chat/Images/<sessionId>/, restored with the chat and deleted when the chat is pruned or history is cleared. Images over 20 MB are skipped.Other
ISecretStore. Tokens from the old Windows.binfiles are moved over the next time they are used.docs/PluginDevelopment.mdhas a new Connectors section.Testing
CopilotAutoTiersTests,CopilotToolImageTestsandChatImageStoreTests.ConnectorTests(store, hub, import, secrets),CopilotSessionConfigurationTestsandProjectWorkspaceTests. The Copilot (72) and Chat (60) unit tests and 4 Dock headless tests pass.