Function
config
(name: string, headers?: Record<string, string>)
Source from the content-addressed store, hash-verified
| 130 | const service = MCP.Service as unknown as Effect.Effect<MCPNS.Interface, never, never> |
| 131 | |
| 132 | const config = (name: string, headers?: Record<string, string>) => ({ |
| 133 | mcp: { |
| 134 | [name]: { |
| 135 | type: "remote" as const, |
| 136 | url: "https://example.com/mcp", |
| 137 | headers, |
| 138 | }, |
| 139 | }, |
| 140 | }) |
| 141 | |
| 142 | const withCallbackStop = Effect.addFinalizer(() => Effect.promise(() => McpOAuthCallback.stop()).pipe(Effect.ignore)) |
| 143 | |
Tested by
no test coverage detected