linker-agent-mcp
v0.1.1
Published
MCP server for Linker Agent - conversational AI with tool use, file analysis, and strategy insights
Readme
linker-agent-mcp
MCP server for Linker Agent — a commodity trading AI assistant with real-time market data, position tracking, and industry knowledge.
Non-streaming wrapper: internally consumes SSE streams from the Agent API, returns complete responses to AI assistants.
Tool
| Tool | Description |
|------|-------------|
| agent_chat | 与交易 Agent 对话(行情查询、持仓盈亏、研报分析、市场资讯等) |
参数:
message(string, 必填) — 发送给 Agent 的消息thread_id(string, 可选) — 多轮对话 ID,同一话题传相同 ID,不同话题不传
Configuration
| Env Variable | Required | Default | Description |
|-------------|----------|---------|-------------|
| AGENT_API_KEY | Yes | — | API access token |
| AGENT_API_URL | No | http://119.45.2.161:7537 | Agent API base URL |
Usage
Claude Desktop
claude_desktop_config.json:
{
"mcpServers": {
"linker-agent": {
"command": "npx",
"args": ["-y", "linker-agent-mcp@latest"],
"env": {
"AGENT_API_KEY": "lk-agent-x7m9p2qw4r"
}
}
}
}Claude Code
claude mcp add linker-agent -s user -e AGENT_API_KEY=lk-agent-x7m9p2qw4r -- npx -y linker-agent-mcp@latestOr .mcp.json:
{
"mcpServers": {
"linker-agent": {
"type": "stdio",
"command": "npx",
"args": ["-y", "linker-agent-mcp@latest"],
"env": {
"AGENT_API_KEY": "lk-agent-x7m9p2qw4r"
}
}
}
}Development
npm install
npm run build
npm run watch # dev mode