mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 15:06:50 +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)
This commit is contained in:
@ -39,3 +39,20 @@ interface ISymbol {
|
||||
title: string;
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface IExportedMcpServers {
|
||||
mcpServers: McpServers;
|
||||
}
|
||||
|
||||
interface McpServers {
|
||||
fetch_2: IExportedMcpServer;
|
||||
github_1: IExportedMcpServer;
|
||||
}
|
||||
|
||||
export interface IExportedMcpServer {
|
||||
authorization_token: string;
|
||||
name: string;
|
||||
tool_configuration: Record<string, any>;
|
||||
type: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
import { IExportedMcpServer } from '@/interfaces/database/mcp';
|
||||
|
||||
export interface ITestMcpRequestBody {
|
||||
server_type: string;
|
||||
url: string;
|
||||
@ -5,3 +7,10 @@ export interface ITestMcpRequestBody {
|
||||
variables?: Record<string, any>;
|
||||
timeout?: number;
|
||||
}
|
||||
|
||||
export interface IImportMcpServersRequestBody {
|
||||
mcpServers: Record<
|
||||
string,
|
||||
Pick<IExportedMcpServer, 'type' | 'url' | 'authorization_token'>
|
||||
>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user