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.

MCPConfig

Defined in the MCP module.
Rust AI Agent SDK Configuration for MCP client.

Fields

NameTypeDescription
nameStringServer name
transportTransportConfigTransport configuration
securitySecurityConfigSecurity configuration
auto_reconnectboolAuto-reconnect on disconnect
max_reconnect_attemptsu32Maximum reconnect attempts
debugboolEnable debug logging

Methods

new

fn new(name: impl Into<String>) -> Self
Create a new MCPConfig Parameters:
NameType
nameimpl Into&lt;String&gt;

transport

fn transport(mut self, transport: TransportConfig) -> Self
Set transport Parameters:
NameType
transportTransportConfig

security

fn security(mut self, security: SecurityConfig) -> Self
Set security Parameters:
NameType
securitySecurityConfig

debug

fn debug(mut self, debug: bool) -> Self
Enable debug mode Parameters:
NameType
debugbool

Source

View on GitHub

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

Rust MCP

Rust Resources

Rust Configuration

Rust Installation