feat: streamable http mcp (#4695)

* feat: streamable http mcp

* mcp api path

* fix: ts
This commit is contained in:
Archer
2025-04-28 12:45:51 +08:00
committed by GitHub
parent d91b2ae303
commit ca8adbbf95
15 changed files with 562 additions and 457 deletions

View File

@@ -1,8 +1,5 @@
import { describe, it, expect, vi } from 'vitest';
import {
pluginNodes2InputSchema,
workflow2InputSchema
} from '@/pages/api/support/mcp/server/toolList';
import { pluginNodes2InputSchema, workflow2InputSchema } from '@/service/support/mcp/utils';
import { FlowNodeTypeEnum } from '@fastgpt/global/core/workflow/node/constant';
import {
VariableInputEnum,
@@ -22,7 +19,8 @@ vi.mock('@fastgpt/service/core/app/schema', () => ({
find: vi.fn().mockReturnValue({
lean: vi.fn()
})
}
},
AppCollectionName: 'apps'
}));
vi.mock('@fastgpt/service/core/app/version/controller', () => ({