MCPcopy Create free account
hub / github.com/coder/aibridge / Init

Method Init

mcp/api.go:13–13  ·  view source on GitHub ↗

Init initializes the proxier, establishing a connection with the upstream server and fetching resources.

(context.Context)

Source from the content-addressed store, hash-verified

11type ServerProxier interface {
12 // Init initializes the proxier, establishing a connection with the upstream server and fetching resources.
13 Init(context.Context) error
14 // Gracefully shut down connections to the MCP server. Session management will vary per transport.
15 // See https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#session-management.
16 Shutdown(ctx context.Context) error

Callers 2

mainFunction · 0.95
InitMethod · 0.65

Implementers 5

mockServerProxierintercept/messages/base_test.go
ServerProxyManagermcp/server_proxy_manager.go
StreamableHTTPServerProxymcp/proxy_streamable_http.go
MockServerProxiermcpmock/mcpmock.go

Calls

no outgoing calls

Tested by

no test coverage detected