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 client
  • MCPConfig – Configuration for MCP connections
  • MCPCall – MCP tool call
  • MCPServer – MCP server for exposing tools

Example

ignore
use praisonai::mcp::{MCP, MCPConfig};

let mcp = MCP::new()
.server("npx", &["-y", "@anthropic/mcp-server-memory"])
.build()?;

let tools = mcp.list_tools().await?;

Import

rust
use praisonai::mcp::*;

Classes


Related Documentation