MCPcopy Index your code
hub / github.com/anomalyco/opencode / config

Function config

packages/opencode/test/mcp/oauth-browser.test.ts:132–140  ·  view source on GitHub ↗
(name: string, headers?: Record<string, string>)

Source from the content-addressed store, hash-verified

130const service = MCP.Service as unknown as Effect.Effect<MCPNS.Interface, never, never>
131
132const 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
142const withCallbackStop = Effect.addFinalizer(() => Effect.promise(() => McpOAuthCallback.stop()).pipe(Effect.ignore))
143

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected