testTools returns a set of mock tools across different toolsets with mixed read-only/write capabilities
()
| 165 | |
| 166 | // testTools returns a set of mock tools across different toolsets with mixed read-only/write capabilities |
| 167 | func testTools() []inventory.ServerTool { |
| 168 | return []inventory.ServerTool{ |
| 169 | mockTool("get_file_contents", "repos", true), |
| 170 | mockTool("create_repository", "repos", false), |
| 171 | mockTool("list_issues", "issues", true), |
| 172 | mockTool("create_issue", "issues", false), |
| 173 | mockTool("list_pull_requests", "pull_requests", true), |
| 174 | mockTool("create_pull_request", "pull_requests", false), |
| 175 | // Feature-flagged tools for testing X-MCP-Features header |
| 176 | mockToolWithFeatureFlag("needs_holdback", "repos", true, "mcp_holdback_consolidated_projects", ""), |
| 177 | mockToolWithFeatureFlag("hidden_by_holdback", "repos", true, "", "mcp_holdback_consolidated_projects"), |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | // extractToolNames extracts tool names from an inventory |
| 182 | func extractToolNames(ctx context.Context, inv *inventory.Inventory) []string { |
no test coverage detected