This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 508f0335e1 [MINOR] improve(mcp): change the tag of metadata tool to
tag and policy (#8248)
508f0335e1 is described below
commit 508f0335e144da20499bb8cff1da42ab6ad6eb13
Author: FANNG <[email protected]>
AuthorDate: Mon Aug 25 11:17:27 2025 +0900
[MINOR] improve(mcp): change the tag of metadata tool to tag and policy
(#8248)
### What changes were proposed in this pull request?
change the tag of metadata tool to `tag` and `policy`
### Why are the changes needed?
metadata tool is used only for `tag` and `policy`
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
testing whether export metadata tools for tag and policy
---
mcp-server/mcp_server/main.py | 5 +++--
mcp-server/mcp_server/tools/metadata.py | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/mcp-server/mcp_server/main.py b/mcp-server/mcp_server/main.py
index c325ea17c4..e48ee69686 100644
--- a/mcp-server/mcp_server/main.py
+++ b/mcp-server/mcp_server/main.py
@@ -75,8 +75,9 @@ def _parse_args():
"--include-tool-tags",
type=_comma_separated_set,
default=set(),
- help="The tool tags to include, separated by commas, support
tags:[catalog, schema, table]. "
- "(default: empty, all tools will be included).",
+ help="The tool tags to include, separated by commas, support
tags:[catalog, "
+ "schema, table, topic, model, fileset, tag, policy]. default: empty, "
+ "all tools will be included).",
)
parser.add_argument(
diff --git a/mcp-server/mcp_server/tools/metadata.py
b/mcp-server/mcp_server/tools/metadata.py
index 71320cdcb2..0782fd54ba 100644
--- a/mcp-server/mcp_server/tools/metadata.py
+++ b/mcp-server/mcp_server/tools/metadata.py
@@ -19,7 +19,7 @@ from fastmcp import Context, FastMCP
def load_metadata_tool(mcp: FastMCP):
- @mcp.tool(tags={"metadata"})
+ @mcp.tool(tags={"tag", "policy"})
async def metadata_type_to_fullname_formats(ctx: Context) -> dict:
"""
Get metadata type to full name formats.