Skip to content

Rename OAuth elicitation meta keys from cagent/ to docker-agent/#2915

Merged
dgageot merged 1 commit into
docker:mainfrom
trungutt:rename-oauth-meta-keys
May 28, 2026
Merged

Rename OAuth elicitation meta keys from cagent/ to docker-agent/#2915
dgageot merged 1 commit into
docker:mainfrom
trungutt:rename-oauth-meta-keys

Conversation

@trungutt
Copy link
Copy Markdown
Contributor

@trungutt trungutt commented May 28, 2026

Summary

The OAuth elicitation Meta map keys still carry the legacy product name (cagent/type, cagent/server_url). The runtime was renamed to docker-agent some time ago; align the meta keys with it so the contract clients see matches the project name they're integrating against.

Renamed:

Before After
cagent/type docker-agent/type
cagent/server_url docker-agent/server_url

Both writer sites (handleManagedOAuthFlow, handleUnmanagedOAuthFlow) and every in-tree reader (CLI runner, RemoteRuntime OAuth mirror, TUI elicitation handling) are updated together.

@trungutt trungutt requested a review from a team as a code owner May 28, 2026 13:18
The OAuth elicitation Meta map keys still carry the legacy product
name (cagent/type, cagent/server_url). The runtime was renamed to
docker-agent some time ago; align the meta keys with it so the
contract clients see matches the project name they're integrating
against.

Renamed:
  cagent/type        -> docker-agent/type
  cagent/server_url  -> docker-agent/server_url

Both writer sites (handleManagedOAuthFlow, handleUnmanagedOAuthFlow)
and every in-tree reader (CLI runner, RemoteRuntime OAuth mirror,
TUI elicitation handling) are updated together. Out-of-tree
consumers will need the same one-line rename.

Other cagent/* identifiers that are NOT in the elicitation Meta map
(user-config paths under ~/.cagent/, the User-Agent header, the
cagent/title meta key used by the user_prompt builtin) are
intentionally left alone -- the rename is scoped to OAuth meta.

Signed-off-by: Trung Nguyen <trung.nguyen@docker.com>
@trungutt trungutt force-pushed the rename-oauth-meta-keys branch from f539e73 to dfca23c Compare May 28, 2026 13:23
@aheritier aheritier added area/mcp MCP protocol, MCP tool servers, integration area/security Authentication, authorization, secrets, vulnerabilities kind/refactor PR refactors code without behavior change labels May 28, 2026
@docker-agent
Copy link
Copy Markdown

PR Review Failed — The review agent encountered an error and could not complete the review. View logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/mcp MCP protocol, MCP tool servers, integration area/security Authentication, authorization, secrets, vulnerabilities kind/refactor PR refactors code without behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants