Tool name `get_file_contents` conflicts with Claude Desktop built-in tool
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 62/100
Línea de trabajo
Inspecciona pkg/github/repositories.go alrededor de la línea 625, donde está definido el tool get_file_contents. Compara el nombre del tool con la respuesta directa de stdio tools/list y verifica que el tool renombrado esté expuesto en Claude Desktop sin afectar a los demás tools listados. Se considera terminado cuando el nombre de reemplazo resuelve la colisión y la operación de contenido del repositorio sigue estando disponible.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
The tool get_file_contents is not exposed to Claude in Claude Desktop, despite the MCP server correctly returning it in the tools/list response. This appears to be a name collision with Claude Desktop's internal file-reading capability.
Environment
- Claude Desktop: Latest version (Feb 2026)
- github-mcp-server: Built from main branch
- Config:
GITHUB_READ_ONLY=true
Symptoms
- Server returns
get_file_contentsintools/listresponse (verified via direct stdio test) - Other tools work fine (
get_me,get_commit,list_branches,pull_request_read, etc.) get_file_contentsspecifically is not available to Claude in conversations- No errors in MCP logs - the tool is simply not exposed
Root Cause
Claude Desktop appears to have a built-in tool with the same or similar name (get_file_contents or read_file), which shadows/filters the MCP server's version.
Solution
Renaming the tool from get_file_contents to fetch_repo_file immediately resolves the issue. After rebuilding with the renamed tool, Claude Desktop correctly exposes it.
Suggested Fix
Rename the tool in pkg/github/repositories.go:625 from:
Name: "get_file_contents",
to something like:
Name: "fetch_repo_file",
or:
Name: "get_repository_content",
This would be a breaking change for users relying on the current tool name, but it's necessary for Claude Desktop compatibility.
Additional Context
- Issue was debugged extensively, ruling out: completions capability bug, schema issues, read-only filtering, scope filtering
- The rename was the only change that fixed the issue
- Other MCP servers may have similar conflicts with generic tool names like
read_file,get_file, etc.
- Lenguaje dominante
- Go
- Estrellas
- 33.1k
- Forks
- 5k
- Merge medio
- 2 d 15 h
- PR fusionados (30 d)
- 27
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/github-mcp-server
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
github/github-mcp-server#3235 ·
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
github/github-mcp-server#3042 · 2 comentarios ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/github-mcp-server#3032 · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
github/github-mcp-server#2803 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
github/github-mcp-server#2740 ·
Todos los issues de github/github-mcp-server
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
-
enhancement needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
kind/cleanup
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
kubernetes-sigs/kueue#15947 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sympozium-ai/sympozium#627 ·