OpenBMB / OpenBMB/PilotDeck

mcp配置问题

Open
#210 0 comments 0 reactions 1 assignee View on GitHub

@Gucc111 is already working on this.

Since Jul 10, 2026.

Dominant language
TypeScript
Stars
4k
Forks
453
Avg merge
12h 30m
Merged PRs (30d)
46

Description

## 问题描述

我在 MCP 配置界面中添加了一个 `stdio` 类型的 MCP 服务器 `stata-mcp`,保存并重启应用后,配置仍然能在界面中看到,但询问助手时,助手回答没有 MCP 连接 / 没有可用的 MCP 工具。

## MCP 配置

配置内容如下:

```json
{
  "args": [
    "stata-mcp"
  ],
  "command": "uvx",
  "env": {
    "STATA_CLI": "D:\\stata\\StataMP-64.exe"
  }
}

在界面中显示为:

  • 名称:stata-mcp
  • 传输方式:STDIO
  • 启动命令:uvx
  • 参数:stata-mcp
  • 环境变量:
    • STATA_CLI=D:\stata\StataMP-64.exe

界面中显示的配置文件路径为:

C:\Users\47591\.pilotdeck\mcp.json

复现步骤

  1. 打开 MCP 服务器配置界面。
  2. 添加一个 stdio 类型 MCP 服务器。
  3. 填写:
    • 启动命令:uvx
    • 参数:stata-mcp
    • 环境变量:STATA_CLI=D:\stata\StataMP-64.exe
  4. 保存配置。
  5. 重启应用。
  6. 询问助手是否可以使用 MCP / Stata MCP 工具。
  7. 助手回答没有 MCP 连接或没有可用 MCP 工具。

预期行为

应用重启后,应自动读取该 MCP 配置并启动 stata-mcp,助手应该能够识别并使用对应的 MCP 工具。

实际行为

配置在 UI 中仍然存在,但助手似乎没有连接到该 MCP 服务,也无法使用对应 MCP 工具。

希望协助确认的问题

  • 应用是否实际执行了 uvx stata-mcp
  • MCP 子进程的 stdout/stderr 日志在哪里查看
  • UI 中填写的环境变量是否正确传递给 MCP 进程
  • 应用重启后是否正确读取了 C:\Users\47591\.pilotdeck\mcp.json
  • stdio 类型 MCP 服务是否必须启用“每个会话独立启动”才会生效
  • 如果 MCP 启动失败,UI 是否会显示错误信息

环境信息

  • 操作系统:Windows
  • MCP 传输方式:stdio
  • 启动命令:uvx
  • MCP 包:stata-mcp
  • Stata 路径:D:\stata\StataMP-64.exe

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.