Skip to content

[Bug]: 在cursor使用中,MCP经常出现红灯 #2078

@cvpv

Description

@cvpv

gin-vue-admin 版本

最新master分支 25-08-26

Node 版本

V22

Golang 版本

GO 1.25

是否依旧存在

可以

bug描述

初始化与启动

git clone https://github.com/flipped-aurora/gin-vue-admin.git

cd server
go mod tidy
go run main.go
goland .

cd web
pnpm i
pnpm serve

创建数据库

cd [项目根目录]
mkdir -p database/sqlite/data 

进入http://localhost:8080/#/init
dbPath:[项目根目录]/database/sqlite/data/

MCP配置

{
  "mcpServers": {
    "GVA Helper": {
      "url": "http://127.0.0.1:8888/sse"
    }
  }
}

在cursor选择后,保持什么也不干。

观察cursor的日志如下:

2025-08-26 14:25:01.580 [info] Handling CreateClient action
2025-08-26 14:25:01.580 [info] Creating streamableHttp transport
2025-08-26 14:25:01.581 [info] Connecting to streamableHttp server
2025-08-26 14:25:01.586 [info] No stored tokens found
2025-08-26 14:25:01.591 [error] Client error for command Error POSTing to endpoint (HTTP 404): 404 page not found
2025-08-26 14:25:01.591 [info] Client closed for command
2025-08-26 14:25:01.592 [error] Error connecting to streamableHttp server, falling back to SSE: Error POSTing to endpoint (HTTP 404): 404 page not found
2025-08-26 14:25:01.592 [error] Error connecting to streamableHttp server, falling back to SSE: Error POSTing to endpoint (HTTP 404): 404 page not found
2025-08-26 14:25:01.592 [info] Connecting to SSE server
2025-08-26 14:25:01.599 [info] No stored tokens found
2025-08-26 14:25:01.603 [info] No stored tokens found
2025-08-26 14:25:01.609 [info] No stored tokens found
2025-08-26 14:25:01.611 [info] Successfully connected to streamableHttp server
2025-08-26 14:25:01.611 [info] Storing streamableHttp client
2025-08-26 14:25:01.611 [info] CreateClient completed, server stored: true
2025-08-26 14:25:01.613 [info] Handling ListOfferings action, server stored: true
2025-08-26 14:25:01.613 [info] Connected to streamableHttp server, fetching offerings
2025-08-26 14:25:01.614 [info] No stored tokens found
2025-08-26 14:25:01.616 [info] Found 6 tools and 0 prompts
2025-08-26 14:30:03.960 [error] Client error for command SSE error: TypeError: terminated: Body Timeout Error
2025-08-26 14:30:06.963 [info] No stored tokens found
2025-08-26 14:35:09.290 [error] Client error for command SSE error: TypeError: terminated: Body Timeout Error
2025-08-26 14:35:12.295 [info] No stored tokens found

看起来错误是[error] Client error for command SSE error: TypeError: terminated: Body Timeout Error

是否是兼容性问题呢,还是cursor本身的bug?

修改建议

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions