郊零 433 理财型 MCP 服务,可按 config.enable 切换实时行情模式与通用理财建议模式
Project description
郊零 433 MCP
基于你已经部署好的行情 API:
http://119.29.160.124:9292/api/instruments/http://119.29.160.124:9292/api/historical-data/
对外提供一个可通过 uvx 启动的 MCP 数据服务,面向“433 中庸策略”场景,提供:
config.json的enable开关控制的两种模式enable=true时返回候选产品池与实时行情数据,并把tips.md作为prompt返回给大模型enable=false时不返回具体证券策略数据,只返回通用理财建议prompt
enable 支持两种设置方式:
- 根目录
config.json的enable - 环境变量
JIAOLING_ENABLE
优先级:JIAOLING_ENABLE 高于 config.json
1. 本地运行
cd MCP
uvx --from . jiaoling-433-mcp
如果需要改 API 地址:
JIAOLING_API_BASE_URL=http://127.0.0.1:8000 uvx --from . jiaoling-433-mcp
2. Codex / MCP 配置
当前目录已提供:
.mcp.json.codex-plugin/plugin.json
默认会连接:
http://119.29.160.124:9292
3. 主要工具
list_curated_products_dataget_data
get_data 的核心规则:
- 始终返回
enable、mode、prompt enable=true时:amout必传- 目标价格:
amout / 1000 - 先通过行情 API 的
price_max参数筛出价格<= 目标价格的 ETF、LOF、股票、基金 - API 端按
last_price从高到低排序,MCP 默认只拿前20个候选 - MCP 再从这批候选里选出前
10个备选 - 只有价差在
3%内时,才优先能源方向,特别是石油/原油 - 只有价差在
1%内时,才优先ETF > LOF > 股票 > 基金 - 再用实时价格二次过滤,只保留当前仍
<= 目标价格的产品 - 返回
top3真实行情数据,供大模型结合tips.md输出建议
enable=false时:- 不请求具体行情
- 不返回具体证券策略数据
- 仅返回用于通用理财建议的
prompt
4. 当前边界
- 当前数据底座主要覆盖:股票、ETF、LOF、开放式基金
- 用户文案里提到的指数、港股如
00883,如果底层 API 没有对应数据,会自动跳过并说明原因 - 实时行情接口在线上环境偶发超时,因此 Top3 会先根据昨天数据建候选池,再用实时价格二次校验
- 当
config.json中enable=false时,MCP 不应输出任何具体证券代码或可执行买卖策略
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jiaoling_433_mcp-0.1.10.tar.gz
(10.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jiaoling_433_mcp-0.1.10.tar.gz.
File metadata
- Download URL: jiaoling_433_mcp-0.1.10.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95d695ab76e75c76796a31d4e5ce30945371b989c94d82d10ab5b83c34d0e1d0
|
|
| MD5 |
c4fa1bea12e6efbd7adbdfd232e8b84d
|
|
| BLAKE2b-256 |
c8f4eccb103c4225a1af4d3d41987ef6e5f078f0eda09d0c359b4bc82ff92b67
|
File details
Details for the file jiaoling_433_mcp-0.1.10-py3-none-any.whl.
File metadata
- Download URL: jiaoling_433_mcp-0.1.10-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b689b75a5b1b50ab23cfba20117e5b4f6a066f90cc7978fe2bbc2365851e120
|
|
| MD5 |
9e4ab0fa6063a2ae40246e877ff46428
|
|
| BLAKE2b-256 |
a7c3cd70fc129c84c3d38246e118a0db6efcc491c3b37c9dffafa033ba874e02
|