Skip to content

AI-374: Warn against passing secrets through MCP factory_argument - #1688

Merged
xumaple merged 3 commits into
mainfrom
maplexu/AI-374-factory-argument-secrets-warning
Jul 28, 2026
Merged

AI-374: Warn against passing secrets through MCP factory_argument#1688
xumaple merged 3 commits into
mainfrom
maplexu/AI-374-factory-argument-secrets-warning

Conversation

@xumaple

@xumaple xumaple commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Adds a warning to the MCP factory_argument docstrings and READMEs in the openai_agents and google_adk_agents contrib plugins: the value is serialized as an activity argument and therefore recorded in workflow history, so it must not carry secrets, credentials, or API keys. Points users at resolving credentials worker-side inside the server/toolset factory instead, passing only non-secret identifiers through factory_argument.

Users have been passing auth material this way, and nothing in the API surface signals that factory_argument crosses the workflow boundary.

`factory_argument` is serialized as an activity argument and therefore
recorded in workflow history, which is not obvious from the API surface.
Document that in the docstrings and READMEs for the MCP support in the
openai_agents and google_adk_agents contrib plugins, and point users at
resolving credentials worker-side inside the factory instead.
@xumaple
xumaple requested review from a team as code owners July 28, 2026 19:20
xumaple added 2 commits July 28, 2026 16:01
Fix the claim that factory_argument is sent to every MCP activity, which
holds for stateless servers but not stateful ones, and document that a
zero-parameter stateless factory silently discards the value while it is
still written to history. Drop the maturity-badge glyph, qualify the web
UI claim for users running a payload codec, and state the factory-side
contract on the three provider docstrings.
@xumaple
xumaple enabled auto-merge (squash) July 28, 2026 20:37
@xumaple
xumaple merged commit 7d52c78 into main Jul 28, 2026
30 of 31 checks passed
@xumaple
xumaple deleted the maplexu/AI-374-factory-argument-secrets-warning branch July 28, 2026 20:53
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.

2 participants