Skip to main content

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 standard send_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_message tool 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:
  1. Rogue establishes an SSE connection to your MCP server
  2. Rogue invokes the send_message tool with a test message
  3. Your agent processes the message and returns a response
  4. The response streams back to Rogue via SSE
  5. Rogue evaluates the response against test criteria
Configuration:

STREAMABLE_HTTP

HTTP-based streaming communication provides a simpler alternative to SSE while maintaining streaming capabilities. How it works:
  1. Rogue makes HTTP POST requests to your MCP server
  2. Requests invoke the send_message tool with test messages
  3. Your agent streams responses back via chunked HTTP transfer
  4. Rogue processes the streamed response
  5. Connection closes after response completes
Configuration:

The send_message Tool

The send_message tool is the core interface for MCP-based communication with Rogue. Tool Signature:
Input: A message string from Rogue Output: Your agent’s response string Example Implementation:

Integration Steps

To integrate your agent with Rogue via MCP:
  1. Build your agent using any framework of your choice
  2. Create an MCP server wrapper for your agent
  3. Implement the send_message tool that accepts a message parameter and returns a response
  4. Choose your transport (SSE or STREAMABLE_HTTP)
  5. Start your MCP server and make it accessible
  6. 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
The examples demonstrate:
  • Setting up an MCP server
  • Implementing the send_message tool
  • Wrapping a LangGraph agent with MCP
  • Configuring transports (SSE and STREAMABLE_HTTP)
  • Connecting Rogue to your MCP server