hs-mcp-0.1.1.0: Library with tools for creating an MCP server implementation.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.MCP.Client

Synopsis

Documentation

createClient :: ClientConfig -> IO Client Source #

Create a new client

connectClient :: Client -> FilePath -> [String] -> IO Client Source #

Connect to the MCP server via StdIO

disconnectClient :: Client -> IO () Source #

Disconnect from the server

listTools :: Client -> IO [Value] Source #

List available tools

callTool :: Client -> Text -> Map Text Value -> IO Value Source #

Call a tool with arguments

listResources :: Client -> IO [Value] Source #

List available resources

readResource :: Client -> Text -> IO Value Source #

Read a specific resource

getPrompt :: Client -> Text -> Map Text Value -> IO Value Source #

Get a specific prompt