Files
ragflow/web/src/interfaces/database/mcp.ts
balibabu aae9fbb9de Feat: Test MCP server #3221 (#8757)
### What problem does this PR solve?

Feat: Test MCP server #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-07-10 09:33:29 +08:00

42 lines
739 B
TypeScript

export interface IMcpServer {
create_date: string;
description: null;
id: string;
name: string;
server_type: string;
update_date: string;
url: string;
variables: Record<string, any> & { tools?: IMCPToolObject };
}
export type IMCPToolObject = Record<string, Omit<IMCPTool, 'name'>>;
export interface IMcpServerListResponse {
mcp_servers: IMcpServer[];
total: number;
}
export interface IMCPTool {
annotations: null;
description: string;
enabled: boolean;
inputSchema: InputSchema;
name: string;
}
interface InputSchema {
properties: Properties;
required: string[];
title: string;
type: string;
}
interface Properties {
symbol: ISymbol;
}
interface ISymbol {
title: string;
type: string;
}