Remove OAuth authorization flows and use API key authentication for MCP

This commit is contained in:
Mike Cao committed 2026-09-09 15:22:15 -07:00
1 parent 16acac5530
commit b185837063
85 files changed
+383 -4631

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ export function describeError(error: unknown, context: ErrorContext = {}): Descr
return {
code: 'access_denied',
status: 403,
message: `You do not have permission to access ${label}${error.code === 'insufficient_scope' ? ' with the granted OAuth scopes' : ''}.`,
message: `You do not have permission to access ${label}.`,
};
case 404:
return {
+1 -1
View File
@@ -7,7 +7,7 @@ import type { McpLogger } from './logger';
export interface ToolContext {
client: UmamiClient;
logger: McpLogger;
/** Identity attached to the connection (HTTP/OAuth mode). Used for logs only. */
/** Identity attached to the connection (HTTP mode). Used for logs only. */
identity?: { userId?: string; clientId?: string; requestId?: string };
}