MCPcopy Index your code
hub / github.com/coder/coder / Build

Method Build

coderd/aibridged/mcp.go:33–33  ·  view source on GitHub ↗

Build creates a [mcp.ServerProxier] for the given request initiator. At minimum, the Coder MCP server will be proxied. The SessionKey from [Request] is used to authenticate against the Coder MCP server. NOTE: the [mcp.ServerProxier] instance may be proxying one or more MCP servers.

(ctx context.Context, req Request, tracer trace.Tracer)

Source from the content-addressed store, hash-verified

31 //
32 // NOTE: the [mcp.ServerProxier] instance may be proxying one or more MCP servers.
33 Build(ctx context.Context, req Request, tracer trace.Tracer) (mcp.ServerProxier, error)
34}
35
36var _ MCPProxyBuilder = &MCPProxyFactory{}

Callers 15

createWorkspaceFunction · 0.65
runOnceMethod · 0.65
TestBuilder_NoOptionsFunction · 0.65
TestBuilder_InitiatorFunction · 0.65
TestBuilder_BaggageFunction · 0.65
TestBuilder_ReasonFunction · 0.65

Implementers 5

Buildercoderd/wsbuilder/wsbuilder.go
MCPProxyFactorycoderd/aibridged/mcp.go
mockMCPFactorycoderd/aibridged/pool_test.go
blockingMCPFactorycoderd/aibridged/pool_test.go
Buildercli/clilog/clilog.go

Calls

no outgoing calls

Tested by 12

TestBuilder_NoOptionsFunction · 0.52
TestBuilder_InitiatorFunction · 0.52
TestBuilder_BaggageFunction · 0.52
TestBuilder_ReasonFunction · 0.52
testHandlerFunction · 0.52