MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getToolBuckets

Function getToolBuckets

src/components/agents/ToolSelector.tsx:49–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 OTHER: ToolBucket;
48};
49function getToolBuckets(): ToolBuckets {
50 return {
51 READ_ONLY: {
52 name: 'Read-only tools',
53 toolNames: new Set([GlobTool.name, GrepTool.name, ExitPlanModeV2Tool.name, FileReadTool.name, WebFetchTool.name, TodoWriteTool.name, WebSearchTool.name, TaskStopTool.name, TaskOutputTool.name, ListMcpResourcesTool.name, ReadMcpResourceTool.name])
54 },
55 EDIT: {
56 name: 'Edit tools',
57 toolNames: new Set([FileEditTool.name, FileWriteTool.name, NotebookEditTool.name])
58 },
59 EXECUTION: {
60 name: 'Execution tools',
61 toolNames: new Set([BashTool.name, "external" === 'ant' ? TungstenTool.name : undefined].filter(n => n !== undefined))
62 },
63 MCP: {
64 name: 'MCP tools',
65 toolNames: new Set(),
66 // Dynamic - no static list
67 isMcp: true
68 },
69 OTHER: {
70 name: 'Other tools',
71 toolNames: new Set() // Dynamic - catch-all for uncategorized tools
72 }
73 };
74}
75
76// Helper to get MCP server buckets dynamically
77function getMcpServerBuckets(tools: Tools): Array<{

Callers 1

ToolSelectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected