MCP • Rust AI Agent SDK
MCP (Model Context Protocol) Integration Module
mcp
Rust AI Agent SDK
MCP (Model Context Protocol) Integration Module
This module provides MCP integration for agents:
MCP– Main MCP clientMCPConfig– Configuration for MCP connectionsMCPCall– MCP tool callMCPServer– MCP server for exposing tools
Example
use praisonai::mcp::{MCP, MCPConfig};
let mcp = MCP::new()
.server("npx", &["-y", "@anthropic/mcp-server-memory"])
.build()?;
let tools = mcp.list_tools().await?;Import
use praisonai::mcp::*;Classes
TransportConfig
Transport configuration for MCP.
SecurityConfigSecurity configuration for MCP.
MCPConfigConfiguration for MCP client.
MCPToolAn MCP tool definition.
MCPCallAn MCP tool call request.
MCPCallResultResult of an MCP tool call.
MCPResourceAn MCP resource.
MCPPromptAn MCP prompt template.
MCPPromptArgumentAn MCP prompt argument.
MCPMain MCP client.
MCPBuilderBuilder for MCP
MCPServerMCP server for exposing tools.
TransportTypeTransport type for MCP connections.
MCPContentMCP content types.
ConnectionStatusConnection status for MCP.