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.
MCPBuilder
Defined in the MCP module.
Rust AI Agent SDK
Builder for MCP
Fields
| Name | Type | Description |
|---|
config | MCPConfig | - |
tools | Vec<MCPTool> | - |
Methods
name
fn name(mut self, name: impl Into<String>) -> Self
Set server name
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
server
fn server(mut self, command: impl Into<String>, args: &[&str]) -> Self
Set stdio server
Parameters:
| Name | Type |
|---|
command | impl Into<String> |
args | &[&str] |
http
fn http(mut self, url: impl Into<String>) -> Self
Set HTTP server
Parameters:
| Name | Type |
|---|
url | impl Into<String> |
websocket
fn websocket(mut self, url: impl Into<String>) -> Self
Set WebSocket server
Parameters:
| Name | Type |
|---|
url | impl Into<String> |
config
fn config(mut self, config: MCPConfig) -> Self
Set config
Parameters:
security
fn security(mut self, security: SecurityConfig) -> Self
Set security
Parameters:
| Name | Type |
|---|
security | SecurityConfig |
fn tool(mut self, tool: MCPTool) -> Self
Add a tool (for testing)
Parameters:
build
fn build(self) -> Result<MCP>
Build the MCP client
Source
View on GitHub
praisonai/src/mcp/mod.rs at line 539