import type { Core } from '@strapi/strapi'; /** * MCP Controller * * Handles MCP (Model Context Protocol) requests. * Authentication is handled by middleware (OAuth manager or fallback) which sets: * - ctx.state.strapiToken: The Strapi API token to use * - ctx.state.authMethod: 'oauth' or 'api-token' */ declare const mcpController: ({ strapi }: { strapi: Core.Strapi; }) => { /** * Handle MCP requests (POST, GET, DELETE) * Authentication is handled by middleware * Creates a new server+transport per session for proper isolation */ handle(ctx: any): Promise; }; export default mcpController;