Add FastAPI HTTP service and MCP server for OpenClaw integration#267
Open
yizhibenshayu-bit wants to merge 1 commit intoshiyu-coder:masterfrom
Open
Add FastAPI HTTP service and MCP server for OpenClaw integration#267yizhibenshayu-bit wants to merge 1 commit intoshiyu-coder:masterfrom
yizhibenshayu-bit wants to merge 1 commit intoshiyu-coder:masterfrom
Conversation
- kronos_api.py: FastAPI HTTP service (port 8100) wrapping Kronos prediction
with endpoints /predict, /models, /health; supports A-share stock data
via akshare and custom OHLCV input; auto-loads Kronos-base on startup
- kronos_mcp_server.py: MCP stdio server exposing three tools for OpenClaw
Gateway / Claude Code agents:
* kronos_predict_stock - predict A-share stocks with K-line chart output
* kronos_predict_kline - predict from custom OHLCV data
* kronos_list_models - list available model variants
Generates matplotlib K-line charts saved to ~/.openclaw/media for
in-chat image rendering
- .gitignore: exclude pretrained_models/ and *.bat files
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
tanudai
approved these changes
Apr 17, 2026
tanudai
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
kronos_api.py: FastAPI HTTP service (port 8100) wrapping Kronos prediction with endpoints /predict, /models, /health; supports A-share stock data via akshare and custom OHLCV input; auto-loads Kronos-base on startup
kronos_mcp_server.py: MCP stdio server exposing three tools for OpenClaw Gateway / Claude Code agents:
Generates matplotlib K-line charts saved to ~/.openclaw/media for
in-chat image rendering
.gitignore: exclude pretrained_models/ and *.bat files