mcp
Class MCPClient
Mirascope wrapper around a MCP ClientSession.
It provides a way to get MCP results that are pre-converted into Mirascope-friendly types.
The underlying MCP ClientSession may be accessed by .session if needed.
Attributes
| Name | Type | Description |
|---|---|---|
| session | ClientSession | Access the underlying MCP ClientSession if needed. |
Function list_tools
List all tools available on the MCP server.
Parameters
| Name | Type | Description |
|---|---|---|
| self | Any | - |
Function sse_client
Create a Mirascope MCPClient using sse.
Parameters
Returns
| Type | Description |
|---|---|
| AsyncIterator[MCPClient] | - |
Function stdio_client
Create a Mirascope MCPClient using stdio.
Parameters
Returns
| Type | Description |
|---|---|
| AsyncIterator[MCPClient] | - |
Function streamablehttp_client
Create a Mirascope MCPClient using StreamableHTTP.
Parameters
Returns
| Type | Description |
|---|---|
| AsyncIterator[MCPClient] | - |