mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
c3f7961242
Move enterprise-learning MCP attachment out of the BuiltInAgent-specific path and the intelligence run handler into a single request-scoped hook: - `attachIntelligenceEnterpriseLearning` (agent-utils) attaches `@ag-ui/mcp-middleware` via `configureAgentForRequest`, gated on `ɵisEnterpriseLearningEnabled()`, resolving the user via `identifyUser` and the project apiKey. - Called from `handleRunAgent`; the old `forwardedProps.auth` MCP plumbing in `intelligence/run.ts` and the BuiltInAgent attach in `agent/index.ts` are removed. - Add released `@ag-ui/mcp-middleware@0.0.1` dependency (lockfile + `@ag-ui/client` override). Drops the obsolete intelligence-mcp-helper test.
6.2 KiB
6.2 KiB