Skip to main content

mcp

Rust AI Agent SDK MCP (Model Context Protocol) Integration Module This module provides MCP integration for agents:
  • MCP - Main MCP client
  • MCPConfig - Configuration for MCP connections
  • MCPCall - MCP tool call
  • MCPServer - 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