Feat: mcp server (#7084)

### What problem does this PR solve?

Add MCP support with a client example.

Issue link: #4344

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Yongteng Lei
2025-04-21 09:43:20 +08:00
committed by GitHub
parent 9b956ac1a9
commit 68b9dae6c0
7 changed files with 403 additions and 3 deletions

View File

@ -8,6 +8,13 @@ services:
mysql:
condition: service_healthy
image: ${RAGFLOW_IMAGE}
# example to setup MCP server
# command:
# - --enable-mcpserver
# - --mcp-host=0.0.0.0
# - --mcp-port=9382
# - --mcp-base-url=http://127.0.0.1:9380
# - --mcp-script-path=/ragflow/mcp/server/server.py
container_name: ragflow-server
ports:
- ${SVR_HTTP_PORT}:9380
@ -15,6 +22,7 @@ services:
- 443:443
- 5678:5678
- 5679:5679
- 9382:9382 # entry for MCP (host_port:docker_port). The docker_port should match with the value you set for `mcp-port` above
volumes:
- ./ragflow-logs:/ragflow/logs
- ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf