2025-07-09 09:32:38 +08:00
|
|
|
export interface IMcpServer {
|
|
|
|
|
create_date: string;
|
|
|
|
|
description: null;
|
|
|
|
|
id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
server_type: string;
|
|
|
|
|
update_date: string;
|
|
|
|
|
url: string;
|
2025-07-10 09:33:29 +08:00
|
|
|
variables: Record<string, any> & { tools?: IMCPToolObject };
|
2025-07-09 09:32:38 +08:00
|
|
|
}
|
|
|
|
|
|
2025-07-10 09:33:29 +08:00
|
|
|
export type IMCPToolObject = Record<string, Omit<IMCPTool, 'name'>>;
|
|
|
|
|
|
2025-07-15 09:37:08 +08:00
|
|
|
export type IMCPToolRecord = Record<string, IMCPTool>;
|
|
|
|
|
|
2025-07-09 09:32:38 +08:00
|
|
|
export interface IMcpServerListResponse {
|
|
|
|
|
mcp_servers: IMcpServer[];
|
|
|
|
|
total: number;
|
|
|
|
|
}
|
2025-07-10 09:33:29 +08:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
2025-07-11 18:18:31 +08:00
|
|
|
|
|
|
|
|
export interface IExportedMcpServers {
|
2026-04-23 12:51:27 +08:00
|
|
|
mcpServers: Record<string, IExportedMcpServer>;
|
2025-07-11 18:18:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IExportedMcpServer {
|
|
|
|
|
authorization_token: string;
|
|
|
|
|
name: string;
|
|
|
|
|
tool_configuration: Record<string, any>;
|
|
|
|
|
type: string;
|
|
|
|
|
url: string;
|
|
|
|
|
}
|