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

Function isOAuthConfig

src/mcp/auth.ts:360–362  ·  view source on GitHub ↗
(config: McpServerConfig)

Source from the content-addressed store, hash-verified

358
359/** True if a server config is http/sse with OAuth enabled. */
360export function isOAuthConfig(config: McpServerConfig): boolean {
361 return (config.type === "http" || config.type === "sse") && hasOAuth(config)
362}
363
364/** True if this server has persisted OAuth tokens (i.e. already authenticated). */
365export function hasStoredAuth(serverName: string): boolean {

Callers 2

connectOneMethod · 0.85
isOAuthServerMethod · 0.85

Calls 1

hasOAuthFunction · 0.85

Tested by

no test coverage detected