pingan-securities-mcp 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pingan-securities-mcp
2
2
 
3
- 平安证券 MCP Server。当前提供热股风向标(用户关注榜单),后续持续扩展行情、资讯、筛选等能力。
3
+ 平安证券 MCP Server。当前提供热股风向标,覆盖 4 类榜单——热搜榜(用户都在搜的标的)、加自选榜(用户都在加自选的标的)、浏览榜(用户都在看的标的)、飙升榜(关注度飙升最快的标的)。
4
4
 
5
5
  > 数据仅供参考,不构成投资建议。
6
6
 
@@ -19,7 +19,7 @@
19
19
  "command": "npx",
20
20
  "args": ["-y", "pingan-securities-mcp"],
21
21
  "env": {
22
- "PINGAN_SKILL_APIKEY": "你的 API Key"
22
+ "PINGAN_APIKEY": "你的 API Key"
23
23
  }
24
24
  }
25
25
  }
@@ -59,7 +59,7 @@
59
59
 
60
60
  | 变量 | 必填 | 默认值 | 说明 |
61
61
  |---|---|---|---|
62
- | `PINGAN_SKILL_APIKEY` | 是 | — | API Key |
62
+ | `PINGAN_APIKEY` | 是 | — | API Key |
63
63
  | `PA_GATEWAY_BASE_URL` | 否 | `https://ai.stock.pingan.com` | 服务地址 |
64
64
  | `PA_GATEWAY_TIMEOUT` | 否 | `20` | 请求超时(秒) |
65
65
  | `PA_CHANNEL_ID` | 否 | — | 渠道标识 |
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
9
9
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
10
10
  import { registerHotStock } from "./tools/hot-stock.js";
11
11
  export const SERVER_NAME = "pingan-securities";
12
- export const SERVER_VERSION = "1.0.0";
12
+ export const SERVER_VERSION = "1.0.1";
13
13
  const server = new McpServer({ name: SERVER_NAME, version: SERVER_VERSION }, {
14
14
  instructions: "平安证券数据服务。涉及市场热度、榜单、行情等问题时,必须调用工具获取实时数据," +
15
15
  "不要凭记忆回答具体排名、数字或涨跌幅。所有数据仅供参考,不构成投资建议。",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 认证与错误类型。所有工具共用。
3
3
  */
4
- export const APIKEY_ENV = "PINGAN_SKILL_APIKEY";
4
+ export const APIKEY_ENV = "PINGAN_APIKEY";
5
5
  export const APPLY_URL = "https://stock.pingan.com/huodong/aiskill/skillPage/index.html";
6
6
  /** 预期内的业务失败。返回 isError=true 让模型读到并自纠正,而不是抛成协议错误。 */
7
7
  export class ToolError extends Error {
@@ -35,7 +35,7 @@ export async function call(ep, path, payload, apiKey) {
35
35
  clearTimeout(timer);
36
36
  }
37
37
  if (resp.status === 401) {
38
- throw new ToolError("未提供 API Key。请设置环境变量 PINGAN_SKILL_APIKEY," +
38
+ throw new ToolError("未提供 API Key。请设置环境变量 PINGAN_APIKEY," +
39
39
  "申请地址:https://stock.pingan.com/huodong/aiskill/skillPage/index.html");
40
40
  }
41
41
  if (resp.status === 403)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingan-securities-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "平安证券 MCP Server — 热股风向标(热搜/加自选/浏览/飙升榜),持续扩展中",
5
5
  "keywords": [
6
6
  "mcp",