Remove OAuth authorization flows and use API key authentication for MCP
This commit is contained in:
1 parent
16acac5530
commit
b185837063
85 files changed
+383
-4631
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user