POST a non-codemode tools/list to the real worker.
(token: string)
| 45 | { name: 'script_name', in: 'path', required: true } |
| 46 | ], |
| 47 | responses: {} |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | /** POST a non-codemode tools/list to the real worker. */ |
| 53 | async function listNonCodemodeTools(token: string) { |
| 54 | const base = mcpToolListRequest(token) |
| 55 | const req = new Request(`${MCP_URL}?codemode=false`, base) |
| 56 | const result = (await parseMcpResult(await exports.default.fetch(req))) as unknown as { |
| 57 | result?: { |
| 58 | tools?: Array<{ |
| 59 | name: string |
| 60 | description?: string |
| 61 | inputSchema: { properties?: Record<string, unknown>; required?: string[] } |
| 62 | }> |
| 63 | } |
no test coverage detected