Skip to content

v0.8.59: support oauth for workflow MCPs - #8207

Merged
waleedlatif1 merged 2 commits into
mainfrom
staging
Sep 23, 2026
Merged

waleedlatif1 merged 2 commits into
mainfrom
staging

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

@vercel

vercel Bot commented Sep 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Sep 23, 2026 5:26pm UTC

Request Review

@waleedlatif1
waleedlatif1 merged commit 0e477d7 into main Sep 23, 2026
51 checks passed
@greptile-apps

greptile-apps Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; the OAuth workflow MCP path preserves exact resource binding, current workspace authorization, credential policy, and operation-specific scopes.

Summary

This PR adds OAuth discovery, exact-resource token binding, scope enforcement, and user-principal execution for private workflow MCP servers, while retaining API-key support. It also clarifies workflow MCP access labels and Copilot connector authentication guidance.

  • Publishes RFC 9728 metadata for each workflow MCP server.
  • Requires api:read for discovery/session operations and api:write for workflow tool execution.
  • Rechecks current workspace membership and personal-credential policy before execution.
  • Expands OAuth resource validation to exact workflow MCP server URLs.
  • Clarifies API-key versus OAuth setup for knowledge connectors and adds integration coverage.
Diagram
sequenceDiagram
    participant Client as MCP Client
    participant Server as Workflow MCP Route
    participant Metadata as Protected-Resource Metadata
    participant Auth as Sim OAuth Server
    participant Exec as Workflow Executor

    Client->>Server: Request without valid credential
    Server-->>Client: 401 + resource_metadata URL
    Client->>Metadata: Discover resource, scopes, auth server
    Metadata-->>Client: api:read / api:write metadata
    Client->>Auth: Authorization code + PKCE + exact resource
    Auth-->>Client: Resource-bound access token
    Client->>Server: Bearer token
    Server->>Server: Verify token resource and api:read
    Server->>Server: Check current workspace membership and policy
    alt tools/call
        Server->>Server: Require api:write
        Server->>Exec: Execute as authenticated user
        Exec-->>Server: Bounded workflow result
    end
    Server-->>Client: JSON-RPC response
Loading

Reviews (1) · Last reviewed commit: "feat(mcp): support OAuth on workflow MCP..."

This branch was previously deployed

1 inactive deployment
Preview e2cdee66 Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant