You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45-7Lines changed: 45 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,14 +201,52 @@ Add this configuration to your MCP client to connect to the remote SSE server:
201
201
}
202
202
```
203
203
204
+
---
205
+
206
+
### HTTP RESTful API with Streaming Support
207
+
208
+
Finance MCP also supports HTTP RESTful API mode with streaming capabilities. This allows you to access flows directly via HTTP endpoints, not just through MCP protocol.
All flows configured with `stream: true` will be exposed as streaming HTTP endpoints. Responses are streamed in real-time using Server-Sent Events (SSE) format.
226
+
227
+
Example: Request streaming deep research (inspired by [open_deep_research](https://github.com/langchain-ai/open_deep_research)):
228
+
229
+
```bash
230
+
curl -X POST http://0.0.0.0:8002/langchain_deep_research \
231
+
-H "Content-Type: application/json" \
232
+
-d '{"query": "I want to learn about Kweichow Moutai stock"}'
233
+
```
234
+
235
+
The response will be streamed in real-time, showing:
236
+
- Thinking process and reasoning
237
+
- Tool calls and intermediate results
238
+
- Final comprehensive answer
239
+
240
+
**Note**: By default, this uses DashScope search, but you can replace it with other search backends (e.g., Tavily) by modifying the `stream_agent.yaml` configuration.
|`mcp.port`| Port number (for sse/http transports only) |`mcp.port=8001`|
212
250
|`llm.default.model_name`| Default LLM model name (overrides config file) |`llm.default.model_name=qwen3-30b-a3b-thinking-2507`|
213
251
|`disabled_flows`| JSON array of flow names to disable. **Tip**: Disable flows if you don't have the required API keys (e.g., `tavily_search` requires `TAVILY_API_KEY`) |`disabled_flows='["react_agent"]'`|
214
252
@@ -225,7 +263,7 @@ Add this configuration to your MCP client to connect to the remote SSE server:
225
263
226
264
---
227
265
228
-
### Using with FastMCP Client (Service Mode)
266
+
### Using with FastMCP Client
229
267
230
268
When running in Service Mode, you can also use the [FastMCP](https://gofastmcp.com/getting-started/welcome) Python client to directly access the server:
0 commit comments