mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Import and export MCP Server #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
import { IExportedMcpServer } from '@/interfaces/database/mcp';
|
|
|
|
export interface ITestMcpRequestBody {
|
|
server_type: string;
|
|
url: string;
|
|
headers?: Record<string, any>;
|
|
variables?: Record<string, any>;
|
|
timeout?: number;
|
|
}
|
|
|
|
export interface IImportMcpServersRequestBody {
|
|
mcpServers: Record<
|
|
string,
|
|
Pick<IExportedMcpServer, 'type' | 'url' | 'authorization_token'>
|
|
>;
|
|
}
|