Skip to main content

Microsoft 365 Copilot

Connect Rynko Render to Microsoft 365 Copilot so your team can generate documents directly from Word, Teams, Outlook, and other M365 apps through natural conversation.

Server URL: https://api.rynko.dev/api/mcp-documents

Transport: Streamable HTTP (supported natively by Microsoft 365 Copilot)

Authentication: Personal Access Token (PAT) via API key header


How It Works

Microsoft 365 Copilot supports MCP servers as "actions" inside declarative agents. You create an agent that wraps the Rynko MCP server, deploy it to your M365 tenant, and your users can then ask Copilot to generate invoices, reports, or any other document template you've set up in Rynko — all without leaving Teams or Word.

The Rynko Render MCP server exposes 15+ tools that the agent can call: listing templates, creating drafts, previewing layouts, generating production PDFs, parsing spreadsheet data, and more. See the full tool list for details.


Prerequisites

  • A Rynko account with at least one published template
  • A Personal Access Token (PAT) — see Step 1 below
  • Microsoft 365 Copilot license (required for users of the agent)
  • One of the following, depending on your setup path:

Step 1: Generate a Personal Access Token

  1. Log in to your Rynko Dashboard
  2. Go to SettingsPersonal Access Tokens
  3. Click Create Token
  4. Enter a label (e.g., "Microsoft 365 Copilot")
  5. Select expiry (max 30 days)
  6. Click Create and copy the token immediately — it won't be shown again
warning

Keep your PAT secure. Anyone with this token can access your templates across all environments. Set a calendar reminder to rotate the token before it expires.


Setup Options

There are two ways to connect Rynko to Microsoft 365 Copilot. Choose the one that fits your team:

ApproachBest ForTools Needed
Copilot StudioAdmins and non-developersBrowser only
Declarative AgentDevelopers who want version controlVS Code + Agents Toolkit

Option A: Copilot Studio

The quickest way — no code required. You connect the Rynko MCP server through the Copilot Studio wizard and deploy the agent to your M365 tenant.

Step 2: Create an Agent in Copilot Studio

  1. Open Copilot Studio
  2. Create a new agent (or open an existing one)
  3. Give it a name like "Rynko Document Generator" and a description:

    Generate PDF and Excel documents from Rynko templates. Can list templates, preview layouts, and generate production documents.

Step 3: Add the Rynko MCP Server

  1. Go to the Tools page for your agent
  2. Click Add a toolNew toolModel Context Protocol
  3. Fill in the MCP onboarding wizard:
FieldValue
Server nameRynko Render
Server descriptionGenerate PDF and Excel documents from templates. List templates, preview layouts, parse spreadsheet data, and generate production documents.
Server URLhttps://api.rynko.dev/api/mcp-documents
AuthenticationAPI key
  1. For API key configuration:
    • Type: Header
    • Header name: Authorization
  2. Click Create

Step 4: Create a Connection

  1. On the Add tool dialog, select Create a new connection

  2. Enter your PAT value in the format: Bearer pat_xxxxxxxxxxxxxxxx

    warning

    Include the Bearer prefix before your token.

  3. Click Add to agent

Step 5: Test and Publish

  1. Use the Test panel in Copilot Studio to verify:
    • "List my templates"
    • "Generate a preview of my invoice template"
  2. Once confirmed working, click Publish to make the agent available in your M365 tenant
  3. Users can find the agent in the Agents section of Microsoft 365 Copilot at m365.cloud.microsoft/chat

Example Conversations

Once deployed, your team can interact with Rynko through natural conversation in Microsoft 365 Copilot:

User: Generate an invoice for Globex Corp, $12,500 for consulting services, due March 30th.

Copilot: I'll use your invoice template to generate that. Let me check the required variables...

[Calls list_templates, then generate_document]

Your invoice has been generated. Here's the download link: [Invoice-Globex-Corp.pdf]

User: I have a spreadsheet of customers. Can you generate reports for each one?

Copilot: Sure, share the file and I'll map the columns to your report template.

[Calls parse_data_file, then map_variables, then generate_document for each row]


What Your Team Can Do

CapabilityExample Prompt
List templates"What document templates do I have?"
Preview a template"Show me a preview of the quarterly report template"
Generate a document"Generate an invoice for Acme Corp, $5,000 USD"
Parse data files"I have this Excel file — can you map it to my template?"
Create draft templates"Create a new invoice template with company logo, line items, and payment terms"
Check job status"Is my batch generation done yet?"
tip

Templates created via MCP are always saved as drafts. Your team can review and publish them from the Rynko dashboard — the AI can't push to production directly.


Security Considerations

  • PAT Expiry: Tokens expire after max 30 days. Set a reminder to rotate them.
  • Draft-Only Safety: AI-created templates are drafts until a human publishes them.
  • Audit Trail: All MCP operations are logged in your Rynko activity feed.
  • Tenant Scoping: The agent is deployed to your M365 tenant — only authorized users can access it.
  • No Credential Sharing: With Copilot Studio's API key auth, the PAT is stored in the connection — end users don't see or need to know it.

Limitations

  • Preview status: MCP plugins for Microsoft 365 Copilot are currently in public preview.
  • Nested objects: M365 manifest validation may reject tools with deeply nested object parameters. If provisioning fails, try selecting fewer tools or contact support.
  • SSE not supported: Copilot Studio dropped SSE transport support (August 2025). Rynko uses Streamable HTTP, which is fully supported.
  • License required: End users need a Microsoft 365 Copilot license to interact with the agent.

Troubleshooting

"Invalid token" or authentication errors

  • Ensure the PAT starts with pat_ and hasn't expired
  • In Copilot Studio, verify the connection value is Bearer pat_xxx (with the Bearer prefix)
  • Generate a fresh token from the Rynko dashboard

Agent doesn't appear in M365 Copilot

  • Verify your M365 account has Custom App Upload and Copilot Access enabled
  • Wait a few minutes after provisioning — propagation can take time
  • Check with your M365 admin if custom agents are allowed in your tenant

Tools not loading

  • Confirm the server URL is exactly https://api.rynko.dev/api/mcp-documents
  • Test the PAT by calling the server directly with curl:
    curl -X POST https://api.rynko.dev/api/mcp-documents \
    -H "Authorization: Bearer pat_xxxxxxxxxxxxxxxx" \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'

Related: Render MCP (full tool reference) | Flow MCP | MCP Overview