package
0.8.3
Repository: https://github.com/mark3labs/mcp-go.git
Documentation: pkg.go.dev

# Functions

NewMCPServer creates a new MCP server instance with the given name, version and options.
NewSSEServer creates a new SSE server instance with the given MCP server and base URL.
NewStdioServer creates a new stdio server wrapper around an MCPServer.
NewTestServer creates a test server for testing purposes.
ServerFromContext retrieves the MCPServer instance from a context.
ServeStdio is a convenience function that creates and starts a StdioServer with os.Stdin and os.Stdout.
WithLogging enables logging capabilities for the server.
WithPromptCapabilities configures prompt-related server capabilities.
WithResourceCapabilities configures resource-related server capabilities.

# Structs

MCPServer implements a Model Control Protocol server that can handle various types of requests including resources, prompts, and tools.
NotificationContext provides client identification for notifications.
ServerNotification combines the notification with client context.
SSEServer implements a Server-Sent Events (SSE) based MCP server.
StdioServer wraps a MCPServer and handles stdio communication.

# Type aliases

NotificationHandlerFunc handles incoming notifications.
PromptHandlerFunc handles prompt requests with given arguments.
ResourceHandlerFunc is a function that returns resource contents.
ResourceTemplateHandlerFunc is a function that returns a resource template.
ServerOption is a function that configures an MCPServer.
ToolHandlerFunc handles tool calls with given arguments.