/prodsec-skills:agent-to-mcp-server-authfrom prodsec-skills
Enforces authentication for agents connecting to MCP servers via MCP clients, recommending SPIFFE/SPIRE+mTLS with OAuth fallback.
Ships in prodsec-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When an agent connects through an MCP client to an MCP server, authentication SHOULD use SPIFFE/SPIRE+mTLS (the service-to-service recommendation).
The agent (running as a workload) obtains a SVID from SPIRE and establishes an mTLS connection to the MCP server. Both parties authenticate each other via their SPIFFE IDs.
Agent (workload)
→ Obtains SVID from SPIRE Agent
→ MCP Client establishes mTLS to MCP Server
→ MCP Server validates agent's SPIFFE ID
→ MCP Server authorizes based on SPIFFE ID
If SPIFFE/SPIRE is not feasible, the agent and MCP client MAY act as an OAuth client and obtain permission from the user to access the MCP server (the resource server).
| Aspect | Impact |
|---|---|
| Audit trail | Actions are logged as performed by the user, not the agent |
| Permissions | Agent operates with the user's permission scope |
| Acceptability | Similar to regular applications running with user permissions |
| Recommendation | Acceptable but not ideal; prefer SPIFFE/SPIRE when possible |
1. Agent needs to access MCP server resource
2. MCP client initiates OAuth flow on behalf of the user
3. User grants permission (consent) for the agent to access the MCP server
4. MCP client obtains access token scoped to the MCP server
5. Agent uses the token through MCP client to access MCP server
6. All actions are logged under the user's identity
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub redhatproductsecurity/prodsec-skills --plugin prodsec-skills130 skills in this plugin
/address-sanitizerAddressSanitizer detects memory errors during fuzzing. Use when fuzzing C/C++ code to find buffer overflows and use-after-free bugs.
/admin-interface-securitySecure the administrative interface of model registries. Use when building, deploying, or reviewing model registry access controls and admin interfaces./aflppAFL++ is a fork of AFL with better fuzzing performance and advanced features. Use for multi-core fuzzing of C/C++ projects.
Other plugins' skills for the same job