mirror of
https://github.com/codexu/note-gen.git
synced 2026-04-25 21:05:55 +03:00
[GH-ISSUE #814] [bug] MCP 配置 http 服务无法使用工具 #609
Labels
No labels
bug
duplicate
feature
platform: Android
platform: Linux
platform: Windows
platform: iOS
platform: macOS
priority: high
priority: low
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/note-gen#609
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @huaduokantu on GitHub (Dec 29, 2025).
Original GitHub issue: https://github.com/codexu/note-gen/issues/814
详细描述这个 Bug
MCP 服务器:MCPHub:v0.11.10
MCP 配置 http 服务测试连接提示失败,保存后在列表中会显示已连接状态。

在对话界面 MCP 状态显示是开启的,勾选后也不会调用
NoteGen 版本
0.23.1
操作系统
Windows
报错日志
No response
@lanzeweie commented on GitHub (Dec 30, 2025):
F12 看看报错。多半是CORS(跨域)拦截
@K1vinL commented on GitHub (Jan 13, 2026):
遇到类似问题了,版本0.24.0,跨域问题我配置了服务端解决了,但是在initialize的时候似乎有点问题
且后续tools/list、listTools、resources/list都没自动带上mcp session id头
initialize时服务端的响应是这样的
@ZhangTianrong commented on GitHub (Feb 1, 2026):
目前 initialize 之后不会从 response header 中提取 session id 导致无法使用。手动添加 session id 到 header 又会因为 note-gen 重新 initialize 的时候也带上这个 id 导致 server 认为 session 已经 initialize 而 note-gen 认为无法连接。而且这个 CORS 我怎么一会儿能一会儿过不了呢?
@K1vinL commented on GitHub (Feb 1, 2026):
在ng反代上加下面的配置就能过cors了