Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Upgrade to MCP Go SDK v1.2.0-pre.1 and add Octicon icons to tools#1588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
SamMorrowDrums wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromupgrade-go-sdk-prerelease

Conversation

@SamMorrowDrums
Copy link
Collaborator

Summary

This PR upgrades the MCP Go SDK from v1.1.0 to v1.2.0-pre.1, which adds support for SEP-973 (icons and metadata). The new SDK includes:

  • Icons field on Tool struct (SEP-973)
  • Tool name validation
  • Elicitation defaults
  • URL mode elicitation
  • SSE connection polling timeouts

Changes

SDK Upgrade

  • Upgradegithub.com/modelcontextprotocol/go-sdk to v1.2.0-pre.1

Icon Support Implementation

  • AddIcon field toToolsetMetadata struct with Octicon names
  • AddOcticonURL() helper function to generate Octicon CDN URLs
  • AddToolsetIcon() method onToolsetMetadata to createmcp.Icon slices
  • AddSetIcons() method onToolset for setting default icons per toolset
  • AddapplyIcons() method to automatically apply toolset icons to tools when added
  • AddWithIcons() method onServerTool for manual icon assignment

Configured Icons

Each toolset now has an appropriate Octicon icon assigned:

ToolsetIcon
reposrepo
issuesissue-opened
pull_requestsgit-pull-request
actionsplay
userspeople
orgsorganization
gitgit-branch
contextperson
code_securitycodescan
secret_protectionkey
dependabotdependabot
notificationsbell
discussionscomment-discussion
gistscode
security_advisoriesshield
projectsproject
stargazersstar
experimentsbeaker
dynamictools
labelstag

Icons are sourced fromGitHub's Primer Octicons and provided in both 16x16 and 24x24 sizes as SVG via the CDN URL format:
https://raw.githubusercontent.com/primer/octicons/main/icons/{name}-{size}.svg

Testing

  • script/lint passes
  • script/test passes
  • ✅ Build succeeds

Notes

This is a draft PR to test compatibility with the pre-release SDK. The icons feature requires MCP clients that support the new icons specification (SEP-973).

This PR upgrades the MCP Go SDK from v1.1.0 to v1.2.0-pre.1 with SEP-973 support.Changes:- Upgrade go-sdk to v1.2.0-pre.1 (adds icons, tool validation, elicitation)- Add Icon field to ToolsetMetadata with Octicon names- Add OcticonURL() and ToolsetIcon() helpers for icon generation- Add SetIcons() and applyIcons() to Toolset for auto icon assignment- Add WithIcons() on ServerTool for manual icon setting- Configure Octicon icons for all toolsets (repo, issue-opened, etc.)- Icons provided in 16x16 and 24x24 SVG from Primer Octicons CDN
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotAwaiting requested review from CopilotCopilot will automatically review once the pull request is marked ready for review

1 more reviewer

@t3xash0rnyt0ad777-commitst3xash0rnyt0ad777-commitst3xash0rnyt0ad777-commits requested changes

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@SamMorrowDrums@t3xash0rnyt0ad777-commits

[8]ページ先頭

©2009-2025 Movatter.jp