mcp-server-chart
mcp-server-chart copied to clipboard
missing PRM hinders oauth
Command: authprobe scan --llm-max-tokens=1080 --openai-api-key=***REDACTED*** http://localhost:8024/mcp
Scanning: http://localhost:8024/mcp
Scan time: Feb 20, 2026 06:58:55 UTC
Github: https://github.com/authprobe/authprobe
Funnel
[1] MCP probe (401 + WWW-Authenticate) [-] SKIP
probe returned 405; checking PRM for OAuth config
[2] MCP initialize + tools/list [+] PASS
initialize -> 200
notifications/initialized -> 202
tools/list -> 200 (tools: generate_area_chart, generate_bar_chart,
generate_boxplot_chart, generate_column_chart, +23 more)
[3] PRM fetch matrix [X] FAIL
PRM unreachable or unusable; OAuth discovery unavailable
[4] Auth server metadata [-] SKIP
auth not required
[5] Token endpoint readiness (heuristics) [-] SKIP
auth not required
[6] Dynamic client registration (RFC 7591) [-] SKIP
auth not required
โโโโโโโโโโโโโโโโโโโโโโโโโค CALL TRACE โโโโโโโโโโโโโโโโโโโโโโโโโ
Call Trace Using: https://github.com/authprobe/authprobe
โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ
โ authprobe โ โ MCP Server โ
โโโโโโโฌโโโโโโโ โโโโโโโฌโโโโโโโ
โ โ
โ โโโโ Step 1: MCP probe โโโโโโโโชโโโโโโโโโโโโโโโโโโโโ
โ GET http://localhost:8024/mcp
โ Reason: 401 + WWW-Authenticate discovery
โ Accept: text/event-stream
โ Host: localhost:8024
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ 405 Method Not Allowed
โ Connection: keep-alive
โ Date: Fri, 20 Feb 2026 06:58:51 GMT
โ Keep-Alive: timeout=5
โ X-Powered-By: Express
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโ Step 2: MCP initialize โโโโโโโโชโโโโโโโโโโโโโโโโโโโโ
โ POST http://localhost:8024/mcp
โ Reason: Step 2: MCP initialize + tools/list (pre-init tools/list)
โ Accept: application/json, text/event-stream
โ Content-Type: application/json
โ Host: localhost:8024
โ Mcp-Protocol-Version: 2025-11-25
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ 200 OK
โ Cache-Control: no-cache
โ Connection: keep-alive
โ Content-Type: text/event-stream
โ Date: Fri, 20 Feb 2026 06:58:51 GMT
โ X-Powered-By: Express
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ POST http://localhost:8024/mcp
โ Reason: Step 2: MCP initialize + tools/list (initialize)
โ Accept: application/json, text/event-stream
โ Content-Type: application/json
โ Host: localhost:8024
โ Mcp-Protocol-Version: 2025-11-25
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ 200 OK
โ Cache-Control: no-cache
โ Connection: keep-alive
โ Content-Type: text/event-stream
โ Date: Fri, 20 Feb 2026 06:58:52 GMT
โ X-Powered-By: Express
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ POST http://localhost:8024/mcp
โ Reason: Step 2: MCP initialize + tools/list (notifications/initialized)
โ Accept: application/json, text/event-stream
โ Content-Type: application/json
โ Host: localhost:8024
โ Mcp-Protocol-Version: 2025-11-25
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ 202 Accepted
โ Connection: keep-alive
โ Content-Type: text/plain; charset=UTF-8
โ Date: Fri, 20 Feb 2026 06:58:52 GMT
โ Keep-Alive: timeout=5
โ X-Powered-By: Express
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ POST http://localhost:8024/mcp
โ Reason: Step 2: MCP initialize + tools/list (null id probe)
โ Accept: application/json, text/event-stream
โ Content-Type: application/json
โ Host: localhost:8024
โ Mcp-Protocol-Version: 2025-11-25
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ 400 Bad Request
โ Connection: keep-alive
โ Content-Length: 101
โ Content-Type: application/json
โ Date: Fri, 20 Feb 2026 06:58:52 GMT
โ Keep-Alive: timeout=5
โ X-Powered-By: Express
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ POST http://localhost:8024/mcp
โ Reason: Step 2: MCP initialize + tools/list (notification id probe)
โ Accept: application/json, text/event-stream
โ Content-Type: application/json
โ Host: localhost:8024
โ Mcp-Protocol-Version: 2025-11-25
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ 200 OK
โ Cache-Control: no-cache
โ Connection: keep-alive
โ Content-Type: text/event-stream
โ Date: Fri, 20 Feb 2026 06:58:52 GMT
โ X-Powered-By: Express
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ POST http://localhost:8024/mcp
โ Reason: Step 2: MCP initialize + tools/list (origin probe)
โ Accept: application/json, text/event-stream
โ Content-Type: application/json
โ Host: localhost:8024
โ Mcp-Protocol-Version: 2025-11-25
โ Origin: http://invalid.example
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ 200 OK
โ Cache-Control: no-cache
โ Connection: keep-alive
โ Content-Type: text/event-stream
โ Date: Fri, 20 Feb 2026 06:58:53 GMT
โ X-Powered-By: Express
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ POST http://localhost:8024/mcp
โ Reason: Step 2: MCP initialize + tools/list (protocol version probe)
โ Accept: application/json, text/event-stream
โ Content-Type: application/json
โ Host: localhost:8024
โ Mcp-Protocol-Version: invalid
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ 400 Bad Request
โ Connection: keep-alive
โ Content-Length: 195
โ Content-Type: application/json
โ Date: Fri, 20 Feb 2026 06:58:54 GMT
โ Keep-Alive: timeout=5
โ X-Powered-By: Express
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ POST http://localhost:8024/mcp
โ Reason: Step 2: MCP initialize + tools/list (tools/list)
โ Accept: application/json, text/event-stream
โ Content-Type: application/json
โ Host: localhost:8024
โ Mcp-Protocol-Version: 2025-11-25
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ 200 OK
โ Cache-Control: no-cache
โ Connection: keep-alive
โ Content-Type: text/event-stream
โ Date: Fri, 20 Feb 2026 06:58:54 GMT
โ X-Powered-By: Express
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โผ โผ
โโโโโโโโโโโโโโโโโโโโค ROOT-CAUSE ANALYSIS โโโโโโโโโโโโโโโโโโโโโ
Summary
The AuthProbe scan against the MCP OAuth server located at http://localhost:8024/mcp produced a valid and justified failure during step [3], specifically related to the PRM fetch matrix being unreachable or unusable, which resulted in OAuth discovery being unavailable. Additional findings regarding MCP initialization ordering and Origin validation were observed but noted as informational or low confidence issues.
Detailed explanation and spec references
1. PRM Fetch Matrix Failure ([3])
- Outcome: The Probe Resource Matrix (PRM), which serves as the OAuth discovery document, was unreachable or unusable. This led to failure in OAuth metadata discovery.
- Relevant Specs:
- MCP 2025-11-25 ยง4.3 (OAuth Discovery and PRM): MCP mandates that OAuth-related endpoints must expose valid PRM information to enable discovery and token acquisition. The PRM provides metadata essential for clients to properly OAuth authenticate, including endpoints, supported grant types, scopes, etc.
- RFC 8414 (OAuth 2.0 Authorization Server Metadata): Defines how OAuth AS metadata is exposed and must be discoverable for interoperability.
- RFC 9728 (OAuth Discovery Best Practices, MCP 2025-11-25 references): Requires the PRM to be correctly reachable and in expected format, enabling clients to dynamically discover authorization server parameters.
- Why failure is valid?
The failure is justified because without valid PRM discovery, OAuth clients cannot determine essential authorization server endpoints or capabilities. This violates MCP mandatory requirements for interoperability and security. - Correct server behavior:
- Serve a valid PRM response at the expected discovery URL.
- Ensure PRM endpoints are accessible over HTTP(S) whenever OAuth authentication is enabled.
- Respond with HTTP 200 and appropriate JSON-formatted metadata compliant with RFC 8414 and MCP 2025-11-25.
- Example PRM keys must include
issuer,authorization_endpoint,token_endpoint,jwks_uri, and supported scopes/grants.
2. MCP Initialization Ordering Not Enforced
- Issue: The server allowed
tools/listcommand before completinginitialize. - Spec Reference:
- MCP 2025-11-25 ยง3.1 (Initialization Ordering): MCP requires the client-server interaction starts with an
initializerequest to negotiate capabilities and versions before any other commands (e.g.,tools/list).
- MCP 2025-11-25 ยง3.1 (Initialization Ordering): MCP requires the client-server interaction starts with an
- Implication:
Although this does not cause a functional failure, it violates MCP protocol ordering semantics and could lead to inconsistent client state. - Recommendation:
Reject or defer requests other thaninitializeuntil theinitializehandshake is complete, preferably responding with HTTP 409 Conflict or MCP error indicating the client must initialize first.
3. MCP Origin Not Validated
- Issue: The server responded with HTTP 200 to an invalid
Originheader probe, indicating no origin checking. - Spec Reference:
- MCP 2025-11-25 ยง5.2 (Origin Validation): Servers must validate the
Originheader to prevent DNS rebinding and cross-site attacks, rejecting unsupported or unexpected origins with HTTP 403 Forbidden.
- MCP 2025-11-25 ยง5.2 (Origin Validation): Servers must validate the
- Implication:
This is a low-severity security concern but recommended to be fixed to harden CSP and prevent malicious usage via injected origins. - Recommendation:
Implement strict origin validation and reject requests from invalid or unexpected origins per MCP guidelines.
Additional Notes on Skipped Steps
- Steps [1], [4], [5], and [6] were skipped because the server did not enforce OAuth authorization (
auth not required), which is acceptable but makes OAuth-related discovery and registration steps irrelevant. - The 405 response to the initial MCP probe ([1]) indicates the server may not fully implement authentication or expects configuration to be fetched from PRM, but since PRM was unreachable, authentication could not be validated further.
Correct Server Behavior According to Specs
- On MCP Initialization:
- Accept and process
initializefirst. - Reject non-initialization requests until initialization completes (MCP 2025-11-25 ยง3.1).
- Accept and process
- On OAuth Discovery:
- Expose PRM at the well-known URL, responding with valid OAuth metadata compliant with RFC 8414, RFC 9728 requirements.
- Failures or unavailability of PRM should prevent OAuth clients from proceeding (per MCP 2025-11-25 OAuth discovery requirements).
- On Origin Header Handling:
- Validate
Originheaders against allowed origins list. - Respond with HTTP 403 for invalid or missing Origin (MCP 2025-11-25 ยง5.2).
- Validate
- On Authentication Requirement:
- If auth is required, support OAuth token endpoints and dynamic client registration (RFC 7591).
- Otherwise, clearly document if auth is not enforced to help clients adjust safely.
Conclusion
The failure during PRM fetch matrix retrieval (step 3) is valid and justified