Documentation
ΒΆ
Overview ΒΆ
Package mcpadapter provides a simplified MCP Server Adapter using mark3labs/mcp-go client and langchaingo.
Package mcpadapter provides configuration management for the simplified MCP adapter.
Package mcpadapter provides LangChain tool implementation using mark3labs/mcp-go.
Package mcpadapter provides types for the simplified MCP adapter.
Index ΒΆ
- Constants
- func NewClientFactory() *clientFactory
- type ClientFactoryInterface
- type Config
- type MCPAdapter
- type MCPTool
- type MockAdapter
- func (m *MockAdapter) AddMockServer(name string, serverConfig *ServerConfig)
- func (m *MockAdapter) Close() error
- func (m *MockAdapter) GetAllServerStatuses() map[string]ServerStatus
- func (m *MockAdapter) GetAllTools(ctx context.Context) ([]tools.Tool, error)
- func (m *MockAdapter) GetConfig() *Config
- func (m *MockAdapter) GetGetAllToolsCalls() int
- func (m *MockAdapter) GetGetToolsCalls() []string
- func (m *MockAdapter) GetServerConfig(serverName string) (*ServerConfig, error)
- func (m *MockAdapter) GetServerStatusByName(serverName string) ServerStatus
- func (m *MockAdapter) GetStartServerCalls() []string
- func (m *MockAdapter) GetStopServerCalls() []string
- func (m *MockAdapter) GetToolsByServerName(ctx context.Context, serverName string) ([]tools.Tool, error)
- func (m *MockAdapter) IsConfigWatcherRunning() bool
- func (m *MockAdapter) IsServerDisabled(serverName string) (bool, error)
- func (m *MockAdapter) Reset()
- func (m *MockAdapter) SetConfigWatcher(running bool)
- func (m *MockAdapter) SetError(operation string, err error)
- func (m *MockAdapter) SetMockClientCloseFunc(f func() error)
- func (m *MockAdapter) SetMockClientCompleteFunc(...)
- func (m *MockAdapter) SetMockClientGetPromptFunc(...)
- func (m *MockAdapter) SetMockClientGetResourcesFunc(...)
- func (m *MockAdapter) SetMockClientInitializeFunc(...)
- func (m *MockAdapter) SetMockClientListPromptsByPageFunc(...)
- func (m *MockAdapter) SetMockClientListPromptsFunc(...)
- func (m *MockAdapter) SetMockClientListResourceTemplatesByPageFunc(...)
- func (m *MockAdapter) SetMockClientListResourceTemplatesFunc(...)
- func (m *MockAdapter) SetMockClientListResourcesByPageFunc(...)
- func (m *MockAdapter) SetMockClientListResourcesFunc(...)
- func (m *MockAdapter) SetMockClientListToolsByPageFunc(...)
- func (m *MockAdapter) SetMockClientListToolsFunc(...)
- func (m *MockAdapter) SetMockClientOnNotificationFunc(f func(handler func(notification mcp.JSONRPCNotification)))
- func (m *MockAdapter) SetMockClientUseToolFunc(...)
- func (m *MockAdapter) SetMockConfig(config *Config)
- func (m *MockAdapter) SetServerStatus(serverName string, status ServerStatus)
- func (m *MockAdapter) SetServerTools(serverName string, serverTools []tools.Tool)
- func (m *MockAdapter) SetStartDelay(delay time.Duration)
- func (m *MockAdapter) StartAllServers(ctx context.Context) error
- func (m *MockAdapter) StartServer(ctx context.Context, serverName string) error
- func (m *MockAdapter) StopServer(serverName string) error
- func (m *MockAdapter) WaitForServersReady(ctx context.Context, timeout time.Duration) error
- type MockMCPClient
- func (mc *MockMCPClient) CallTool(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error)
- func (mc *MockMCPClient) Close() error
- func (mc *MockMCPClient) Complete(ctx context.Context, request mcp.CompleteRequest) (*mcp.CompleteResult, error)
- func (mc *MockMCPClient) GetPrompt(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error)
- func (mc *MockMCPClient) Initialize(ctx context.Context, request mcp.InitializeRequest) (*mcp.InitializeResult, error)
- func (mc *MockMCPClient) ListPrompts(ctx context.Context, request mcp.ListPromptsRequest) (*mcp.ListPromptsResult, error)
- func (mc *MockMCPClient) ListPromptsByPage(ctx context.Context, request mcp.ListPromptsRequest) (*mcp.ListPromptsResult, error)
- func (mc *MockMCPClient) ListResourceTemplates(ctx context.Context, request mcp.ListResourceTemplatesRequest) (*mcp.ListResourceTemplatesResult, error)
- func (mc *MockMCPClient) ListResourceTemplatesByPage(ctx context.Context, request mcp.ListResourceTemplatesRequest) (*mcp.ListResourceTemplatesResult, error)
- func (mc *MockMCPClient) ListResources(ctx context.Context, request mcp.ListResourcesRequest) (*mcp.ListResourcesResult, error)
- func (mc *MockMCPClient) ListResourcesByPage(ctx context.Context, request mcp.ListResourcesRequest) (*mcp.ListResourcesResult, error)
- func (mc *MockMCPClient) ListTools(ctx context.Context, request mcp.ListToolsRequest) (*mcp.ListToolsResult, error)
- func (mc *MockMCPClient) ListToolsByPage(ctx context.Context, request mcp.ListToolsRequest) (*mcp.ListToolsResult, error)
- func (mc *MockMCPClient) OnNotification(handler func(notification mcp.JSONRPCNotification))
- func (mc *MockMCPClient) Ping(ctx context.Context) error
- func (mc *MockMCPClient) ReadResource(ctx context.Context, request mcp.ReadResourceRequest) (*mcp.ReadResourceResult, error)
- func (mc *MockMCPClient) SetLevel(ctx context.Context, request mcp.SetLevelRequest) error
- func (mc *MockMCPClient) Subscribe(ctx context.Context, request mcp.SubscribeRequest) error
- func (mc *MockMCPClient) Unsubscribe(ctx context.Context, request mcp.UnsubscribeRequest) error
- type MockTool
- type Option
- func WithClientFactory(factory ClientFactoryInterface) Option
- func WithConfig(config *Config) Option
- func WithConfigPath(path string) Option
- func WithConfigWatchCallback(callback func(*Config) error) Option
- func WithFileWatcher(enabled bool) Option
- func WithLogLevel(level string) Option
- func WithLogger(logger *log.Logger) Option
- type ServerConfig
- type ServerStatus
Constants ΒΆ
const ( // Transport types TransportStdio = "stdio" TransportSSE = "sse" TransportHTTP = "http" )
Variables ΒΆ
This section is empty.
Functions ΒΆ
func NewClientFactory ΒΆ
func NewClientFactory() *clientFactory
NewClientFactory creates a new client factory
Types ΒΆ
type ClientFactoryInterface ΒΆ
type ClientFactoryInterface interface {
CreateClient(config *ServerConfig) (mcpclient.MCPClient, error)
}
ClientFactoryInterface defines the interface for creating MCPClient instances. This allows for mocking the client creation process in tests.
type Config ΒΆ
type Config struct {
McpServers map[string]*ServerConfig `json:"mcpServers"`
}
Config represents the complete adapter configuration.
type MCPAdapter ΒΆ
type MCPAdapter interface {
// Server lifecycle management
StartServer(ctx context.Context, serverName string) error
StartAllServers(ctx context.Context) error
StopServer(serverName string) error
Close() error
// Status monitoring
GetServerStatusByName(serverName string) ServerStatus
GetAllServerStatuses() map[string]ServerStatus
WaitForServersReady(ctx context.Context, timeout time.Duration) error
// Tool access
GetToolsByServerName(ctx context.Context, serverName string) ([]tools.Tool, error)
GetAllTools(ctx context.Context) ([]tools.Tool, error)
// Configuration
IsConfigWatcherRunning() bool
IsServerDisabled(serverName string) (bool, error)
GetConfig() *Config
GetServerConfig(serverName string) (*ServerConfig, error)
}
MCPAdapter defines the interface for MCP adapter operations.
func New ΒΆ
func New(options ...Option) (MCPAdapter, error)
New creates a new MCP adapter using mark3labs/mcp-go client.
type MCPTool ΒΆ
type MCPTool struct {
// contains filtered or unexported fields
}
MCPTool implements the LangChain Tool interface for MCP tools using mark3labs/mcp-go.
func (*MCPTool) Description ΒΆ
Description returns the description of the tool, including JSON schema if available.
type MockAdapter ΒΆ
type MockAdapter struct {
// contains filtered or unexported fields
}
MockAdapter is a mock implementation of MCPAdapter for testing purposes.
func NewMockAdapter ΒΆ
func NewMockAdapter() *MockAdapter
NewMockAdapter creates a new mock adapter for testing.
func (*MockAdapter) AddMockServer ΒΆ
func (m *MockAdapter) AddMockServer(name string, serverConfig *ServerConfig)
AddMockServer adds a mock server configuration.
func (*MockAdapter) Close ΒΆ
func (m *MockAdapter) Close() error
Close simulates closing the adapter.
func (*MockAdapter) GetAllServerStatuses ΒΆ
func (m *MockAdapter) GetAllServerStatuses() map[string]ServerStatus
GetAllServerStatuses returns all mock server statuses.
func (*MockAdapter) GetAllTools ΒΆ
GetAllTools returns all mock tools from all servers.
func (*MockAdapter) GetConfig ΒΆ
func (m *MockAdapter) GetConfig() *Config
GetConfig returns the current mock complete configuration.
func (*MockAdapter) GetGetAllToolsCalls ΒΆ
func (m *MockAdapter) GetGetAllToolsCalls() int
GetGetAllToolsCalls returns the number of times GetAllLangChainTools was called.
func (*MockAdapter) GetGetToolsCalls ΒΆ
func (m *MockAdapter) GetGetToolsCalls() []string
GetGetToolsCalls returns the list of servers that GetToolsByServerName was called for.
func (*MockAdapter) GetServerConfig ΒΆ
func (m *MockAdapter) GetServerConfig(serverName string) (*ServerConfig, error)
GetServerConfig returns the configuration for a specific mock server.
func (*MockAdapter) GetServerStatusByName ΒΆ
func (m *MockAdapter) GetServerStatusByName(serverName string) ServerStatus
GetServerStatusByName returns the mock status for a server.
func (*MockAdapter) GetStartServerCalls ΒΆ
func (m *MockAdapter) GetStartServerCalls() []string
GetStartServerCalls returns the list of servers that StartServer was called for.
func (*MockAdapter) GetStopServerCalls ΒΆ
func (m *MockAdapter) GetStopServerCalls() []string
GetStopServerCalls returns the list of servers that StopServer was called for.
func (*MockAdapter) GetToolsByServerName ΒΆ
func (m *MockAdapter) GetToolsByServerName(ctx context.Context, serverName string) ([]tools.Tool, error)
GetToolsByServerName returns mock tools for a server.
func (*MockAdapter) IsConfigWatcherRunning ΒΆ
func (m *MockAdapter) IsConfigWatcherRunning() bool
IsConfigWatcherRunning returns the mock config watcher status.
func (*MockAdapter) IsServerDisabled ΒΆ
func (m *MockAdapter) IsServerDisabled(serverName string) (bool, error)
IsServerDisabled checks if a server is disabled in the mock configuration.
func (*MockAdapter) Reset ΒΆ
func (m *MockAdapter) Reset()
Reset clears all mock state and call tracking.
func (*MockAdapter) SetConfigWatcher ΒΆ
func (m *MockAdapter) SetConfigWatcher(running bool)
SetConfigWatcher sets whether the config watcher should appear to be running.
func (*MockAdapter) SetError ΒΆ
func (m *MockAdapter) SetError(operation string, err error)
SetError sets an error to be returned for a specific operation. Operations: "start", "stop", "tools", "alltools"
func (*MockAdapter) SetMockClientCloseFunc ΒΆ
func (m *MockAdapter) SetMockClientCloseFunc(f func() error)
SetMockClientCloseFunc sets the mock function for MockMCPClient.Close.
func (*MockAdapter) SetMockClientCompleteFunc ΒΆ
func (m *MockAdapter) SetMockClientCompleteFunc(f func( ctx context.Context, request mcp.CompleteRequest, ) (*mcp.CompleteResult, error))
SetMockClientCompleteFunc sets the mock function for MockMCPClient.Complete.
func (*MockAdapter) SetMockClientGetPromptFunc ΒΆ
func (m *MockAdapter) SetMockClientGetPromptFunc(f func( ctx context.Context, request mcp.GetPromptRequest, ) (*mcp.GetPromptResult, error))
SetMockClientGetPromptFunc sets the mock function for MockMCPClient.GetPrompt.
func (*MockAdapter) SetMockClientGetResourcesFunc ΒΆ
func (m *MockAdapter) SetMockClientGetResourcesFunc(f func( ctx context.Context, request mcp.ReadResourceRequest, ) (*mcp.ReadResourceResult, error))
SetMockClientGetResourcesFunc sets the mock function for MockMCPClient.GetResources.
func (*MockAdapter) SetMockClientInitializeFunc ΒΆ
func (m *MockAdapter) SetMockClientInitializeFunc(f func( ctx context.Context, request mcp.InitializeRequest, ) (*mcp.InitializeResult, error))
SetMockClientInitializeFunc sets the mock function for MockMCPClient.Initialize.
func (*MockAdapter) SetMockClientListPromptsByPageFunc ΒΆ
func (m *MockAdapter) SetMockClientListPromptsByPageFunc(f func( ctx context.Context, request mcp.ListPromptsRequest, ) (*mcp.ListPromptsResult, error))
SetMockClientListPromptsByPageFunc sets the mock function for MockMCPClient.ListPromptsByPage.
func (*MockAdapter) SetMockClientListPromptsFunc ΒΆ
func (m *MockAdapter) SetMockClientListPromptsFunc(f func( ctx context.Context, request mcp.ListPromptsRequest, ) (*mcp.ListPromptsResult, error))
SetMockClientListPromptsFunc sets the mock function for MockMCPClient.ListPrompts.
func (*MockAdapter) SetMockClientListResourceTemplatesByPageFunc ΒΆ
func (m *MockAdapter) SetMockClientListResourceTemplatesByPageFunc(f func( ctx context.Context, request mcp.ListResourceTemplatesRequest, ) (*mcp.ListResourceTemplatesResult, error))
SetMockClientListResourceTemplatesByPageFunc sets the mock function for MockMCPClient.ListResourceTemplatesByPage.
func (*MockAdapter) SetMockClientListResourceTemplatesFunc ΒΆ
func (m *MockAdapter) SetMockClientListResourceTemplatesFunc(f func( ctx context.Context, request mcp.ListResourceTemplatesRequest, ) (*mcp.ListResourceTemplatesResult, error))
SetMockClientListResourceTemplatesFunc sets the mock function for MockMCPClient.ListResourceTemplates.
func (*MockAdapter) SetMockClientListResourcesByPageFunc ΒΆ
func (m *MockAdapter) SetMockClientListResourcesByPageFunc(f func( ctx context.Context, request mcp.ListResourcesRequest, ) (*mcp.ListResourcesResult, error))
SetMockClientListResourcesByPageFunc sets the mock function for MockMCPClient.ListResourcesByPage.
func (*MockAdapter) SetMockClientListResourcesFunc ΒΆ
func (m *MockAdapter) SetMockClientListResourcesFunc(f func( ctx context.Context, request mcp.ListResourcesRequest, ) (*mcp.ListResourcesResult, error))
SetMockClientListResourcesFunc sets the mock function for MockMCPClient.ListResources.
func (*MockAdapter) SetMockClientListToolsByPageFunc ΒΆ
func (m *MockAdapter) SetMockClientListToolsByPageFunc(f func( ctx context.Context, request mcp.ListToolsRequest, ) (*mcp.ListToolsResult, error))
SetMockClientListToolsByPageFunc sets the mock function for MockMCPClient.ListToolsByPage.
func (*MockAdapter) SetMockClientListToolsFunc ΒΆ
func (m *MockAdapter) SetMockClientListToolsFunc(f func( ctx context.Context, request mcp.ListToolsRequest, ) (*mcp.ListToolsResult, error))
SetMockClientListToolsFunc sets the mock function for MockMCPClient.ListTools.
func (*MockAdapter) SetMockClientOnNotificationFunc ΒΆ
func (m *MockAdapter) SetMockClientOnNotificationFunc(f func(handler func(notification mcp.JSONRPCNotification)))
SetMockClientOnNotificationFunc sets the mock function for MockMCPClient.OnNotification.
func (*MockAdapter) SetMockClientUseToolFunc ΒΆ
func (m *MockAdapter) SetMockClientUseToolFunc(f func( ctx context.Context, request mcp.CallToolRequest, ) (*mcp.CallToolResult, error))
SetMockClientUseToolFunc sets the mock function for MockMCPClient.UseTool.
func (*MockAdapter) SetMockConfig ΒΆ
func (m *MockAdapter) SetMockConfig(config *Config)
SetMockConfig sets the complete mock configuration.
func (*MockAdapter) SetServerStatus ΒΆ
func (m *MockAdapter) SetServerStatus(serverName string, status ServerStatus)
SetServerStatus sets the status for a mock server.
func (*MockAdapter) SetServerTools ΒΆ
func (m *MockAdapter) SetServerTools(serverName string, serverTools []tools.Tool)
SetServerTools sets the tools that a mock server should return.
func (*MockAdapter) SetStartDelay ΒΆ
func (m *MockAdapter) SetStartDelay(delay time.Duration)
SetStartDelay sets a delay for server start operations.
func (*MockAdapter) StartAllServers ΒΆ
func (m *MockAdapter) StartAllServers(ctx context.Context) error
StartAllServers simulates starting all configured servers.
func (*MockAdapter) StartServer ΒΆ
func (m *MockAdapter) StartServer(ctx context.Context, serverName string) error
StartServer simulates starting a server.
func (*MockAdapter) StopServer ΒΆ
func (m *MockAdapter) StopServer(serverName string) error
StopServer simulates stopping a server.
func (*MockAdapter) WaitForServersReady ΒΆ
WaitForServersReady simulates waiting for servers to be ready.
type MockMCPClient ΒΆ
type MockMCPClient struct {
// contains filtered or unexported fields
}
MockMCPClient is a mock implementation of client.MCPClient for testing.
func (*MockMCPClient) CallTool ΒΆ
func (mc *MockMCPClient) CallTool(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error)
CallTool implements client.MCPClient.
func (*MockMCPClient) Close ΒΆ
func (mc *MockMCPClient) Close() error
Close implements client.MCPClient.
func (*MockMCPClient) Complete ΒΆ
func (mc *MockMCPClient) Complete(ctx context.Context, request mcp.CompleteRequest) (*mcp.CompleteResult, error)
Complete implements client.MCPClient.
func (*MockMCPClient) GetPrompt ΒΆ
func (mc *MockMCPClient) GetPrompt(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error)
GetPrompt implements client.MCPClient.
func (*MockMCPClient) Initialize ΒΆ
func (mc *MockMCPClient) Initialize(ctx context.Context, request mcp.InitializeRequest) (*mcp.InitializeResult, error)
Initialize implements client.MCPClient.
func (*MockMCPClient) ListPrompts ΒΆ
func (mc *MockMCPClient) ListPrompts( ctx context.Context, request mcp.ListPromptsRequest, ) (*mcp.ListPromptsResult, error)
ListPrompts implements client.MCPClient.
func (*MockMCPClient) ListPromptsByPage ΒΆ
func (mc *MockMCPClient) ListPromptsByPage( ctx context.Context, request mcp.ListPromptsRequest, ) (*mcp.ListPromptsResult, error)
ListPromptsByPage implements client.MCPClient.
func (*MockMCPClient) ListResourceTemplates ΒΆ
func (mc *MockMCPClient) ListResourceTemplates( ctx context.Context, request mcp.ListResourceTemplatesRequest, ) (*mcp.ListResourceTemplatesResult, error)
ListResourceTemplates implements client.MCPClient.
func (*MockMCPClient) ListResourceTemplatesByPage ΒΆ
func (mc *MockMCPClient) ListResourceTemplatesByPage( ctx context.Context, request mcp.ListResourceTemplatesRequest, ) (*mcp.ListResourceTemplatesResult, error)
ListResourceTemplatesByPage implements client.MCPClient.
func (*MockMCPClient) ListResources ΒΆ
func (mc *MockMCPClient) ListResources( ctx context.Context, request mcp.ListResourcesRequest, ) (*mcp.ListResourcesResult, error)
ListResources implements client.MCPClient.
func (*MockMCPClient) ListResourcesByPage ΒΆ
func (mc *MockMCPClient) ListResourcesByPage( ctx context.Context, request mcp.ListResourcesRequest, ) (*mcp.ListResourcesResult, error)
ListResourcesByPage implements client.MCPClient.
func (*MockMCPClient) ListTools ΒΆ
func (mc *MockMCPClient) ListTools(ctx context.Context, request mcp.ListToolsRequest) (*mcp.ListToolsResult, error)
ListTools implements client.MCPClient.
func (*MockMCPClient) ListToolsByPage ΒΆ
func (mc *MockMCPClient) ListToolsByPage( ctx context.Context, request mcp.ListToolsRequest, ) (*mcp.ListToolsResult, error)
ListToolsByPage implements client.MCPClient.
func (*MockMCPClient) OnNotification ΒΆ
func (mc *MockMCPClient) OnNotification(handler func(notification mcp.JSONRPCNotification))
OnNotification implements client.MCPClient.
func (*MockMCPClient) Ping ΒΆ
func (mc *MockMCPClient) Ping(ctx context.Context) error
Ping implements client.MCPClient.
func (*MockMCPClient) ReadResource ΒΆ
func (mc *MockMCPClient) ReadResource( ctx context.Context, request mcp.ReadResourceRequest, ) (*mcp.ReadResourceResult, error)
ReadResource implements client.MCPClient.
func (*MockMCPClient) SetLevel ΒΆ
func (mc *MockMCPClient) SetLevel(ctx context.Context, request mcp.SetLevelRequest) error
SetLevel implements client.MCPClient.
func (*MockMCPClient) Subscribe ΒΆ
func (mc *MockMCPClient) Subscribe(ctx context.Context, request mcp.SubscribeRequest) error
Subscribe implements client.MCPClient.
func (*MockMCPClient) Unsubscribe ΒΆ
func (mc *MockMCPClient) Unsubscribe(ctx context.Context, request mcp.UnsubscribeRequest) error
Unsubscribe implements client.MCPClient.
type MockTool ΒΆ
type MockTool struct {
// contains filtered or unexported fields
}
MockTool is a simple mock tool implementation.
func NewMockTool ΒΆ
NewMockTool creates a new mock tool.
func (*MockTool) Description ΒΆ
Description returns the tool description.
type Option ΒΆ
type Option func(*adapterImpl) error
Option represents a configuration option for the adapter.
func WithClientFactory ΒΆ
func WithClientFactory(factory ClientFactoryInterface) Option
WithClientFactory injects a custom ClientFactory (e.g., for testing).
func WithConfig ΒΆ
WithConfig sets the configuration directly instead of loading from file.
func WithConfigPath ΒΆ
WithConfigPath sets the configuration file path.
func WithConfigWatchCallback ΒΆ
WithConfigWatchCallback sets a custom callback for configuration changes.
func WithFileWatcher ΒΆ
WithFileWatcher enables or disables automatic configuration file watching.
type ServerConfig ΒΆ
type ServerConfig struct {
Command string `json:"command"`
Args []string `json:"args,omitempty"`
Cwd string `json:"cwd,omitempty"`
Env map[string]string `json:"env,omitempty"`
Disabled bool `json:"disabled,omitempty"`
AlwaysAllow []string `json:"alwaysAllow,omitempty"`
// Extended fields for transport abstraction
Transport string `json:"transport,omitempty"`
URL string `json:"url,omitempty"`
Method string `json:"method,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
Timeout time.Duration `json:"timeout,omitempty"`
ToolPrefix string `json:"tool_prefix,omitempty"`
}
ServerConfig represents configuration for a single MCP server.
type ServerStatus ΒΆ
type ServerStatus int
ServerStatus represents the current status of a server.
const ( StatusStopped ServerStatus = iota StatusStarting StatusRunning StatusError )
func (ServerStatus) String ΒΆ
func (s ServerStatus) String() string
Source Files
ΒΆ
Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
examples
|
|
|
agent
command
|
|
|
demo
command
Package main demonstrates the MCP Server Adapter using mark3labs/mcp-go and langchaingo.
|
Package main demonstrates the MCP Server Adapter using mark3labs/mcp-go and langchaingo. |
|
server
command
|
|
|
simple-demo
command
|