# 安装 com.mylinedchart/chart-context

- 类型: MCP 工具
- 说明: 让 AI 读取本地 MyLinedChart 实时图表上下文，辅助分析与解读行情。
- 仓库: https://github.com/none298-dotcom/mylinedchart-mcp-chart-context

## 方式一 · 一键代装（复制提示词让 AI 代劳）

### Claude Code
```
请帮我安装 askskill 上的 "com.mylinedchart/chart-context" MCP 服务：
执行：claude mcp add 'com-mylinedchart-chart-context' -- npx -y @mylinedchart/mcp-chart-context
```

### Codex
```
请帮我安装 askskill 上的 "com.mylinedchart/chart-context" MCP 服务：
在 ~/.codex/config.toml 中添加：
[mcp_servers.com-mylinedchart-chart-context]
command = "npx"
args = ["-y","@mylinedchart/mcp-chart-context"]
然后重启 Codex 生效
```

### Cursor
```
请帮我安装 askskill 上的 "com.mylinedchart/chart-context" MCP 服务：
在 .cursor/mcp.json 的 "mcpServers" 中添加：
"com-mylinedchart-chart-context": { "command": "npx", "args": ["-y","@mylinedchart/mcp-chart-context"] }
然后在 Cursor 设置 > MCP 中启用
```

## 方式二 · 命令行安装（原生命令与配置）

### Claude Code
```bash
claude mcp add --env MLC_CONTEXT_FILE=YOUR_VALUE --transport stdio com-mylinedchart-chart-context -- npx -y @mylinedchart/mcp-chart-context
```
需要环境变量：MLC_CONTEXT_FILE

### Codex
```bash
codex mcp add --env MLC_CONTEXT_FILE=YOUR_VALUE com-mylinedchart-chart-context -- npx -y @mylinedchart/mcp-chart-context
```
配置文件 ~/.codex/config.toml：
```toml
[mcp_servers.com-mylinedchart-chart-context]
command = "npx"
args = ["-y","@mylinedchart/mcp-chart-context"]

[mcp_servers.com-mylinedchart-chart-context.env]
MLC_CONTEXT_FILE = "YOUR_VALUE"
```
需要环境变量：MLC_CONTEXT_FILE

### Cursor
配置文件 .cursor/mcp.json：
```json
{
  "mcpServers": {
    "com-mylinedchart-chart-context": {
      "command": "npx",
      "args": [
        "-y",
        "@mylinedchart/mcp-chart-context"
      ],
      "env": {
        "MLC_CONTEXT_FILE": "YOUR_VALUE"
      }
    }
  }
}
```
一键安装：cursor://anysphere.cursor-deeplink/mcp/install?name=com-mylinedchart-chart-context&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBteWxpbmVkY2hhcnQvbWNwLWNoYXJ0LWNvbnRleHQiXSwiZW52Ijp7Ik1MQ19DT05URVhUX0ZJTEUiOiJZT1VSX1ZBTFVFIn19
需要环境变量：MLC_CONTEXT_FILE
