Ping Host MCP
# prueba_mcp
Servidor MCP minimo para usar desde VS Code Chat con una sola tool: `ping_host`.
## Idea
Este proyecto vive fuera del repo `prueba_skills`, pero el workspace de `prueba_skills` lo referencia mediante `.vscode/mcp.json`. Asi puedes seguir en este prompt y dejar que el host de chat descubra la herramienta.
## Tool disponible
- `ping_host`: hace ping a un host o IP indicado por el usuario.
## Instalar
```bash
npm install
```
## Ejecutar manualmente
```bash
npm start
```
Nota: al ser un servidor MCP por `stdio`, no debes escribir logs a `stdout`. Si necesitas depurar, usa `stderr`.
## Uso esperado desde chat
Una vez que VS Code cargue el servidor MCP del workspace, deberias poder pedir algo como:
```text
Usa la herramienta ping_host para hacer ping a 8.8.8.8
```
o
```text
Hace ping a github.com con 2 intentos
```
## Seguridad y limites
- La tool usa `execFile`, no shell, para evitar inyeccion de comandos.
- El host se valida como nombre de host o IP simple.
- El numero de intentos se limita a un rango chico.
- En Windows usa `ping -n`; en Unix usa `ping -c`.TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'ping_host' has a clearly defined and singular purpose.
There is only one tool, so naming consistency is inherently perfect. The tool name 'ping_host' follows a clear verb_noun pattern.
A single tool is generally too few for most server purposes, making the set feel thin and potentially incomplete. For a 'Ping Host MCP', one tool might suffice, but it limits functionality and could indicate a narrow scope.
The tool 'ping_host' covers the basic action implied by the server name, but there are notable gaps. For example, no tools for checking multiple hosts, setting ping parameters, or handling network diagnostics beyond a simple ping.