Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client adapts an official MCP SDK client session to the transport-neutral mcpkit.Client interface.
func ConnectStdio ¶
func ConnectStdio(ctx context.Context, cfg StdioConfig) (*Client, error)
func ConnectStreamableHTTP ¶
func ConnectStreamableHTTP(ctx context.Context, cfg StreamableHTTPConfig) (*Client, error)
type StdioConfig ¶
type StdioConfig struct {
Command string
Args []string
Env []string
Dir string
Name string
Version string
TerminateDuration time.Duration
}
StdioConfig describes a local MCP server process managed through the official SDK CommandTransport. Command, Args, Env, and Dir are host-owned config.
type StreamableHTTPConfig ¶
type StreamableHTTPConfig struct {
Endpoint string
HTTPClient *http.Client
MaxRetries int
EnableStandaloneSSE bool
OAuthHandler auth.OAuthHandler
Name string
Version string
}
StreamableHTTPConfig describes a remote MCP endpoint managed through the official SDK StreamableClientTransport. The first adapter slice defaults to request/response mode by disabling standalone SSE unless explicitly enabled.
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
goagent-mcp-http
command
|
|
|
http-smoke
command
|
|
|
stdio-smoke
command
|
Click to show internal directories.
Click to hide internal directories.