MCPcopy Index your code
hub / github.com/codeaashu/claude-code / clientMetadata

Method clientMetadata

src/services/mcp/auth.ts:1417–1437  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1415 }
1416
1417 get clientMetadata(): OAuthClientMetadata {
1418 const metadata: OAuthClientMetadata = {
1419 client_name: `Claude Code (${this.serverName})`,
1420 redirect_uris: [this.redirectUri],
1421 grant_types: ['authorization_code', 'refresh_token'],
1422 response_types: ['code'],
1423 token_endpoint_auth_method: 'none', // Public client
1424 }
1425
1426 // Include scope from metadata if available
1427 const metadataScope = getScopeFromMetadata(this._metadata)
1428 if (metadataScope) {
1429 metadata.scope = metadataScope
1430 logMCPDebug(
1431 this.serverName,
1432 `Using scope from metadata: ${metadata.scope}`,
1433 )
1434 }
1435
1436 return metadata
1437 }
1438
1439 /**
1440 * CIMD (SEP-991): URL-based client_id. When the auth server advertises

Callers

nothing calls this directly

Calls 2

getScopeFromMetadataFunction · 0.85
logMCPDebugFunction · 0.85

Tested by

no test coverage detected