Add Capabilities API configuration to disable listChanged notifications for static MCP tools#6292
Merged
Merged
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Capabilities API configuration to MCP servers
Add Capabilities API configuration to disable listChanged notifications for static MCP tools
Dec 12, 2025
pelikhan
approved these changes
Dec 12, 2025
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.
The MCP server was not configuring capabilities, causing clients to expect dynamic tool list notifications even though gh-aw's tools are static and never change at runtime.
Changes
pkg/cli/mcp_server.goto setTools.ListChanged: falseImplementation
This reduces unnecessary overhead by signaling to clients that they don't need to listen for tool list change notifications.
Note
The issue referenced
pkg/gateway/gateway.gobut this file doesn't exist. Onlypkg/cli/mcp_server.gocreates an MCP server instance and required updating.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
go.googlesource.com/update-job-proxy /update-job-proxy -o br-6071feb4dff5 -j DOCKER-ISOLATION-STAGE-2 Trus_Root_CA.pem /usr/share/ca-certificates/mozilla/SSL.com_Root_Certification_Authority_RSA.crt test tos_TrustedRoot_git go /home/dependabot--global sed -e CA1.pem /usr/share/ca-certificates/mozilla/UCA_Global_G2_Root.crt /usr/local/sbin/test(dns block)/update-job-proxy /update-job-proxy -o br-123541d8a3f6 -j DOCKER-ISOLATION-STAGE-2 e=false sed e/git-remote-https _-_G2.pem %H %ct %D bb2e21e6144e6004blob e/git-remote-htt346938d642f2ec3594ed81d874461961cd0faa76:go.mod rese�� om/charmbracelet/x --hard /bin/git ID_Root_G2.pem /usr/share/ca-ce--wait /usr/bin/sed git(dns block)go.uber.org/update-job-proxy /update-job-proxy -o br-6071feb4dff5 -j DOCKER-ISOLATION-STAGE-2 Trus_Root_CA.pem /usr/share/ca-certificates/mozilla/SSL.com_Root_Certification_Authority_RSA.crt test tos_TrustedRoot_git go /home/dependabot--global sed -e CA1.pem /usr/share/ca-certificates/mozilla/UCA_Global_G2_Root.crt /usr/local/sbin/test(dns block)/update-job-proxy /update-job-proxy -o br-123541d8a3f6 -j DOCKER-ISOLATION-STAGE-2 e=false sed e/git-remote-https _-_G2.pem %H %ct %D bb2e21e6144e6004blob e/git-remote-htt346938d642f2ec3594ed81d874461961cd0faa76:go.mod rese�� om/charmbracelet/x --hard /bin/git ID_Root_G2.pem /usr/share/ca-ce--wait /usr/bin/sed git(dns block)go.yaml.in/update-job-proxy /update-job-proxy -o br-6071feb4dff5 -j DOCKER-ISOLATION-STAGE-2 Trus_Root_CA.pem /usr/share/ca-certificates/mozilla/SSL.com_Root_Certification_Authority_RSA.crt test tos_TrustedRoot_git go /home/dependabot--global sed -e CA1.pem /usr/share/ca-certificates/mozilla/UCA_Global_G2_Root.crt /usr/local/sbin/test(dns block)/update-job-proxy /update-job-proxy -o br-123541d8a3f6 -j DOCKER-ISOLATION-STAGE-2 e=false sed e/git-remote-https _-_G2.pem %H %ct %D bb2e21e6144e6004blob e/git-remote-htt346938d642f2ec3594ed81d874461961cd0faa76:go.mod rese�� om/charmbracelet/x --hard /bin/git ID_Root_G2.pem /usr/share/ca-ce--wait /usr/bin/sed git(dns block)gopkg.in/update-job-proxy /update-job-proxy -o br-6071feb4dff5 -j DOCKER-ISOLATION-STAGE-2 Trus_Root_CA.pem /usr/share/ca-certificates/mozilla/SSL.com_Root_Certification_Authority_RSA.crt test tos_TrustedRoot_git go /home/dependabot--global sed -e CA1.pem /usr/share/ca-certificates/mozilla/UCA_Global_G2_Root.crt /usr/local/sbin/test(dns block)/update-job-proxy /update-job-proxy -o br-123541d8a3f6 -j DOCKER-ISOLATION-STAGE-2 e=false sed e/git-remote-https _-_G2.pem %H %ct %D bb2e21e6144e6004blob e/git-remote-htt346938d642f2ec3594ed81d874461961cd0faa76:go.mod rese�� om/charmbracelet/x --hard /bin/git ID_Root_G2.pem /usr/share/ca-ce--wait /usr/bin/sed git(dns block)https://api.github.com/user/usr/bin/gh gh api user --jq .login --noprofile ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet me-repo a27efde6d2db850agit pkg/cli/mcp_workconfig /opt/hostedtoolcuser.name bash --no��(http block)/usr/bin/gh gh api user --jq .login pkg/cli/templates/ ache/go/1.25.0/x64/pkg/tool/linuTest User ache/go/1.25.0/x64/pkg/tool/linux_amd64/cgo 96/create_issue.git -buildtags 1/x64/bin/node ache/go/1.25.0/x64/pkg/tool/linux_amd64/cgo api eam.git eam.git e/git-remote-https -bool -buildtags 7198321/b403/scrxterm-color e/git-remote-https(http block)/usr/bin/gh gh api user --jq .login /run/containerd/io.containerd.runtime.v2.task/moby/327a639d8600ed0b2ff23a02c2627ac9bd31536e3ace98c2e323b194abf07fe1/init.pid 327a639d8600ed0b2ff23a02c2627ac9bd31536e3ace98c2e323b194abf07fe1 ps ac9bd31536e3ace98c2e323b194abf07fe1/log.json /tmp/go-build313aw -d/gh-aw ps -act�� -action.git -d/gh-aw /usr/bin/infocmp pload-artifact/gbash /tmp/go-build313/usr/bin/runc e/git-remote-htt--root infocmp(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.