ExMCP.Client.Types (ex_mcp v0.9.2)
View SourceShared type definitions for ExMCP.Client modules.
This module provides common type definitions used across the client architecture to ensure consistency and type safety.
Summary
Types
A client process reference - can be a PID, registered name, or GenServer reference.
Default timeout value in milliseconds.
MCP method name used in requests.
Parameters map for MCP requests.
Standard MCP response format - either success with data or error with reason.
Options for MCP requests, typically including timeout and format options.
Request options or timeout value.
Arguments map for tool calls.
MCP tool name.
MCP resource URI - typically a file:// or http:// URI.
Types
@type client() :: GenServer.server()
A client process reference - can be a PID, registered name, or GenServer reference.
@type default_timeout() :: pos_integer()
Default timeout value in milliseconds.
@type mcp_method() :: String.t()
MCP method name used in requests.
@type mcp_params() :: map()
Parameters map for MCP requests.
Standard MCP response format - either success with data or error with reason.
@type request_opts() :: keyword()
Options for MCP requests, typically including timeout and format options.
Request options or timeout value.
@type tool_arguments() :: map()
Arguments map for tool calls.
@type tool_name() :: String.t()
MCP tool name.
@type uri() :: String.t()
MCP resource URI - typically a file:// or http:// URI.