roryqi opened a new pull request, #13477:
URL: https://github.com/apache/gravitino/pull/13477
### What changes were proposed in this pull request?
Add MCP tools for managing policy-to-tag associations:
- List policies associated with a tag.
- Associate a policy with a tag and selector.
- Remove a policy association from a tag.
- List tags associated with a policy.
Also add REST client support, URL encoding coverage, unit tests, and MCP
documentation.
### Why are the changes needed?
Policy associations are now managed through tags instead of direct
metadata-object associations. The MCP server needs corresponding tools so
agents can manage and inspect policy-to-tag relationships.
Fix: #12176
### Does this PR introduce _any_ user-facing change?
Yes. The MCP server exposes four new tools:
- `list_policies_for_tag`
- `associate_policy_with_tag`
- `disassociate_policy_from_tag`
- `list_tags_for_policy`
### How was this patch tested?
- `./gradlew :mcp-server:testPython`
- 278 tests passed.
- `./gradlew :mcp-server:formatCheckPython`
- `git diff --check`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]