Safe Haskell | None |
---|---|
Language | GHC2024 |
MCP.Server
Synopsis
- runMcpServerStdio :: McpServerInfo -> McpServerHandlers IO -> IO ()
- runMcpServerHttp :: McpServerInfo -> McpServerHandlers IO -> IO ()
- runMcpServerHttpWithConfig :: HttpConfig -> McpServerInfo -> McpServerHandlers IO -> IO ()
- data HttpConfig = HttpConfig {
- httpPort :: Int
- httpHost :: String
- httpEndpoint :: String
- httpVerbose :: Bool
- jsonValueToText :: Value -> Text
- module MCP.Server.Types
Server Runtime
runMcpServerStdio :: McpServerInfo -> McpServerHandlers IO -> IO () Source #
Run an MCP server using STDIO transport
runMcpServerHttp :: McpServerInfo -> McpServerHandlers IO -> IO () Source #
Run an MCP server using HTTP transport with default configuration
runMcpServerHttpWithConfig :: HttpConfig -> McpServerInfo -> McpServerHandlers IO -> IO () Source #
Run an MCP server using HTTP transport with custom configuration
Transport Configuration
data HttpConfig Source #
HTTP transport configuration following MCP 2025-06-18 Streamable HTTP specification
Constructors
HttpConfig | |
Fields
|
Instances
Show HttpConfig Source # | |
Defined in MCP.Server.Transport.Http Methods showsPrec :: Int -> HttpConfig -> ShowS # show :: HttpConfig -> String # showList :: [HttpConfig] -> ShowS # | |
Eq HttpConfig Source # | |
Defined in MCP.Server.Transport.Http |
Utility Functions
jsonValueToText :: Value -> Text Source #
Convert JSON Value to Text representation suitable for handlers
Re-exports
module MCP.Server.Types