Skip to content

fix: hide write UI resources in read-only mode#2574

Open
he-yufeng wants to merge 1 commit into
github:mainfrom
he-yufeng:fix/read-only-ui-resources-v2
Open

fix: hide write UI resources in read-only mode#2574
he-yufeng wants to merge 1 commit into
github:mainfrom
he-yufeng:fix/read-only-ui-resources-v2

Conversation

@he-yufeng
Copy link
Copy Markdown

Summary

  • pass the static read-only setting into MCP App UI resource registration
  • keep get_me_ui available in read-only mode but skip write-form resources for issues and pull requests
  • add a regression test that lists registered UI resources in read-only mode

To verify

  • go test ./pkg/github -run 'TestRegisterUIResources|TestNewMCPServer_RegistersUIResources' -count=1
  • go test ./internal/ghmcp -count=1
  • go test ./...
  • git diff --check

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant