Skip to main content

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

NameTypeDescription
configMCPConfigConfiguration
statusConnectionStatusConnection status
toolsVec<MCPTool>Available tools
resourcesVec<MCPResource>Available resources
promptsVec<MCPPrompt>Available prompts

Methods

new

fn new() -> MCPBuilder
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

list_tools

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)

call_tool

async fn call_tool(&self, call: MCPCall) -> Result<MCPCallResult>
Call a tool (placeholder) Parameters:
NameType
callMCPCall

read_resource

async fn read_resource(&self, uri: &str) -> Result<MCPContent>
Read a resource (placeholder) Parameters:
NameType
uri&str

get_prompt

async fn get_prompt(&self, name: &str, args: HashMap<String, String>) -> Result<String>
Get a prompt (placeholder) Parameters:
NameType
name&str
argsHashMap&lt;String

Source

View on GitHub

praisonai/src/mcp/mod.rs at line 428

Rust MCP

Rust Resources