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

Struct ServerProxyManager

aibridge/mcp/server_proxy_manager.go:22–29  ·  view source on GitHub ↗

ServerProxyManager can act on behalf of multiple [ServerProxier]s. It aggregates all server resources (currently just tools) across all MCP servers for the purpose of injection into bridged requests and invocation.

Source from the content-addressed store, hash-verified

20// It aggregates all server resources (currently just tools) across all MCP servers
21// for the purpose of injection into bridged requests and invocation.
22type ServerProxyManager struct {
23 proxiers map[string]ServerProxier
24 tracer trace.Tracer
25
26 // Protects access to the tools map.
27 toolsMu sync.RWMutex
28 tools map[string]*Tool
29}
30
31func NewServerProxyManager(proxiers map[string]ServerProxier, tracer trace.Tracer) *ServerProxyManager {
32 return &ServerProxyManager{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected