Documentation
¶
Index ¶
- type Factory
- type Session
- func (s *Session) CallTool(ctx context.Context, toolName string, args map[string]any) (*mcpServer.InvokeMCPToolResponseBody, error)
- func (s *Session) Close(ctx context.Context) error
- func (s *Session) Complete(ctx context.Context, req mcpServer.MCPCompleteArgumentRequestBody) (*mcpServer.MCPCompletionResult, error)
- func (s *Session) Discover(ctx context.Context, config mcpServer.RuntimeConfig) (mcpServer.MCPDiscoverySnapshot, error)
- func (s *Session) GetPrompt(ctx context.Context, name string, args map[string]string) (*mcpServer.MCPGetPromptResponseBody, error)
- func (s *Session) ReadResource(ctx context.Context, uri string) (*mcpServer.MCPReadResourceResponseBody, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory( clientInfo mcpServer.ClientInfo, ) (*Factory, error)
func NewFactoryWithLogger ¶
func (*Factory) Connect ¶
func (f *Factory) Connect( ctx context.Context, cfg mcpServer.RuntimeConfig, resolved mcpConnection.PreparedConnection, events mcpConnection.ClientNotificationSink, ) (mcpConnection.ClientSession, error)
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) Complete ¶
func (s *Session) Complete( ctx context.Context, req mcpServer.MCPCompleteArgumentRequestBody, ) (*mcpServer.MCPCompletionResult, error)
func (*Session) Discover ¶
func (s *Session) Discover( ctx context.Context, config mcpServer.RuntimeConfig, ) (mcpServer.MCPDiscoverySnapshot, error)
func (*Session) ReadResource ¶
Click to show internal directories.
Click to hide internal directories.