AddMCP adds an MCP tool pattern. Matches tools advertised by any configured MCP server.
(toolName string)
| 72 | // AddMCP adds an MCP tool pattern. Matches tools advertised by any configured |
| 73 | // MCP server. |
| 74 | func (s *ToolSet) AddMCP(toolName string) *ToolSet { |
| 75 | validateToolName("mcp", toolName) |
| 76 | s.items = append(s.items, "mcp:"+toolName) |
| 77 | return s |
| 78 | } |
| 79 | |
| 80 | // ToSlice returns a defensive copy of the accumulated filter strings. |
| 81 | func (s *ToolSet) ToSlice() []string { |