Replies: 1 comment
-
Example Use Case// Research agent that coordinates multiple MCP tools reliably
@workflow("research-agent")
class ResearchWorkflow {
@handler()
async run(ctx: WorkflowContext, topic: string) {
// 1. Search across multiple sources (with automatic retry)
const sources = await ctx.run("gather-sources", async () => {
return Promise.all([
ctx.serviceClient(WebSearchMCP).search({ query: topic }),
ctx.serviceClient(ArxivMCP).searchPapers({ topic }),
ctx.serviceClient(NewsMCP).getRecent({ topic })
]);
});
// 2. Analyze with LLM (stateful, can resume after failures)
const analysis = await ctx.run("analyze", async () => {
return ctx.serviceClient(AnalysisMCP).deepAnalyze({
sources,
instructions: "Synthesize key findings"
});
});
// 3. Generate report (durable, exactly-once delivery)
await ctx.run("generate-report", async () => {
return ctx.serviceClient(ReportMCP).create({
title: `Research: ${topic}`,
content: analysis
});
});
}
}This would be impossible to build reliably without Restate's guarantees. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Native MCP (Model Context Protocol) Support in Restate
Summary
Model Context Protocol (MCP) servers in Restate. MCP is rapidly becoming the standard for AI agent tooling, with official SDKs from Anthropic and growing adoption across the ecosystem. By supporting MCP natively, Restate can become the go-to platform for building reliable, production-ready AI agent systems.
Context
MCP enables LLMs to interact with external tools and data sources through a standardized protocol. While MCP clients can connect directly to MCP servers, production deployments face challenges that Restate is uniquely positioned to solve:
Restate's durable execution model is a perfect match for these requirements.
Proposal
I propose a phased approach to add MCP support to Restate:
Phase 1: Basic MCP Server Support (MVP)
Enable deploying MCP servers as Restate services with minimal changes:
Implementation:
restate-mcpcrate using rmcpExample usage:
Phase 2: MCP Gateway Capabilities
Transform Restate into an intelligent MCP gateway:
Features:
Phase 3: Production Features
Add enterprise-grade capabilities:
Phase 4: Advanced Integration
Deep integration with Restate features:
Benefits
Technical Approach
rmcpcrate for protocol implementationSuccess Metrics
Why This Matters Now
Beta Was this translation helpful? Give feedback.
All reactions