MCPcopy Index your code
hub / github.com/Waishnav/devspace / toolNamesFor

Function toolNamesFor

src/server.ts:165–187  ·  view source on GitHub ↗
(config: ServerConfig)

Source from the content-addressed store, hash-verified

163}
164
165function toolNamesFor(config: ServerConfig): ToolNames {
166 return config.toolNaming === "short" || config.toolMode === "codex"
167 ? {
168 openWorkspace: "open_workspace",
169 read: "read",
170 write: "write",
171 edit: "edit",
172 grep: "grep",
173 glob: "glob",
174 ls: "ls",
175 shell: "bash",
176 }
177 : {
178 openWorkspace: "open_workspace",
179 read: "read_file",
180 write: "write_file",
181 edit: "edit_file",
182 grep: "grep_files",
183 glob: "find_files",
184 ls: "list_directory",
185 shell: "run_shell",
186 };
187}
188
189function serverInstructions(config: ServerConfig, toolNames: ToolNames): string {
190 if (config.toolMode === "codex") {

Callers 1

createMcpServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected