mcp key
This commit is contained in:
@@ -14,7 +14,7 @@ import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/
|
||||
import { isInitializeRequest } from '@modelcontextprotocol/sdk/types.js';
|
||||
import { randomUUID } from 'crypto';
|
||||
import type { Response } from 'express';
|
||||
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
|
||||
import { McpAuthGuard } from '../auth/mcp-auth.guard';
|
||||
import { McpServerService } from './mcp-server.service';
|
||||
import type { AuthenticatedRequest } from '../auth/auth.types';
|
||||
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
||||
@@ -26,7 +26,7 @@ interface McpSession {
|
||||
}
|
||||
|
||||
@Controller('mcp')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@UseGuards(McpAuthGuard)
|
||||
export class McpController {
|
||||
private readonly sessions = new Map<string, McpSession>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user