Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Infiniflow Ragflow McpServerService

From Leeroopedia
Knowledge Sources
Domains Frontend, API, MCP
Last Updated 2026-02-12 06:00 GMT

Overview

Concrete frontend HTTP API client for MCP (Model Context Protocol) server management endpoints in the RAGFlow frontend.

Description

The services/mcp-server-service.ts module defines API endpoints for: listing registered MCP servers, creating/updating/deleting servers, fetching server details, listing available tools from a server, and testing server connectivity.

Usage

Import these service functions in MCP management hooks and agent configuration views.

Code Reference

Source Location

Signature

export const listMcpServers: () => Promise<Response>;
export const createMcpServer: (data) => Promise<Response>;
export const updateMcpServer: (data) => Promise<Response>;
export const deleteMcpServer: (id: string) => Promise<Response>;
export const getMcpServerTools: (id: string) => Promise<Response>;
export const testMcpServer: (data) => Promise<Response>;

Import

import { listMcpServers, createMcpServer } from '@/services/mcp-server-service';

I/O Contract

Inputs

Name Type Required Description
data object Varies Server config for create/update
id string Varies Server ID for details/delete/tools

Outputs

Name Type Description
returns Promise<Response> API response with server/tool data

Usage Examples

import { createMcpServer, getMcpServerTools } from '@/services/mcp-server-service';

await createMcpServer({ name: 'My MCP', url: 'http://localhost:8080/mcp' });
const tools = await getMcpServerTools('server-id');

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment