KlavisToolkit
- api_key (str): The API key for authenticating with Klavis API.
- base_url (str): The base URL for Klavis API endpoints.
- timeout (Optional[float]): The timeout value for API requests in seconds. If None, no timeout is applied. (default: :obj:
None
)
init
_request
- method (str): HTTP method (e.g., ‘GET’, ‘POST’, ‘DELETE’).
- endpoint (str): API endpoint path.
- payload (Optional[Dict[str, Any]]): JSON payload for POST requests.
- additional_headers (Optional[Dict[str, str]]): Additional headers to include in the request.
create_server_instance
- server_name (str): The name of the target MCP server.
- user_id (str): The ID for the user requesting the server URL.
- platform_name (str): The name of the platform associated with the user.
get_server_instance
- instance_id (str): The ID of the connection instance whose status is being checked.
delete_auth_data
- instance_id (str): The ID of the connection instance to delete auth for.
delete_server_instance
- instance_id (str): The ID of the connection instance to delete.
get_all_servers
set_auth_token
- instance_id (str): The ID for the connection instance.
- auth_token (str): The authentication token to save.
list_tools
- server_url (str): The full URL for connecting to the MCP server via Server-Sent Events (SSE).
call_tool
- server_url (str): The full URL for connecting to the MCP server via Server-Sent Events (SSE).
- tool_name (str): The name of the tool to call.
- tool_args (Optional[Dict[str, Any]]): The input parameters for the tool. Defaults to None, which might be treated as empty args by the server. (default: :obj:
None
)