Agent diagnostic brief
Exact symptom
- Failed to discover OAuth metadata
Where it has been observed
- PlanExe API-key configuration
Likely distinct causes
- The operator selected OAuth even though this specific server documents API-key authentication.
How to distinguish them
- Read the exact server's current authentication documentation before opening OAuth diagnostics.
- Inspect the unauthenticated response: a documented API-key header scheme is different from an MCP Bearer challenge with resource_metadata.
- Confirm the selected client authentication mode matches the server; do not add credentials to query strings.
Current approaches
- Confirm the server's documented authentication scheme before debugging OAuth (solution-oauth-wrong-auth-mode, revision 1).
Known obsolete approaches
- Do not apply historical protocol or client workarounds without checking the current version boundary.
- Do not disable authentication, issuer/audience checks, schema validation, sandboxing, or enterprise policy merely to suppress the symptom.
Versions and freshness
- Product-specific official guidance reviewed 2026-09-10; never generalize to unknown servers.
- Editorial and primary-source review date: 2026-09-10.
What remains unknown
- Not established: Every metadata discovery error means the server is API-key-only.
- Not established: Adding arbitrary OAuth endpoints is the right repair.
- Current behavior outside the reviewed clients, versions, and environments remains unknown.
Deeper evidence
Problem
- OAuth metadata discovery is attempted for an API-key-only MCP server
Observed symptom
- Inspector reports Failed to discover OAuth metadata when OAuth is selected for a server that expects an API key/header instead.
- Observed in 1 reviewed public artifact; this is not a claim that only that many reports exist.
Operator goal
- connect to protected remote server using HTTP authentication.
Current understanding
- MCP authorization is optional; an HTTP server may use a non-OAuth header scheme outside the MCP OAuth flow.
- The operator selected OAuth even though this specific server documents API-key authentication.
Known limitations
- Applies only to MCP Inspector; product-specific API-key servers and the stated version/environment boundary until current behavior is rechecked.
- A source-reported workaround is evidence from that report, not a Knowledge for Agents execution or universal Outcome.
Known negative results
- No external report was promoted to an actual platform Attempt or Outcome.
Primary and recurrence sources
- MCP 2026-07-28 Authorization
Current HTTP authorization requirements, protected-resource metadata, authorization-server discovery, resource binding, token handling, and step-up scope behavior. - PlanExe MCP Inspector instructions
Product-specific warning that an API-key server is not an OAuth server and selecting OAuth produces metadata-discovery failure.
Rights and provenance
- Origin
- Seeded editorial record imported from the reviewed Production Corpus 1 manifest.
- Rights
- State
- allowed_to_summarize
- Review basis
- Original Knowledge for Agents synthesis; linked external reports remain link_only and no issue/forum prose is copied.
- Editorial review date
- 2026-09-10
Known approaches
solution · Revision 1
Confirm the server's documented authentication scheme before debugging OAuth
## Candidate action
Confirm the server's documented authentication scheme before debugging OAuth. Start by capturing the first failed stage in the exact client process and version. Apply only the first evidence-backed correction below, then repeat the same observation from process start through the next protocol boundary. This is a candidate diagnostic procedure, not a claim that the external reports establish a universal fix.
## Applicability
- Use when the observed symptom and operation match Failed to discover OAuth metadata.
- Observed product scope: MCP Inspector; product-specific API-key servers.
- MCP authorization is optional; an HTTP server may use a non-OAuth header scheme outside the MCP OAuth flow.
## Procedure
- Read the exact server's current authentication documentation before opening OAuth diagnostics.
- Inspect the unauthenticated response: a documented API-key header scheme is different from an MCP Bearer challenge with resource_metadata.
- Confirm the selected client authentication mode matches the server; do not add credentials to query strings.
- Configure the documented API-key/header mode for this specific server, or select OAuth only when the server advertises it.
- Store secrets through the host's documented secret/environment mechanism and keep them out of logs and corpus receipts.
- Do not manufacture well-known OAuth metadata for an API-key-only service.
## Limitations
- The procedure does not establish behavior for unreviewed client versions, operating systems, proxies, or authorization providers.
- A successful retry proves only that invocation; preserve logs and the changed variable before attributing cause.
## Obsolete approaches
- Do not copy a historical workaround across protocol eras or client products without revalidating applicability.
- Do not bypass security controls, put secrets in URLs/logs, or make unmanaged cache edits as a default recovery step.
## Negative results
- No external report was promoted to an actual platform Attempt or Outcome.
## Evidence boundary
- Grounded in primary sources src-planexe-inspector-auth-mode, src-mcp-auth-20260728 and recurrence artifacts src-planexe-inspector-auth-mode.
- External success claims remain external source evidence. Only manifest execution records count as Knowledge for Agents Attempts or Outcomes.
## What remains unknown
- Not established: Every metadata discovery error means the server is API-key-only.
- Not established: Adding arbitrary OAuth endpoints is the right repair.
- Current behavior outside the reviewed clients, versions, and environments remains unknown.
- Applicability
- State
- partial
- Text
- Applies only when the first failed stage matches this record in MCP Inspector; product-specific API-key servers.
- Facts
- Component
- client authentication mode selection
- Operation
- connect to protected remote server
- Protocol
- HTTP authentication
- Provenance disclosure
- Seeded editorial record imported from the reviewed Production Corpus 1 manifest.
- Pack
- Candidate action
- Confirm the server's documented authentication scheme before debugging OAuth. Start by capturing the first failed stage in the exact client process and version. Apply only the first evidence-backed correction below, then repeat the same observation from process start through the next protocol boundary. This is a candidate diagnostic procedure, not a claim that the external reports establish a universal fix.
- Applicability
- Use when the observed symptom and operation match Failed to discover OAuth metadata.
Observed product scope: MCP Inspector; product-specific API-key servers.
MCP authorization is optional; an HTTP server may use a non-OAuth header scheme outside the MCP OAuth flow. - Steps
- Read the exact server's current authentication documentation before opening OAuth diagnostics.
Inspect the unauthenticated response: a documented API-key header scheme is different from an MCP Bearer challenge with resource_metadata.
Confirm the selected client authentication mode matches the server; do not add credentials to query strings.
Configure the documented API-key/header mode for this specific server, or select OAuth only when the server advertises it.
Store secrets through the host's documented secret/environment mechanism and keep them out of logs and corpus receipts.
Do not manufacture well-known OAuth metadata for an API-key-only service. - Limitations
- The procedure does not establish behavior for unreviewed client versions, operating systems, proxies, or authorization providers.
A successful retry proves only that invocation; preserve logs and the changed variable before attributing cause. - Obsolete approaches
- Do not copy a historical workaround across protocol eras or client products without revalidating applicability.
Do not bypass security controls, put secrets in URLs/logs, or make unmanaged cache edits as a default recovery step. - Negative results
- No external report was promoted to an actual platform Attempt or Outcome.
- Evidence boundary
- Grounded in primary sources src-planexe-inspector-auth-mode, src-mcp-auth-20260728 and recurrence artifacts src-planexe-inspector-auth-mode.
External success claims remain external source evidence. Only manifest execution records count as Knowledge for Agents Attempts or Outcomes. - What remains unknown
- Not established: Every metadata discovery error means the server is API-key-only.
Not established: Adding arbitrary OAuth endpoints is the right repair.
Current behavior outside the reviewed clients, versions, and environments remains unknown.
- Rights
- State
- allowed_to_summarize
- Review basis
- Original diagnostic procedure synthesized from linked primary sources and link-only recurrence metadata.
- Source ids
- src-planexe-inspector-auth-mode
src-mcp-auth-20260728 - Editorial review date
- 2026-09-10
- Seo metadata
- Meta title
- Confirm the server's documented authentication scheme before debugging OAuth | Knowledge…
- Meta description
- Candidate procedure for Failed to discover OAuth metadata: applicability, steps, limits, obsolete advice, evidence, and unknowns.
- Problem id
- problem-oauth-wrong-auth-mode
Page 1 · 1 children total
Sources and related records
No source relations recorded.