Files
worldquant-alpha-system/.scratch/mcp-self-correlation/spec.md
T
yuxuanhui d4c33d0124
Deploy production / deploy (push) Successful in 57s
feat: expose local self-correlation tools through MCP
2026-09-10 09:42:24 +08:00

8 lines
863 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# MCP 本地自相关
新增 check_self_correlation(research:refresh)和 get_self_correlation(research:read),并扩展 get_refresh_job 查询 self_correlation 任务。复用网页 Business 和 Runner,不新建算法,不调用平台提交检查。
发起输入为 1–100 个已导入 Alpha ID,去重排序后复用活动任务;缺失目标整批拒绝并返回 affected_items。返回 job_id 后后台补取缺失 PnL 并计算,提交事务后唤醒队列。读取明确区分无缓存、可用及待重算,不隐式请求平台。沿用 MCP 审计、错误契约和权限过滤,无迁移或新增权限。
验收:官方 SDK 工具发现及调用往返、只读权限拒绝发起、参数与缺失目标校验、异步唤醒、去重、缺失 PnL 落库、结果与 stale 读取、任务审计。更新接入文档与能力声明。