summaryrefslogtreecommitdiff
path: root/packages/core/src/tools/mcp-client.ts
diff options
context:
space:
mode:
authorTommaso Sciortino <[email protected]>2025-07-29 16:03:39 -0700
committerGitHub <[email protected]>2025-07-29 23:03:39 +0000
commit327f915610406e4c159495eb734b3ffb0d32ffa4 (patch)
tree447b2f3dffb4df2657c7c597f7fc17e4585765eb /packages/core/src/tools/mcp-client.ts
parent008051e42d6f4df01c14bfc138e1acaf97cb854a (diff)
Fix typo in RFC 9728 impl (#5126)
Diffstat (limited to 'packages/core/src/tools/mcp-client.ts')
-rw-r--r--packages/core/src/tools/mcp-client.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/core/src/tools/mcp-client.ts b/packages/core/src/tools/mcp-client.ts
index d175af1f..b87b2124 100644
--- a/packages/core/src/tools/mcp-client.ts
+++ b/packages/core/src/tools/mcp-client.ts
@@ -146,20 +146,6 @@ export function getMCPDiscoveryState(): MCPDiscoveryState {
}
/**
- * Parse www-authenticate header to extract OAuth metadata URI.
- *
- * @param wwwAuthenticate The www-authenticate header value
- * @returns The resource metadata URI if found, null otherwise
- */
-function _parseWWWAuthenticate(wwwAuthenticate: string): string | null {
- // Parse header like: Bearer realm="MCP Server", resource_metadata_uri="https://..."
- const resourceMetadataMatch = wwwAuthenticate.match(
- /resource_metadata_uri="([^"]+)"/,
- );
- return resourceMetadataMatch ? resourceMetadataMatch[1] : null;
-}
-
-/**
* Extract WWW-Authenticate header from error message string.
* This is a more robust approach than regex matching.
*