Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

mcp_client_example.md 494B

12345678910111213141516
  1. ---
  2. sidebar_position: 3
  3. slug: /mcp_client
  4. ---
  5. # RAGFlow MCP client example
  6. We provide a *prototype* MCP client example for testing [here](https://github.com/infiniflow/ragflow/blob/main/mcp/client/client.py).
  7. :::danger IMPORTANT
  8. If your MCP server is running in host mode, include your acquired API key in your client's `headers` as shown below:
  9. ```python
  10. async with sse_client("http://localhost:9382/sse", headers={"api_key": "YOUR_KEY_HERE"}) as streams:
  11. # Rest of your code...
  12. ```
  13. :::