Use live gh-aw version for MCP inspector and make tool icons spec-compliant#45450
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Review Go module modelcontextprotocol/go-sdk
Use live gh-aw version for MCP inspector and make tool icons spec-compliant
Jul 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Aligns MCP client metadata and tool icons with protocol expectations.
Changes:
- Uses the live CLI version for MCP inspector clients.
- Centralizes MCP tool icon generation and updates tests.
- Changes the generated auto-upgrade schedule.
Show a summary per file
| File | Description |
|---|---|
pkg/cli/mcp_tools_readonly.go |
Uses shared icon generation. |
pkg/cli/mcp_tools_privileged.go |
Uses shared icon generation. |
pkg/cli/mcp_tools_management.go |
Uses shared icon generation. |
pkg/cli/mcp_tool_icons.go |
Generates SVG data-URI icons. |
pkg/cli/mcp_server_tools_test.go |
Updates icon expectations. |
pkg/cli/mcp_inspect_test.go |
Tests version and icon generation. |
pkg/cli/mcp_inspect_mcp.go |
Reports the live CLI version. |
.github/workflows/agentic-auto-upgrade.yml |
Changes the weekly execution time. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 8/8 changed files
- Comments generated: 2
- Review effort level: Medium
|
|
||
| func mcpEmojiIconSource(emoji string) string { | ||
| svg := fmt.Sprintf(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><text x="16" y="24" font-size="24" text-anchor="middle">%s</text></svg>`, emoji) | ||
| return "data:image/svg+xml," + url.PathEscape(svg) |
Contributor
Author
There was a problem hiding this comment.
Reverted in the latest commit. The cron is back to "21 3 * * 5" (Friday) as it was on the base branch.
Collaborator
|
@copilot please run the
|
- Switch mcpEmojiIconSource from percent-encoding to base64 encoding so the data:image/svg+xml;base64, URI form is used, which is more broadly accepted by strict MCP clients. - Update TestMCPEmojiIconSource_ReturnsDataURI to assert base64 prefix and decode with base64.StdEncoding instead of url.PathUnescape. - Revert the unrelated cron schedule change in agentic-auto-upgrade.yml back to the original "21 3 * * 5" (Friday). Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
yhya24554-cpu
approved these changes
Jul 14, 2026
yhya24554-cpu
approved these changes
Jul 14, 2026
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 SDK review surfaced two small protocol-alignment gaps in
gh-aw: the inspector client reported a hardcoded version, and MCP tool icons used raw emoji instead of URI-backed icon sources. This change aligns the MCP metadata we emit with the SDK/spec while preserving current UX.Inspector client identity
gh-aw-inspectorversion withGetVersion().Spec-compliant MCP tool icons
Icon.Sourcevalues with generateddata:image/svg+xml,...URIs.📊,📋,🔍, etc.) while making the icon payload valid for stricter MCP clients.Focused test coverage
Example of the new icon encoding approach: