(slug: string)
| 100 | ); |
| 101 | |
| 102 | const updateSpecCode = (slug: string) => ` |
| 103 | const updated = await tools.executor.openapi.updateSpec({ |
| 104 | slug: ${JSON.stringify(slug)}, |
| 105 | }); |
| 106 | return updated.ok ? { |
| 107 | ok: true, |
| 108 | slug: updated.data.slug, |
| 109 | toolCount: updated.data.toolCount, |
| 110 | addedTools: updated.data.addedTools, |
| 111 | removedTools: updated.data.removedTools, |
| 112 | } : { ok: false, error: updated.error }; |
| 113 | `; |
| 114 | |
| 115 | /** Run the agent tool and approve its catalog-changing action. */ |
| 116 | const executeJson = (session: McpSession, code: string) => |
no outgoing calls
no test coverage detected