Overview
Rogue supports the Model Context Protocol (MCP), which provides a flexible, tool-based interface for wrapping agents. MCP offers a simpler integration path by using a standardsend_message tool interface, allowing you to wrap existing agents with minimal changes.
What is MCP?
The Model Context Protocol (MCP) is an open protocol that provides a standardized way for AI applications to interact with external tools and services. For Rogue integration, MCP uses a simple tool-based interface that abstracts away the complexity of your agent’s internal implementation. Key Features:- Simple Interface: Single
send_messagetool handles all communication - Minimal Wrapper: Wrap existing agents without major refactoring
- Flexible Transport: Multiple transport options (SSE, STREAMABLE_HTTP)
- Framework Agnostic: Works with any agent framework
- Easy Testing: Simple interface makes testing straightforward
MCP Documentation
View the official Model Context Protocol documentation
Supported Transports
SSE (Server-Sent Events)
Server-Sent Events provide unidirectional, real-time event streaming from server to client. How it works:- Rogue establishes an SSE connection to your MCP server
- Rogue invokes the
send_messagetool with a test message - Your agent processes the message and returns a response
- The response streams back to Rogue via SSE
- Rogue evaluates the response against test criteria
STREAMABLE_HTTP
HTTP-based streaming communication provides a simpler alternative to SSE while maintaining streaming capabilities. How it works:- Rogue makes HTTP POST requests to your MCP server
- Requests invoke the
send_messagetool with test messages - Your agent streams responses back via chunked HTTP transfer
- Rogue processes the streamed response
- Connection closes after response completes
The send_message Tool
The send_message tool is the core interface for MCP-based communication with Rogue.
Tool Signature:
Integration Steps
To integrate your agent with Rogue via MCP:- Build your agent using any framework of your choice
- Create an MCP server wrapper for your agent
- Implement the
send_messagetool that accepts a message parameter and returns a response - Choose your transport (SSE or STREAMABLE_HTTP)
- Start your MCP server and make it accessible
- Configure Rogue to connect to your MCP endpoint
Example Implementations
Rogue includes example MCP integrations demonstrating how to wrap agents:MCP Examples
View MCP example implementations including LangGraph agent wrapper
- Setting up an MCP server
- Implementing the
send_messagetool - Wrapping a LangGraph agent with MCP
- Configuring transports (SSE and STREAMABLE_HTTP)
- Connecting Rogue to your MCP server