MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / hasOAuth

Function hasOAuth

src/mcp/auth.ts:355–357  ·  view source on GitHub ↗
(config: { oauth?: McpOAuthConfig })

Source from the content-addressed store, hash-verified

353
354/** True if the config requests OAuth (vs. static headers). */
355export function hasOAuth(config: { oauth?: McpOAuthConfig }): boolean {
356 return config.oauth !== undefined && config.oauth !== false
357}
358
359/** True if a server config is http/sse with OAuth enabled. */
360export function isOAuthConfig(config: McpServerConfig): boolean {

Callers 2

buildTransportFunction · 0.85
isOAuthConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected