MCPServer
Defined in the MCP module.Rust AI Agent SDK MCP server for exposing tools.
Fields
| Name | Type | Description |
|---|---|---|
name | String | Server name |
tools | Vec<MCPTool> | Registered tools |
resources | Vec<MCPResource> | Registered resources |
running | bool | Running status |
Methods
new
| Name | Type |
|---|---|
name | impl Into<String> |
register_tool
| Name | Type |
|---|---|
tool | MCPTool |
register_resource
| Name | Type |
|---|---|
resource | MCPResource |
tools
resources
is_running
start
stop
Source
View on GitHub
praisonai/src/mcp/mod.rs at line 605
