Document connections and mcp.call (C19)
Part of dagucloud/dagu#4217 (C19).
Summary
Connections shipped behind the experimental_connections switch with no documentation, so nobody outside the code could turn them on or use them. This adds a Connections section for the generic oauth2 and mcp providers, marked experimental on every page, and fixes the mcp.call page, which still listed HTTP 429 under transport. Google setup, the Google presets, and C18's results are left for later, as rescoped on 2026-11-29.
Changes
features/connections/index.md: what a connection is, turning the switch on (experimental_connections: trueorDAGU_EXPERIMENTAL_CONNECTIONS=true), OAuth apps vs connections, roles, sign-in and the server callback, loopback, and paste modes, status, reconnect, the badge, theconnection.*events, expiry, removal, audit, and the CLI synopsis.features/connections/oauth2.md: the Custom OAuth2 tile anddagu connection add oauth2: app fields, scopes, bound hosts, PKCE, token auth, the authorization code and client credentials grants, and token export.features/connections/mcp-servers.md: the Any MCP server tile anddagu connection add mcp: discovery, CIMD vs DCR vs an admin's app, the public HTTPS URL that CIMD needs, scopes, and the network limits.features/connections/steps.md:mcp.callandhttp.requestwithconnection, admission checks,reconnect_required,insufficient_scope,rate_limited,confirmation_required, Try it and Copy as step,dagu connection call, the starter DAG, and quotas with no provider numbers.features/connections/security.md: the guarantees, local mode vs workers, exported tokens, runs on workers, the upgrade order, refresh token limits, and refresh-token reuse on shared storage.step-types/mcp.md:connectionandserverrows,rate_limitedandconfirmation_requiredkinds, HTTP 429 removed fromtransport, and the "not supported" list corrected.step-types/http.md,writing-workflows/secrets.md,web-ui/notifications.md: theconnectionfield, provider, and events, linking the new pages.- Sidebar: a collapsed "Connections (Experimental)" group under Workflows, after Secrets.
Core change
Each new page opens with the same notice, so a reader who lands on any of them learns the feature is off by default and how to turn it on:
features/connections/oauth2.md:7
::: warning Experimental
Connections are experimental and off by default. Turn them on with `experimental_connections: true` in `config.yaml`, or `DAGU_EXPERIMENTAL_CONNECTIONS=true`. See [Turn Connections On](/features/connections/#turn-connections-on).
:::
The upgrade order follows the coordinator's dispatch rule: a DAG that names a connection goes only to workers that make token requests, and a base config makes every DAG name it.
features/connections/security.md:74
1. Upgrade the server, the scheduler, and the coordinator, and turn `experimental_connections` on.
2. Upgrade every worker.
3. Name connections in DAGs.
4. Only then name a connection in a [base config](/server-admin/base-config).
Testing
node scripts/validate-examples.mjswith a Dagu build of dagucloud/dagu main at b07f3693d: 1052 workflow examples validated, 10 skipped as before.pnpm build: the site builds with no dead links, and social metadata validates for 316 pages.
Performance
No performance risk: documentation only, with no code, polling, or stored data.
Out of scope
- Google setup, the Google and Microsoft presets, mail accounts and
smtpwithconnection, and C18's test results. Quotas are written for any provider, without the Google announcements in RFC 025. - Japanese pages:
ja/translates only selected pages, and none of the pages touched here.
Notes for reviewers
Places where the code and the specs disagree, documented as the code behaves:
- The public URL setting is the top-level
public_urlkey (DAGU_PUBLIC_URL). Spec 107, the OpenAPI description, the UI message "Set server.public_url", anddagu connection providersall sayserver.public_url, which is no config key. reconnect_requiredandinsufficient_scopeare thedetailof anautherror inmcp.call, not error kinds.- The
confirmation_requiredmessage says "ask the Workspace admin", Google's wording, also for anmcpconnection. The docs say "the MCP server's admin". - Token export has no UI or CLI switch. Only
PATCH /connections/{name}withallowTokenExportsets it, so the page shows that call. - Spec 107's CLI synopsis omits
--revoke-urland--client-typeofadd oauth2. - Spec 107's User Interface section promises Reconnect next to a step that failed with
reconnect_requiredon the run page. The UI does not show it yet, so the docs leave it out.
Agent
Claude Code, claude-opus-5-5, high
Summary by cubic
Documents the experimental Connections feature and fixes the mcp.call reference page. Part of dagucloud/dagu#4217 (C19).
Connections shipped behind the experimental_connections switch with no documentation, so nobody outside the code could turn them on or use them. This adds a Connections section for the generic oauth2 and mcp providers, marked experimental on every page, and fixes the mcp.call page, which still listed HTTP 429 under transport and said OAuth sign-in flows were unsupported.
- Adds five pages under
features/connections/: Overview, OAuth 2.0 Servers, MCP Servers, Use in Steps, and Security and Workers. - Updates
step-types/mcp.md,step-types/http.md,writing-workflows/secrets.md,web-ui/notifications.md, and the sidebar to document theconnectionfield, provider, and notification events, linking the new pages. - Corrected during review: worker isolation scoped to shared-nothing workers with their own data directory and key, and clarified it holds per worker, not per run, since runs on one worker share its OS user; commands matched to current main;
mcp.callandhttp.requesttoken rules (only a 401 refreshes, andoauth2connections still needurl); "Try again with DCR" follows only a refused create, not a failed discovery. - Google setup, provider presets, and C18's test results are left for later.
Documentation only: no code, polling, or stored data.
Summary by CodeRabbit
- New Features
- Added documentation for experimental Connections, including OAuth 2.0 and remote MCP setup, using connections in workflow steps, security, and token handling.
- Added Connections links to the Workflows sidebar and documented connection-related notifications and configuration options.
- Documentation
- Updated HTTP and MCP step guides with connection settings, behavior, and error details.