← 返回 Skills 市场
100
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install finance-engine-mcp
功能描述
调用Finance Engine MCP服务器执行量化策略。当用户需要运行因子表达式策略、回测交易策略或执行金融分析时调用此技能。基于MCP Server工具的实际默认值设置。
使用说明 (SKILL.md)
\r \r
Finance Engine MCP 服务器调用指南 v2.9\r
\r
⚠️ 前提条件\r
\r 场景1:如果你是在使用 非 openclaw Agent,在使用本技能之前,请确保满足以下配置要求:\r \r
1. 手动配置 MCP Server\r
"mcpServers": {\r
"engine_mcp_server": {\r
"url": "https://mcp.hzyotoy.com/engine/mcp",\r
"headers": {\r
"Authorization": "Aksk Mu4OfFXJSPyWXGv3",\r
"appid": "mcpclient001"\r
}\r
}\r
}\r
```\r
\r
场景2:如果你是在使用 openclaw Agent,在使用本技能之前,请确保满足以下配置要求:\r
\r
### 1. openclaw 版本要求\r
- **最低版本**:`>=2026.3.24`\r
- 请确保你的 openclaw 版本不低于 2026.3.24,如需升级,请使用openclaw update升级\r
\r
### 2. 开启 MCP 功能\r
在主配置文件中启用 MCP 功能:\r
\r
```yaml\r
commands:\r
mcp: true\r
```\r
\r
### 3. 配置 MCP Server\r
在主配置文件中添加 MCP Server 配置:\r
\r
```json\r
"mcp": {\r
"servers": {\r
"engine_mcp_server": {\r
"url": "https://mcp.hzyotoy.com/engine/mcp",\r
"headers": {\r
"Authorization": "Aksk Mu4OfFXJSPyWXGv3",\r
"appid": "mcpclient001"\r
}\r
}\r
}\r
}\r
```\r
\r
## 🎯 快速调用\r
\r
当用户提供策略条件时,基于MCP Server工具的实际默认值自动组合参数:\r
\r
```python\r
# 自动组合参数示例(基于MCP Server工具实际默认值)\r
mcp_engine_mcp_server_run_expression_selected(\r
input={\r
"startDate": "2024-01-17", # 开始日期,DateTime类型\r
"endDate": "2024-04-17", # 结束日期,DateTime类型\r
"period": "5m", # 基础周期(默认:5m)\r
"codes": "", # 合约代码列表(新增字段,默认:空)\r
"poolId": 10, # 期货加权品种池(默认:10)\r
"openCondition": "用户提供的开仓条件",\r
"closeCondition": "用户提供的平仓条件", \r
"stopCondition": "用户提供的止损条件",\r
"initCash": 10000000, # 初始资金(默认:10000000)\r
"direction": 1, # 多头方向(默认:1)\r
"commssionFee": 0, # 手续费%(默认:0,不需要手续费)\r
"slippage": 0, # 跳数或跳点值(默认:0,按最小变动价格计算)\r
"runId": 123456789 # 运行ID(默认:随机生成一串长整型数字)\r
}\r
)\r
```\r
\r
## 📋 参数说明(基于MCP Server工具实际默认值)\r
\r
### 主要参数结构\r
| 参数 | 类型 | 说明 | 实际默认值 | 示例 |\r
|------|------|------|-----------|------|\r
| `input` | `ExpressionSelectedV2Input` | **输入参数对象** | - | `{...}` |\r
\r
### ExpressionSelectedV2Input对象属性\r
| 属性 | 类型 | 说明 | 实际默认值 | 示例 |\r
|------|------|------|-----------|------|\r
| `startDate` | `DateTime` | **开始日期** | **当前日期-3个月** | `"2024-01-17"` |\r
| `endDate` | `DateTime` | **结束日期** | **当前日期** | `"2024-04-17"` |\r
| `period` | `string` | **基础周期** | **`"5m"`**(5分钟) | `"1d"`, `"60m"` |\r
| `codes` | `string` | **合约代码列表**(新增) | **空字符串** | `"IF2404,IC2404"` |\r
| `poolId` | `int` | 品种池ID | `10`(期货加权) | `4`(股票池) |\r
| `openCondition` | `string` | 开仓条件 | 用户提供 | `"_ma_5m_30_trend == 1"` |\r
| `closeCondition` | `string` | 平仓条件 | 用户提供 | `"_ma_5m_30_trend == -1"` |\r
| `stopCondition` | `string` | 止损条件 | 用户提供 | `"_palp > 10"` |\r
| `initCash` | `float` | 初始资金 | **10000000** | `500000` |\r
| `direction` | `int` | 交易方向 | `1`(多头) | `0`(空头) |\r
| `commssionFee` | `float` | **手续费%** | **`0`**(不需要手续费) | `-1`(按系统设置手续费参与计算) |\r
| `slippage` | `float` | **跳数或跳点值** | **`0`**(按最小变动价格计算) | `1`(1个跳点) |\r
| `runId` | `long` | **运行ID** | **随机生成一串长整型数字** | `123456789` |\r
\r
### 手续费参数说明\r
| 值 | 说明 | 适用场景 |\r
|----|------|----------|\r
| `0` | **不需要手续费** | 默认值,测试策略时使用 |\r
| `-1` | **按系统设置手续费参与计算** | 使用系统配置的手续费 |\r
| `>0` | **按设置的手续费计算** | 自定义手续费率 |\r
\r
### 滑点参数说明\r
| 值 | 说明 | 适用场景 |\r
|----|------|----------|\r
| `0` | **无滑点** | 默认值,理想交易环境 |\r
| `>0` | **按设置的跳点值计算** | 模拟真实交易环境 |\r
\r
### 合约代码参数说明(新增)\r
| 值 | 说明 | 适用场景 |\r
|----|------|----------|\r
| **空字符串** | **使用品种池进行回测** | 默认值,使用poolId指定的品种池 |\r
| **具体合约代码** | **指定具体合约进行回测** | 如`"IF2404,IC2404"`,多个合约以逗号分隔 |\r
\r
### 合约代码与品种池关系\r
| 情况 | codes值 | poolId值 | 说明 |\r
|------|---------|----------|------|\r
| **使用品种池** | 空 | >0 | 默认情况,使用poolId指定的品种池 |\r
| **使用具体合约** | 非空 | 0 | 系统自动将poolId置为0,使用指定合约 |\r
| **无效配置** | 空 | 0 | 错误:必须提供合约代码或有效品种池 |\r
\r
### 运行ID参数说明\r
| 值 | 说明 | 适用场景 |\r
|----|------|----------|\r
| **随机长整型数字** | **每次运行可随机生成一串长整型数字** | 用于标识每次策略运行的唯一ID |\r
\r
### 完整周期参数映射\r
| 周期 | 说明 | 适用策略 | 默认值 |\r
|------|------|----------|--------|\r
| `"1m"` | 1分钟 | 高频交易 | - |\r
| `"5m"` | 5分钟 | 短线交易 | ✅ |\r
| `"15m"` | 15分钟 | 中短线策略 | - |\r
| `"30m"` | 30分钟 | 中短线策略 | - |\r
| `"60m"` | 1小时或60分钟 | 短期趋势 | - |\r
| `"1d"` | 1日或日线或天 | 中长线策略 | - |\r
| `"1w"` | 1周或周 | 长期投资 | - |\r
| `"1mon"` | 1月或月 | 长期投资 | - |\r
\r
### 品种池映射\r
| poolId | 说明 | 适用市场 | 默认值 |\r
|--------|------|----------|--------|\r
| `10` | **期货加权品种池** | 期货市场 | ✅ |\r
| `4` | 股票品种池 | 股票市场 | - |\r
| `6` | ETF品种池 | ETF市场 | - |\r
\r
## 🔧 智能参数推断逻辑(重要)\r
\r
### 基础周期推断规则(关键区别)\r
```python\r
# 重要概念区分:\r
# 1. 基础周期(period):K线数据的周期(5m、30m、1d等)\r
# 2. 均线周期:技术指标的计算周期(30、60、120等)\r
\r
# 规则1:用户明确指定基础周期时,使用用户指定的周期\r
if "基础周期" in user_input or "K线周期" in user_input or "数据周期" in user_input:\r
if "30分钟" in user_input:\r
period = "30m"\r
elif "60分钟" in user_input or "1小时" in user_input:\r
period = "60m"\r
elif "5分钟" in user_input:\r
period = "5m"\r
elif "15分钟" in user_input:\r
period = "15m"\r
elif "日" in user_input or "天" in user_input:\r
period = "1d"\r
elif "周" in user_input:\r
period = "1w"\r
elif "月" in user_input:\r
period = "1mon"\r
else:\r
# 规则2:用户未明确指定基础周期时,使用默认周期5m\r
# 注意:用户提到"30分钟均线"指的是均线周期,不是基础周期!\r
period = "5m" # 默认值\r
```\r
\r
### 均线周期识别规则\r
```python\r
# 识别用户提到的均线周期(用于构建FactorLang表达式)\r
if "30分钟均线" in user_input:\r
# 用户提到的是均线周期30,基础周期仍然是5m\r
ma_period = "5m" # 基础周期\r
ma_length = "30" # 均线长度\r
elif "60分钟均线" in user_input:\r
ma_period = "5m" # 基础周期\r
ma_length = "60" # 均线长度 \r
elif "120分钟均线" in user_input:\r
ma_period = "5m" # 基础周期\r
ma_length = "120" # 均线长度\r
elif "240分钟均线" in user_input:\r
ma_period = "5m" # 基础周期\r
ma_length = "240" # 均线长度\r
else:\r
# 默认均线周期\r
ma_period = "5m"\r
ma_length = "30"\r
```\r
\r
### 时间范围推断规则(重要:基于当前日期计算)\r
```python\r
# 重要:所有时间范围都基于当前日期动态计算\r
# 当前日期:2026年3月25日(根据环境信息)\r
\r
# 规则1:用户明确指定时间范围时,使用用户指定的范围\r
if "近5年" in user_input:\r
startDate = "2021-03-25" # 当前日期-5年\r
endDate = "2026-03-25" # 当前日期\r
elif "近3年" in user_input:\r
startDate = "2023-03-25" # 当前日期-3年\r
endDate = "2026-03-25" # 当前日期\r
elif "近1年" in user_input:\r
startDate = "2025-03-25" # 当前日期-1年\r
endDate = "2026-03-25" # 当前日期\r
else:\r
# 规则2:用户未指定时间范围时,使用默认近3个月\r
startDate = "2025-12-25" # 当前日期-3个月\r
endDate = "2026-03-25" # 当前日期\r
```\r
\r
### 止损条件智能修正\r
```python\r
# 规则1:用户使用中文描述时,自动转换为FactorLang变量\r
if "盈亏点" in stop_condition or "点数" in stop_condition:\r
stop_condition = stop_condition.replace("盈亏点", "_palp")\r
elif "盈亏%" in stop_condition or "百分比" in stop_condition:\r
stop_condition = stop_condition.replace("盈亏%", "_palr")\r
\r
# 规则2:确保使用正确的变量\r
if "_profit_loss_percent" in stop_condition:\r
stop_condition = stop_condition.replace("_profit_loss_percent", "_palr")\r
```\r
\r
## 🎯 使用示例(基于智能推断)\r
\r
### 示例1:用户未指定基础周期(使用默认5m)\r
```python\r
# 用户输入:开仓条件,30分钟均线120朝上且日级别是金叉状态\r
# AI推断:用户提到的是均线周期30,不是基础周期,使用默认5m基础周期\r
\r
mcp_engine_mcp_server_run_expression_selected(\r
input={\r
"startDate": "2024-01-17", # 近3个月(默认)\r
"endDate": "2024-04-17", # 当前日期(默认)\r
"period": "5m", # 5分钟基础周期(默认)\r
"poolId": 10, # 期货加权池(默认)\r
"openCondition": "_ma_5m_120_trend == 1 && _dkx_1d_cross_status == 1",\r
"closeCondition": "_ma_5m_120_trend == -1 && _dkx_1d_cross_status == -1",\r
"stopCondition": "_palp > 10", # 盈亏点数大于10\r
"initCash": 10000000, # 1000万初始资金(默认)\r
"direction": 1, # 多头方向(默认)\r
"commssionFee": -1, # 手续费%(默认:按系统设置)\r
"slippage": 0, # 滑点(默认:无滑点)\r
"runId": 123456789 # 运行ID(默认:随机生成)\r
}\r
)\r
```\r
\r
### 示例2:用户明确指定基础周期\r
```python\r
# 用户输入:开仓条件,基础周期30分钟,均线120朝上\r
# AI推断:用户明确指定基础周期30m\r
\r
mcp_engine_mcp_server_run_expression_selected(\r
input={\r
"startDate": "2024-01-17",\r
"endDate": "2024-04-17",\r
"period": "30m", # 用户指定基础周期30m\r
"poolId": 10,\r
"openCondition": "_ma_30m_120_trend == 1 && _dkx_1d_cross_status == 1",\r
"closeCondition": "_ma_30m_120_trend == -1 && _dkx_1d_cross_status == -1",\r
"stopCondition": "_palp > 10",\r
"initCash": 10000000,\r
"direction": 1,\r
"commssionFee": -1, # 手续费%(默认:按系统设置)\r
"slippage": 0, # 滑点(默认:无滑点)\r
"runId": 123456789 # 运行ID(默认:随机生成)\r
}\r
)\r
```\r
\r
### 示例3:用户指定手续费和滑点\r
```python\r
# 用户输入:开仓条件,均线朝上,手续费0.1%,滑点1个跳点\r
# AI推断:用户指定手续费和滑点参数\r
\r
mcp_engine_mcp_server_run_expression_selected(\r
input={\r
"startDate": "2024-01-17",\r
"endDate": "2024-04-17",\r
"period": "5m", # 5分钟基础周期(默认)\r
"poolId": 10,\r
"openCondition": "_ma_5m_30_trend == 1",\r
"closeCondition": "_ma_5m_30_trend == -1",\r
"stopCondition": "_palp > 10",\r
"initCash": 10000000,\r
"direction": 1,\r
"commssionFee": 0.1, # 用户指定手续费0.1%\r
"slippage": 1, # 用户指定滑点1个跳点\r
"runId": 123456789 # 运行ID(默认:随机生成)\r
}\r
)\r
```\r
\r
### 示例4:用户指定具体合约代码(新增)\r
```python\r
# 用户输入:开仓条件,均线朝上,指定IF2404和IC2404合约\r
# AI推断:用户指定具体合约代码,系统自动将poolId置为0\r
\r
mcp_engine_mcp_server_run_expression_selected(\r
input={\r
"startDate": "2024-01-17",\r
"endDate": "2024-04-17",\r
"period": "5m", # 5分钟基础周期(默认)\r
"codes": "IF2404,IC2404", # 用户指定具体合约代码\r
"poolId": 10, # 系统会自动置为0,使用指定合约\r
"openCondition": "_ma_5m_30_trend == 1",\r
"closeCondition": "_ma_5m_30_trend == -1",\r
"stopCondition": "_palp > 10",\r
"initCash": 10000000,\r
"direction": 1,\r
"commssionFee": 0, # 不需要手续费(默认)\r
"slippage": 0, # 无滑点(默认)\r
"runId": 123456789 # 运行ID(默认:随机生成)\r
}\r
)\r
```\r
\r
## 🚨 重要规则(AI必须遵守)\r
\r
### 规则1:基础周期与均线周期区分\r
- **基础周期(period)**:K线数据的周期,默认值`"5m"`\r
- **均线周期**:技术指标的计算周期,如30、60、120等\r
- **关键区别**:用户提到"30分钟均线"指的是均线周期,不是基础周期!\r
\r
### 规则2:基础周期推断逻辑\r
- 用户提到"基础周期"、"K线周期"、"数据周期" → 使用用户指定的基础周期\r
- **用户未明确指定基础周期** → 必须使用默认值`"5m"`\r
- 用户提到"30分钟均线" → 这是均线周期,基础周期仍然是`"5m"`\r
\r
### 规则3:时间范围推断逻辑\r
- 用户提到"近5年" → 使用5年时间范围\r
- 用户提到"近3年" → 使用3年时间范围\r
- 用户提到"近1年" → 使用1年时间范围\r
- **用户未提到时间范围** → 必须使用`"近3个月"`\r
\r
### 规则4:参数结构匹配(重要更新)\r
- **必须使用新的参数结构**:`input`对象包含所有参数\r
- **参数类型变更**:日期参数现在是`DateTime`类型\r
- **新增字段**:`codes`、`commssionFee`、`slippage`和`runId`参数\r
\r
### 规则5:合约代码智能推断(新增)\r
- **用户提到具体合约代码**:如"IF2404"、"IC2404"等 → 自动设置`codes`字段\r
- **用户提到品种池**:如"期货加权池"、"股票池"等 → 使用`poolId`字段\r
- **同时指定合约和品种池**:优先使用合约代码,系统自动将`poolId`置为0\r
\r
## 💡 最佳实践(AI执行策略)\r
\r
1. **仔细分析用户输入**:严格区分基础周期和均线周期\r
2. **严格遵守默认值规则**:用户未明确指定基础周期时,必须使用默认值`"5m"`\r
3. **智能变量转换**:自动将中文描述转换为FactorLang变量\r
4. **参数验证**:确保所有参数符合MCP Server工具的要求\r
5. **参数结构匹配**:使用新的`input`对象结构\r
6. **手续费和滑点处理**:正确处理新增的`commssionFee`和`slippage`参数\r
7. **运行ID生成**:自动生成随机`runId`用于标识每次运行\r
\r
## 🔄 标准 JSON-RPC 调用格式\r
\r
### MCP 工具标准调用格式\r
当调用 MCP 工具时,必须使用以下标准的 JSON-RPC 格式:\r
\r
```json\r
{\r
"method": "tools/call",\r
"params": {\r
"name": "run_expression_selected",\r
"arguments": {\r
"input": {\r
"startDate": "2023-01-17T00:00",\r
"endDate": "2026-04-17T00:00",\r
"openCondition": "_close_5m > MAX(_box_15m_green_high, REF(_box_15m_green_high, 1)) && _dkx_30m_cross_status == 1",\r
"closeCondition": "_close_5m \x3C MIN(_box_15m_red_low, REF(_box_15m_red_low, 1)) && _dkx_30m_cross_status == -1",\r
"period": "5m",\r
"poolId": 10,\r
"codes": "ag8888,au8888",\r
"initCash": 10000000,\r
"direction": 1,\r
"commssionFee": 0,\r
"slippage": 0,\r
"runId": 1\r
}\r
},\r
"_meta": {\r
"progressToken": 82\r
}\r
}\r
}\r
```\r
\r
### JSON-RPC 参数说明\r
\r
| 字段 | 类型 | 说明 | 示例 |\r
|------|------|------|------|\r
| `method` | `string` | 调用的方法名 | `"tools/call"` |\r
| `params.name` | `string` | MCP 工具名称 | `"run_expression_selected"` |\r
| `params.arguments` | `object` | 工具参数对象 | `{ "input": {...} }` |\r
| `params.arguments.input` | `object` | 策略输入参数 | 见下方详细说明 |\r
| `params._meta` | `object` | 元数据(可选) | `{ "progressToken": 82 }` |\r
\r
### input 对象参数说明\r
\r
| 参数 | 类型 | 说明 | 示例 |\r
|------|------|------|------|\r
| `startDate` | `DateTime` | 开始日期 | `"2023-01-17T00:00"` |\r
| `endDate` | `DateTime` | 结束日期 | `"2026-04-17T00:00"` |\r
| `openCondition` | `string` | 开仓条件 | `"_close_5m > MAX(_box_15m_green_high, REF(_box_15m_green_high, 1)) && _dkx_30m_cross_status == 1"` |\r
| `closeCondition` | `string` | 平仓条件 | `"_close_5m \x3C MIN(_box_15m_red_low, REF(_box_15m_red_low, 1)) && _dkx_30m_cross_status == -1"` |\r
| `period` | `string` | 基础周期 | `"5m"` |\r
| `poolId` | `int` | 品种池ID | `10` |\r
| `codes` | `string` | 合约代码列表 | `"ag8888,au8888"` |\r
| `initCash` | `float` | 初始资金 | `10000000` |\r
| `direction` | `int` | 交易方向 | `1`(多头) |\r
| `commssionFee` | `float` | 手续费% | `0` |\r
| `slippage` | `float` | 跳数或跳点值 | `0` |\r
| `runId` | `long` | 运行ID | `1` |\r
\r
### 调用示例\r
\r
**示例1:使用品种池回测**\r
```json\r
{\r
"method": "tools/call",\r
"params": {\r
"name": "run_expression_selected",\r
"arguments": {\r
"input": {\r
"startDate": "2025-12-25T00:00",\r
"endDate": "2026-03-25T00:00",\r
"openCondition": "_ma_5m_30_trend == 1 && _dkx_1d_cross_status == 1",\r
"closeCondition": "_ma_5m_30_trend == -1 && _dkx_1d_cross_status == -1",\r
"period": "5m",\r
"poolId": 10,\r
"codes": "",\r
"initCash": 10000000,\r
"direction": 1,\r
"commssionFee": 0,\r
"slippage": 0,\r
"runId": 1774578250123\r
}\r
}\r
}\r
}\r
```\r
\r
**示例2:使用具体合约代码回测**\r
```json\r
{\r
"method": "tools/call",\r
"params": {\r
"name": "run_expression_selected",\r
"arguments": {\r
"input": {\r
"startDate": "2023-01-17T00:00",\r
"endDate": "2026-04-17T00:00",\r
"openCondition": "_close_5m > MAX(_box_15m_green_high, REF(_box_15m_green_high, 1)) && _dkx_30m_cross_status == 1",\r
"closeCondition": "_close_5m \x3C MIN(_box_15m_red_low, REF(_box_15m_red_low, 1)) && _dkx_30m_cross_status == -1",\r
"period": "5m",\r
"poolId": 10,\r
"codes": "ag8888,au8888",\r
"initCash": 10000000,\r
"direction": 1,\r
"commssionFee": 0,\r
"slippage": 0,\r
"runId": 1\r
}\r
}\r
}\r
}\r
```\r
\r
### 重要说明\r
- **日期格式**:使用 ISO 8601 格式,如 `"2023-01-17T00:00"`\r
- **合约代码**:多个合约以逗号分隔,如 `"ag8888,au8888"`\r
- **品种池与合约代码**:当指定具体合约代码时,系统会自动将 `poolId` 置为 0\r
- **元数据**:`_meta` 字段为可选,用于传递进度令牌等元信息\r
\r
## 🔄 默认值优先级(AI必须遵守)\r
\r
1. **用户明确指定值**:最高优先级(必须包含"基础周期"等关键词)\r
2. **智能推断值**:根据用户描述推断\r
3. **MCP Server工具默认值**:最低优先级(当用户未指定时使用)\r
\r
---\r
\r
**数据来源**:基于MCP Server工具类的实际默认值设置\r
**调用时机**:当用户需要运行因子表达式策略、回测交易策略或执行金融分析时自动调用此技能。\r
\r
**版本**:v3.0(同步MCP工具最新参数结构,新增codes字段,支持具体合约代码回测)\r
\r
## � 运行耗时单位说明\r
\r
### 运行耗时单位\r
- **运行耗时(timeConsuming)的单位是毫秒(ms)**\r
- 示例:`"timeConsuming": 310` 表示运行耗时310毫秒(0.31秒)\r
\r
### 运行耗时解读\r
| 耗时范围 | 说明 | 性能评估 |\r
|----------|------|----------|\r
| \x3C 100ms | 极快 | 优秀 |\r
| 100-500ms | 快速 | 良好 |\r
| 500-1000ms | 正常 | 一般 |\r
| > 1000ms | 较慢 | 需要优化 |\r
\r
## �🔗 结果查看指南\r
\r
### 策略结果查看方式\r
策略运行完成后,系统会生成一个唯一的查看链接:\r
\r
```markdown\r
https://visual.hzyotoy.com/?data_dir=xzr&data_id=123456789&initCash=10000000\r
```\r
\r
**点击链接或复制URL到浏览器中查看完整策略分析报告**\r
\r
### 结果查看规范(AI必须遵守)\r
1. **必须提供完整的查看链接**:包含协议、主机、端口和所有参数\r
2. **必须明确说明链接用途**:告知用户这是策略分析报告链接\r
3. **必须提示用户点击操作**:明确指示用户如何查看结果\r
4. **必须包含运行耗时说明**:明确告知运行耗时的单位是毫秒\r
\r
### 查看链接参数说明\r
| 参数 | 说明 | 示例 |\r
|------|------|------|\r
| `data_dir` | 数据目录 | `xzr` |\r
| `data_id` | 运行ID | `123456789` |\r
| `initCash` | 初始资金 | `10000000` |\r
\r
**AI执行要求**:必须严格遵守本SKILL中的参数结构匹配规则、类型要求和结果查看规范!
安全使用建议
What to consider before installing/using this skill:
- The SKILL.md embeds a third-party server URL (mcp.hzyotoy.com) and a hardcoded Authorization/appid. Do not assume those credentials are safe: verify the server owner and that you trust it before enabling.
- Prefer the skill to require you to set your own env var or secret (e.g., MCP_API_KEY) rather than using hardcoded tokens in docs. Ask the skill author to declare a primary credential and avoid shipping secrets in the instructions.
- Be cautious about editing your agent's main config: back up the config first and restrict who/what can use the mcp server entry.
- If you must test, run the skill in an isolated environment and monitor network traffic to confirm which data is sent to the external endpoint. Use non-sensitive test inputs initially.
- If you cannot confirm the server's trustworthiness or the provenance of the embedded Authorization token, do not add those values to your production agent config and request a version of the skill that accepts user-supplied credentials.
- For higher assurance, ask the publisher for source code or a signed release and why credentials are included in the documentation. If the author is internal to your organization, verify it via an independent channel.
能力评估
Purpose & Capability
The declared purpose (invoke a Finance Engine MCP server to run strategies) is coherent with the instructions. However, the SKILL.md embeds a concrete external endpoint (https://mcp.hzyotoy.com/engine/mcp) and explicit Authorization/appid header values rather than referencing a user-provided credential or declaring them in the skill metadata. The registry metadata lists no required env vars or config paths, yet the instructions require adding server credentials to the agent config — this inconsistency is disproportionate.
Instruction Scope
Instructions go beyond describing API parameters: they tell the user/agent to enable MCP in the main agent configuration and add a server entry containing an Authorization header and appid. The doc effectively prescribes modifying agent-wide config and shipping requests to an external domain. It also contains automation logic for inferring dates/periods which is fine for the purpose, but the parts that modify agent config and include hardcoded secrets broaden scope and risk.
Install Mechanism
This is instruction-only (no install spec, no code files). That lowers risk because nothing is automatically downloaded or written by an installer. Still, the instructions require manual edits to agent config which is an installation-like change.
Credentials
The skill requests no env vars in metadata, yet the SKILL.md contains a concrete Authorization token and appid header value. Hardcoded credentials in documentation without declaring a primary credential or requiring the user to supply their own is disproportionate and risky. The skill also asks to modify agent config (commands: mcp: true) which implies write access to configuration files that was not declared.
Persistence & Privilege
always:false (normal) and autonomous invocation is allowed (platform default). However the instructions ask operators to enable a global MCP command and add a server entry to the main config — effectively granting a persistent capability to contact the specified external endpoint whenever MCP is used. This is not inherently malicious but should be treated as a persistent outward network capability and limited/verified by the user.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install finance-engine-mcp - 安装完成后,直接呼叫该 Skill 的名称或使用
/finance-engine-mcp触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of finance-engine-mcp skill.
- Provides detailed usage guide for calling Finance Engine MCP server to execute quant strategies, backtesting, and financial analysis.
- Explains configuration requirements for both openclaw and non-openclaw environments.
- Documents all supported parameters, default values, and usage scenarios, including new support for specifying contract codes (codes).
- Includes intelligent parameter inference logic for periods, time ranges, and stop conditions based on user input.
- Supplies multiple examples for quick start and best practices.
元数据
常见问题
finance-engine-mcp 是什么?
调用Finance Engine MCP服务器执行量化策略。当用户需要运行因子表达式策略、回测交易策略或执行金融分析时调用此技能。基于MCP Server工具的实际默认值设置。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 100 次。
如何安装 finance-engine-mcp?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install finance-engine-mcp」即可一键安装,无需额外配置。
finance-engine-mcp 是免费的吗?
是的,finance-engine-mcp 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
finance-engine-mcp 支持哪些平台?
finance-engine-mcp 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 finance-engine-mcp?
由 Frank(@rxjhfmf)开发并维护,当前版本 v1.0.0。
推荐 Skills