()
| 80 | } |
| 81 | |
| 82 | function authState() { |
| 83 | return Effect.gen(function* () { |
| 84 | const cfg = yield* Config.Service |
| 85 | const mcp = yield* MCP.Service |
| 86 | const config = yield* cfg.get() |
| 87 | const auth = yield* Effect.all( |
| 88 | Object.fromEntries(oauthServers(config).map(([name]) => [name, mcp.getAuthStatus(name)])), |
| 89 | { concurrency: "unbounded" }, |
| 90 | ) |
| 91 | return { config, auth } |
| 92 | }) |
| 93 | } |
| 94 | |
| 95 | export const McpCommand = cmd({ |
| 96 | command: "mcp", |
no test coverage detected