Let Claude Code users set the docs MCP server URL with VAADIN_DOCS_MCP_URL
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- json, markdown, python
- Lĩnh vực
- ai-infra-agents
Hướng nghiên cứu
The server is declared in .mcp.json and the Claude-only declaration would go in .claude-plugin/plugin.json. The URL check lives in scripts/check_plugin.py, which needs to accept the ${VAADIN_DOCS_MCP_URL:-https://...} form, and the user-facing steps are in plugin/README.md. Done means both manifests resolve to the same URL once the default is substituted, the check script passes, and the README describes the variable. The release review against the Claude plugin directory is a separate maintainer step.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Customers on air-gapped networks may run their own Vaadin documentation MCP server. The plugin's .mcp.json hard-codes https://mcp.vaadin.com/docs, so today they have to block the hosted server and add their own by hand.
Proposal
Let Claude Code users point the vaadin server at their own URL with an environment variable that defaults to the hosted one:
"url": "${VAADIN_DOCS_MCP_URL:-https://mcp.vaadin.com/docs}"
An admin could set it for a whole organization through env in managed settings. The server keeps its name and its tools, so the skills don't change.
What I checked (Claude Code 2.1.318, Codex 0.163)
- Claude Code expands
${VAR:-default}in a plugin MCP server'surl. It reads the value from the shell and fromenvin settings. - Codex reads the same
.mcp.jsonand doesn't expand variables, so it would use the URL literally and the server would fail. In Codex's source (0.167), only${PLUGIN_ROOT}and${PLUGIN_DATA}are expanded, and only for stdio servers. Codex plugins also have no settings mechanism. - So the variable can't go in the shared
.mcp.json. What works is a Claude-only declaration undermcpServersin.claude-plugin/plugin.json. Claude Code loads it together with.mcp.json, and on a name clash it used the inline server. Codex reads only.mcp.json, through its own manifest. claude plugin validate --profile directoryraised nothing about the variable in the URL.
To do
- Declare the
vaadinserver inline in.claude-plugin/plugin.jsonwith the variable in its URL. Leave.mcp.jsonas it is for Codex. - Extend
scripts/check_plugin.pyso the two declarations can't drift: the same URL once the variable's default is substituted. Its https check needs to accept${VAADIN_DOCS_MCP_URL:-https://…}. - Document the variable in
plugin/README.md, replacing the block-and-add steps for Claude Code. - Before release, check that the Claude plugin directory's review accepts the variable in the URL, and that installs from claude.ai and Cowork still reach the hosted server.
Notes
- That the inline server wins over the same-named one in
.mcp.jsonis what Claude Code did in testing. I didn't find it documented. - A
VAADIN_DIRECTORY_MCP_URLwould only be useful if a self-hosted Directory server exists. - I left out Claude Code's
userConfig(prompted plugin settings). It asks users for the value when they enable the plugin, and the docs don't confirm that an admin can fill it in for them. - Codex users would keep replacing the server in
config.toml: a[mcp_servers.vaadin]entry takes the place of the plugin's server of the same name. That works in 0.163 but OpenAI doesn't document it.
- Ngôn ngữ chính
- Go
- Star
- 0
- Fork
- 0
- Merge trung bình
- 4 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
projectdiscovery/cdncheck#554 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Miniflux integration sends internal OAuth-protected URL instead of original article URLĐang mởtriage needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing Readme InstructionsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
OpenSlides/openslides-go#342 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100