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
restrictive
allow_fs
| Name | Type |
|---|---|
allow | bool |
allow_network
| Name | Type |
|---|---|
allow | bool |
allowed_host
| Name | Type |
|---|---|
host | impl Into<String> |
allowed_path
| Name | Type |
|---|---|
path | impl Into<String> |
Source
View on GitHub
praisonai/src/mcp/mod.rs at line 132
