connect_to_server
Establish a connection to a target MCP server for testing purposes using stdio or HTTP transport protocols. Verifies connectivity and returns detailed connection state information.
Instructions
Connect to an MCP server for testing.
Establishes a connection to a target MCP server using the appropriate transport protocol (stdio for file paths, streamable-http for URLs). Only one connection can be active at a time.
Returns: Dictionary with connection details including: - success: Always True on successful connection - connection: Full ConnectionState with server info and statistics - message: Human-readable success message - metadata: Request timing information
Raises: Returns error dict on failure with: - success: False - error: Error details (type, message, suggestion) - metadata: Request timing information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Server URL (http://..., https://...) or file path for stdio transport |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||