Repository navigation
feat(security): refuse a secret value as an MCP tool parameter - #3232
Merged
Merged
Conversation
A model writes the arguments of an MCP tool call, so a secret in an argument passes through the model context, the provider, the LLM cache and the run trace. - SECURITY.md rule 12 and its section: a tool publishes no parameter that takes a secret value and never returns or logs a credential. - A guard test reads the published schema of every tool and fails on a text parameter with a secret word in its name, unless a named constant lists it with a reason. - vault_set is no tool, vault_get has no show option, and docker_sign takes the OIDC token only as a keyring reference. - The run trace hides the value of an argument by its name. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
The token cap of a routed document is 8000 now, so rule 12 holds the whole text and no route or section is needed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
…ency deptry refuses the pydantic_core import (DEP003). The standard library json writes the same compact text. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
dan-petty
marked this pull request as ready for review
November 2, 2026 17:11
dan-petty
pushed a commit
that referenced
this pull request
Nov 2, 2026
🤖 I have created a release *beep* *boop* --- ## [0.47.0](v0.46.1...v0.47.0) (2026-11-02) ### Features * **mcp:** serve role-scoped tools over streamable HTTP ([#3233](#3233)) ([6923473](6923473)) * **security:** refuse a secret value as an MCP tool parameter ([#3232](#3232)) ([360a8c6](360a8c6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A model writes the arguments of an MCP tool call, so a secret in an argument passes through the model context, the provider, the LLM cache and the run trace. SECURITY.md has a new rule 12. A test reads the published schema of every tool and fails on a text parameter with a secret word in its name, unless a named constant lists it with a reason.
vault_setis no tool,vault_gethas noshowoption,docker_signtakes the OIDC token only as a keyring reference, and the run trace hides an argument by its name.Closes #3222
Change:
openspec/changes/archive/2026-11-02-3222-mcp-tool-secrets/Generated by Claude Code