Documentation
¶
Overview ¶
Package server implements the MCP (Model Context Protocol) server for database operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MCPServer ¶
type MCPServer struct {
// contains filtered or unexported fields
}
MCPServer represents the MCP server instance that handles database queries.
func NewMCPServer ¶
NewMCPServer creates a new MCP server instance with the specified name and version. It automatically registers the query_database tool for executing SQL queries.
func (*MCPServer) AddSource ¶
AddSource registers a database source with the given name. This makes the source available for query execution via the MCP protocol.
func (*MCPServer) StartStdio ¶
StartStdio starts the MCP server using stdio transport. This is the standard transport for Claude Desktop integration.
Click to show internal directories.
Click to hide internal directories.