(scope: ServerScope, directory: string, sdk: OpencodeClient)
| 59 | } |
| 60 | |
| 61 | export const loadMcpQuery = (scope: ServerScope, directory: string, sdk: OpencodeClient) => |
| 62 | queryOptions({ |
| 63 | queryKey: [scope, directory, "mcp"] as const, |
| 64 | queryFn: () => sdk.mcp.status().then((r) => r.data ?? {}), |
| 65 | }) |
| 66 | |
| 67 | export const loadMcpResourcesQuery = (scope: ServerScope, directory: string, sdk: OpencodeClient) => |
| 68 | queryOptions<Record<string, McpResource>>({ |
no test coverage detected