Updated API: Tyler now supports MCP through declarative configuration with
Agent(mcp={...}).
See the MCP Integration Guide for the complete, up-to-date documentation.What is MCP?
The Model Context Protocol (MCP) is an open standard that enables seamless communication between AI applications and external tools. Slide’s Tyler package includes first-class MCP support, allowing your agents to:- Connect to any MCP-compatible server
- Use tools from external services
- Share context across applications
- Build interoperable AI systems
MCP Architecture in Slide
Quick Start
Python API (Recommended)
Using MCP Tools
Once connected, MCP tools are automatically available to your agent:MCP Server Types
1. Stdio Servers
Local processes that communicate via standard input/output:2. WebSocket Servers
Network-accessible servers:3. SSE (Server-Sent Events) Servers
For streaming connections:Creating MCP Servers
Using FastMCP (Python)
Create an MCP server that exposes tools to Slide:MCP Server Configuration
Advanced MCP Usage
Multiple Server Connections
Connect to multiple MCP servers simultaneously:Dynamic Tool Discovery
Context Sharing
MCP enables context sharing between different systems:MCP Security
Authentication
Permission Management
Best practices
1. Connection Management
1. Connection Management
Always properly manage MCP connections:Or use context managers:
2. Error Handling
2. Error Handling
Handle MCP-specific errors:
3. Tool Validation
3. Tool Validation
Validate tools before use:
4. Performance Optimization
4. Performance Optimization
Optimize MCP usage: