fix: correct container port mapping to use image's internal port - #3561
Open
menglinghan wants to merge 20 commits into
Open
fix: correct container port mapping to use image's internal port#3561menglinghan wants to merge 20 commits into
menglinghan wants to merge 20 commits into
Conversation
menglinghan
commented
Jul 31, 2026
Collaborator
- 端口映射修复(docker_client.py):新增 _detect_container_port,从镜像 CMD 检测内部端口(如 mcp-echarts 的 --port 3033),端口映射改为宿主→容器内部端口,修复此类镜像连不上问题。
- 工具扫描防误隐藏(tool_db.py + tool_configuration_service.py):update_tool_table_from_scan_tool_list 新增 enabled_mcp_names,启用中 MCP 的工具在瞬时扫描失败时保留可用状态,不再被误隐藏。
多租户市场隔离; MCP列表缓存与过滤一致性; 本地镜像上传补充;
修复英文页面存在中文问题; 修复保存后页面不会自动关闭的问题; 修复上传镜像后的错误提示;
# Conflicts: # backend/services/remote_mcp_service.py # frontend/app/[locale]/mcp-space/components/McpServiceDetailModal.tsx # frontend/app/[locale]/mcp-space/page.tsx # frontend/hooks/mcpTools/useMcpServiceDetail.ts # frontend/public/locales/en/common.json # frontend/public/locales/zh/common.json # test/backend/services/test_remote_mcp_service.py
… feat/cross-tenant-repository
…如 mcp-echarts 的 --port 3033),端口映射改为宿主→容器内部端口,修复此类镜像连不上问题。 2. 工具扫描防误隐藏(tool_db.py + tool_configuration_service.py):update_tool_table_from_scan_tool_list 新增 enabled_mcp_names,启用中 MCP 的工具在瞬时扫描失败时保留可用状态,不再被误隐藏。
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.