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.
SecurityConfig
Defined in the MCP module.
Rust AI Agent SDK
Security configuration for MCP.
Fields
| Name | Type | Description |
|---|
allow_fs | bool | Allow file system access |
allow_network | bool | Allow network access |
allow_env | bool | Allow environment variable access |
allowed_hosts | Vec<String> | Allowed hosts for network access |
allowed_paths | Vec<String> | Allowed paths for file system access |
Methods
permissive
Create a permissive security config
restrictive
Create a restrictive security config
allow_fs
fn allow_fs(mut self, allow: bool) -> Self
Allow file system access
Parameters:
allow_network
fn allow_network(mut self, allow: bool) -> Self
Allow network access
Parameters:
allowed_host
fn allowed_host(mut self, host: impl Into<String>) -> Self
Add allowed host
Parameters:
| Name | Type |
|---|
host | impl Into<String> |
allowed_path
fn allowed_path(mut self, path: impl Into<String>) -> Self
Add allowed path
Parameters:
| Name | Type |
|---|
path | impl Into<String> |
Source
View on GitHub
praisonai/src/mcp/mod.rs at line 132