自定义mcp服务一直在Disconneted状态

│ Configured MCP Servers (2 total) │
│ │
│ > :green_circle: github - 提供GitHub Tools: 26 | Prompts: 0 | Context Length: 3923 │
│ Ready API访问能力的MCP服务器,支持代码搜索等功能。 tokens │
│ │
:red_circle: git-exec - Disconnected 执行Git命令的MCP服务器 Tools: 0 | Prompts: 0 | Context Length: 4 tokens

settrings.json:

    "git-exec": {

        "description": "执行Git命令的MCP服务器",

“command”: “python3”,

“args”: [

“/home/hubin.linux/.iflow/mcp_servers/git-exec/server.py”

        \]

    }

本地服务定义:
./mcp_servers/
└── git-exec
├── README.md
├── config.json
├── server.py
├── test_server.py
└── test_server_real_repo.py

看下这个帖子可以解决问题吗: MCP 连接问题排查指南

这个不行,官方文档似乎没有告知如何编写自定义的mcp服务,我能够将其添加到mcp list中,但是就是无法进行连接,不清楚iflow cli是如何进行调用的。

这个我看是自定义的mcp,但是需要满足官方mcp的协议,这块你看下是否协议的问题

1 个赞