﻿# MCP credential inheritance depends on the connection path

Trace where MCP authentication is supplied; inherited tool access, service-side credentials and environment-readable secrets have different exposure boundaries.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/frontier-swarm-mcp-credential-inheritance/
Language: en

## A hidden token is not the same as a narrow capability

A session resource omits a credential value, yet its subagents can still use the authenticated tool. Another workflow stores a secret in an environment variable readable by generated code. These are different exposure questions. The [Agents API multi-agent guide](https://developers.openai.com/api/docs/guides/agents-api/multi-agent) documents inheritance of configured MCP tools, credentials and allowed tools. The research question is where authentication is actually supplied and which code can observe it, rather than whether a token happens to appear in the final agent transcript.

## Distinguish the connection origins

The [MCP connections guide](https://developers.openai.com/api/docs/guides/agents-api/tools/mcp) separates service-origin HTTP, environment-origin HTTP and stdio. Vault-backed MCP authentication applies to service-origin connections; environment-origin HTTP uses its documented authentication options or a trusted proxy. Stdio credential values supplied in the environment can be read by code running there. A “localhost” address also refers to the environment only under the appropriate connection arrangement. Do not transfer a security property from one path to another because both configurations use the same tool name.

## Limit operations as well as secret visibility

The guide provides `allowed_tools` to limit discovery and calls and recommends keeping secrets out of reusable definitions and logs. Its credential-protection guidance includes a trusted proxy supplying credentials outside the environment. These controls address different risks. Hiding the raw token does not mean every authenticated operation is permitted for the current task. The [Responses MCP guide](https://developers.openai.com/api/docs/guides/tools-connectors-mcp) separately discusses per-call approvals and data sharing. Keep runtime-specific approval and authentication semantics explicit rather than assuming a universal child-specific credential sandbox.

## A possible six-month capability

An editorial scenario through May 6, 2027 is a richer delegated workflow using authenticated services without handing raw reusable secrets to agent-generated code. Service-side authentication or a trusted proxy plus scoped tool authorization provides the mechanism. This is a possible application architecture, not a promised universal isolation feature. It requires every credential path to follow the intended boundary. Environment-readable fallback secrets, overly broad allowed operations or unreviewed data transmission would be counterevidence and require a narrower capability set before autonomy can expand.

## Test the actual path

A proposed fixture inspects configuration and uses harmless test credentials to verify permitted calls, denied operations and whether environment code can read the credential material. Avoid logging real secrets. [Delegated scope](/journal/guide-cline-subagent-approval-scope/) explains runtime differences; [Execution outcomes](/journal/learn-openrouter-parallel-tool-calls/) explain request-result evidence. No security audit has been performed for a deployed system here. The accepted design states where the secret lives, what authority the tool exposes and how a delegated action is checked, instead of treating an omitted field as proof of complete isolation.
