Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
Create a new MCP builder
status
fn status(&self) -> ConnectionStatus
Get connection status
is_connected
fn is_connected(&self) -> bool
Check if connected
connect
async fn connect(&mut self) -> Result<()>
Connect to the MCP server (placeholder)
disconnect
async fn disconnect(&mut self) -> Result<()>
Disconnect from the MCP server
async fn list_tools(&self) -> Result<Vec<MCPTool>>
List available tools (placeholder)
list_resources
async fn list_resources(&self) -> Result<Vec<MCPResource>>
List available resources (placeholder)
list_prompts
async fn list_prompts(&self) -> Result<Vec<MCPPrompt>>
List available prompts (placeholder)
async fn call_tool(&self, call: MCPCall) -> Result<MCPCallResult>
Call a tool (placeholder)
Parameters:
read_resource
async fn read_resource(&self, uri: &str) -> Result<MCPContent>
Read a resource (placeholder)
Parameters:
get_prompt
async fn get_prompt(&self, name: &str, args: HashMap<String, String>) -> Result<String>
Get a prompt (placeholder)
Parameters:
| Name | Type |
|---|
name | &str |
args | HashMap<String |
Source
View on GitHub
praisonai/src/mcp/mod.rs at line 428