MCP
Defined in the MCP module.Rust AI Agent SDK Main MCP client.
Fields
| Name | Type | Description |
|---|---|---|
config | MCPConfig | Configuration |
status | ConnectionStatus | Connection status |
tools | Vec<MCPTool> | Available tools |
resources | Vec<MCPResource> | Available resources |
prompts | Vec<MCPPrompt> | Available prompts |
Methods
new
status
is_connected
connect
disconnect
list_tools
list_resources
list_prompts
call_tool
| Name | Type |
|---|---|
call | MCPCall |
read_resource
| Name | Type |
|---|---|
uri | &str |
get_prompt
| Name | Type |
|---|---|
name | &str |
args | HashMap<String |
Source
View on GitHub
praisonai/src/mcp/mod.rs at line 428
