mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
don't return hidden tags for query_all_transaction_tags mcp tool
This commit is contained in:
@@ -49,10 +49,14 @@ func (h *mcpQueryAllTransactionTagsToolHandler) Handle(c *core.WebContext, callT
|
|||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
tagNames := make([]string, len(tags))
|
tagNames := make([]string, 0, len(tags))
|
||||||
|
|
||||||
for i := 0; i < len(tags); i++ {
|
for i := 0; i < len(tags); i++ {
|
||||||
tagNames[i] = tags[i].Name
|
if tags[i].Hidden {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
tagNames = append(tagNames, tags[i].Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
response := MCPAllQueryTransactionTagsResponse{
|
response := MCPAllQueryTransactionTagsResponse{
|
||||||
|
|||||||
Reference in New Issue
Block a user