Rynko MCP: Flow Gates + Document Generation
Connect Claude Desktop, Cursor, Windsurf, or Microsoft 365 Copilot directly to Rynko via MCP. Submit runs to Flow gates, validate AI outputs, generate documents, and manage environments through natural conversation.
https://api.rynko.dev/api/flow/mcphttps://api.rynko.dev/api/mcp-documentsBuilding multi-agent pipelines with LangGraph, CrewAI, or AutoGen?
Each Flow gate is auto-exposed as an MCP tool — dynamic discovery, human-in-the-loop, circuit breaker included.
How It Works
Two separate MCP endpoints — one for Flow gate validation, one for Render document generation. Connect either or both from your AI tool.
list_gates · get_gate
list_templates · create_template
api.rynko.dev/api/flow/mcpapi.rynko.dev/api/mcp-documentsValidate first.
Generate after.
Your AI agent validates any data through a Flow gate before taking downstream actions. If approved, it can immediately use Render to generate a document — all in one conversation.
- Agent calls submit_run → Gate checks schema + business rules
- APPROVED → Agent proceeds (generate doc, notify, save to CRM)
- REJECTED → violations array explains exactly what failed
- REVIEW_REQUIRED → routed to human approval inbox
Auto-plays · click to replay
LLMs read our rejections and fix themselves.
We pointed a real LLM at our MCP server with zero error-handling prompts. It discovered the gate, submitted a bad payload, read the structured violations, and corrected every field on its own.
No retry logic was coded. No error-handling prompts were written.
Real terminal recording — click to play
Try it yourself
Paste any of these prompts into Claude, Cursor, or any MCP-connected LLM. The agent will discover your gates, submit the payload, hit validation errors, and self-correct — no retry logic needed.
Invoice with bad data
Submit an invoice to the "Invoice Validator" gate with vendor set to empty, amount as -500, and currency as JPY. Fix any issues the gate reports until it passes.
Missing required fields
Submit a run to my Flow gate with only a customer name. Leave out all other fields. When the gate rejects it, read the errors and fill in the missing fields with reasonable values.
Discover and test
List all my Flow gates, pick the first one, and submit a test payload with intentionally wrong types for each field. Then fix every violation the gate reports.
Out-of-range values
Submit an order to my gate with quantity set to 0, discount at 150%, and a delivery date in the past. Correct each field based on the validation errors.
Get Started
Two separate MCP endpoints — connect the product(s) you need. Claude Desktop uses OAuth; other clients use an API key.
https://api.rynko.dev/api/flow/mcphttps://api.rynko.dev/api/flow/mcpRequires Claude Pro, Max, Team, or Enterprise plan.
Via Config File (PAT)
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"rynko-flow": {
"command": "npx",
"args": [
"mcp-remote",
"https://api.rynko.dev/api/flow/mcp",
"--header",
"Authorization:${RYNKO_FLOW_KEY}"
],
"env": {
"RYNKO_FLOW_KEY": "Bearer fm_your_api_key"
}
}
}
}Uses the mcp-remote proxy to bridge the remote server. Requires Node.js and a PAT token.
Use both products together (Claude Desktop example)
Add both as separate Connectors in Claude Desktop:
1. Settings → Connectors → Add Custom Connector
URL: https://api.rynko.dev/api/flow/mcp
2. Settings → Connectors → Add Custom Connector
URL: https://api.rynko.dev/api/mcp-documents
Both will authorize via OAuth automatically.Use the MCP onboarding wizard to connect — just paste the server URL and configure API key auth.
https://api.rynko.dev/api/mcp-documentsScaffold an agent with the M365 Agents Toolkit — version-controlled, full tool selection.
M365 Agents Toolkit v6.3+Start Building
- "List my Flow gates"
- "Validate this data against the Lead Qualifier gate"
- "Show me the last 5 rejected runs on the customer gate"
- "What rules does the Invoice gate enforce?"
- "List my templates"
- "Create an invoice template with line items and tax"
- "Generate a PDF from my invoice template with sample data"
- "Generate a sales quote for Acme Corp, $12,000"
MCP Tool Reference
17 tools across both endpoints — Flow gate validation and the full document lifecycle.
Flow gate tools are auto-discovered
When a client connects to api/flow/mcp, the server calls tools/list and returns one tool per gate configured in the connected environment. Each tool's name and description come directly from the gate — so the LLM understands what each gate validates and selects the right one from context, with no hardcoded IDs or explicit discovery step in your code. Add a gate in the dashboard → it appears as a new tool in your next MCP session automatically.
Flow Gates
api/flow/mcplist_gatesList Flow gates in current environment
get_gateGet gate schema, rules, and configuration
submit_runSubmit data to a Flow gate for validation
get_run_resultGet the result of a Flow gate run
Environment
api/flow/mcplist_environmentsList all environments you have access to
select_environmentSwitch to a different environment context
Templates
api/mcp-documentslist_templatesList all templates in current environment
get_templateGet full template details including schema
create_templateCreate a new template (draft mode only)
update_templateUpdate an existing template
delete_templateDelete a template (drafts only)
Documents
api/mcp-documentsgenerate_documentGenerate a PDF or Excel document
get_generation_statusCheck status of a document generation job
Utilities
api/mcp-documentslist_foldersList template folders in environment
parse_dataParse CSV/Excel data for variable extraction
get_schema_referenceGet the template schema reference
validate_templateValidate a template schema before saving
Use Cases
Real-world scenarios where AI + Rynko shines.
Submitting to the "Customer Validator" gate...
All checks passed. Generating onboarding PDF now.
Generating invoice using your "Professional Invoice" template.
- Subtotal: $1,500.00 · VAT (20%): $300.00 · Total: $1,800.00
PDF generated. Download link valid for 24 hours.
Running compliance gate check...
Contract PDF ready. Attached to supplier record.
Submitting to the "Loan Underwriting" gate...
Application blocked. The violations above explain exactly what needs to change before resubmission.
Using LangGraph, CrewAI, or AutoGen?
Each gate you configure is exposed as an MCP tool when the session starts — auto-discovered, description-first. Your orchestrator handles routing; Flow gates handle validation.
Security
Enterprise-grade security by default.
AI agents can only create draft templates. Publishing requires human approval in the dashboard.
Claude Desktop uses OAuth with short-lived access tokens. Other clients use revocable API keys managed from your dashboard.
Every AI action is logged with timestamp and user context. View in your activity feed.
Ready to Build with AI?
Connect Claude Desktop via OAuth, or grab an API key for Cursor, Windsurf, and VS Code.
https://api.rynko.dev/api/flow/mcphttps://api.rynko.dev/api/mcp-documents