Identidad del fork: @nucleoriofrio/webmcp en MCP server name, logs y descripciones

- MCP server se identifica como @nucleoriofrio/webmcp v0.2.0
- Descripciones de tools built-in en español
- Logs de inicio identifican el fork
- README: instrucciones claras de instalacion con nombre correcto
This commit is contained in:
2026-02-13 00:58:40 -06:00
parent 603c547bfe
commit ba1f00b2a0
5 changed files with 29 additions and 19 deletions

View File

@@ -116,9 +116,17 @@ Se eliminó la built-in `_webmcp_define-mcp-tool` del upstream por no tener util
## Instalación ## Instalación
```bash ```bash
npm install git+https://gitea.nucleoriofrio.com/nucleo000/webmcp.git npm install @nucleoriofrio/webmcp@git+https://gitea.nucleoriofrio.com/nucleo000/webmcp.git
``` ```
Esto genera en tu `package.json`:
```json
"@nucleoriofrio/webmcp": "git+https://gitea.nucleoriofrio.com/nucleo000/webmcp.git"
```
> **IMPORTANTE:** La dependencia debe declararse como `@nucleoriofrio/webmcp`, NO como `@jason.today/webmcp`. Si usás el nombre del paquete original, npm lo instala en `node_modules/@jason.today/webmcp/` y genera confusión con el upstream. El nombre correcto es `@nucleoriofrio/webmcp` y se instala en `node_modules/@nucleoriofrio/webmcp/`.
## Uso ## Uso
### En tu HTML ### En tu HTML
@@ -144,21 +152,23 @@ npm install git+https://gitea.nucleoriofrio.com/nucleo000/webmcp.git
</script> </script>
``` ```
### Configuración MCP (Claude Code u otro cliente) ### Configuración MCP (Claude Code, Claude Desktop u otro cliente)
En `.claude/settings.json` o settings del proyecto: En el archivo de configuración MCP de tu cliente (`settings.json`, `claude_desktop_config.json`, `.mcp.json`, etc.):
```json ```json
{ {
"mcpServers": { "mcpServers": {
"webmcp": { "webmcp": {
"command": "node", "command": "node",
"args": ["node_modules/@nucleoriofrio/webmcp/src/websocket-server.js", "--mcp"] "args": ["/ruta/a/tu/proyecto/node_modules/@nucleoriofrio/webmcp/src/websocket-server.js", "--mcp"]
} }
} }
} }
``` ```
> Reemplazá `/ruta/a/tu/proyecto/` con la ruta absoluta a tu proyecto. En Windows usá barras dobles: `C:\\Users\\...\\node_modules\\@nucleoriofrio\\webmcp\\src\\websocket-server.js`.
### Modo desarrollo ### Modo desarrollo
Las tools `agregar-tool` y `quitar-tool` solo están disponibles en modo desarrollo. Para activarlo: Las tools `agregar-tool` y `quitar-tool` solo están disponibles en modo desarrollo. Para activarlo:
@@ -169,7 +179,7 @@ Las tools `agregar-tool` y `quitar-tool` solo están disponibles en modo desarro
"mcpServers": { "mcpServers": {
"webmcp": { "webmcp": {
"command": "node", "command": "node",
"args": ["node_modules/@nucleoriofrio/webmcp/src/websocket-server.js", "--mcp", "--dev"] "args": ["/ruta/a/tu/proyecto/node_modules/@nucleoriofrio/webmcp/src/websocket-server.js", "--mcp", "--dev"]
} }
} }
} }

View File

@@ -24887,8 +24887,8 @@ async function generateNewRegistrationToken() {
import { execSync } from "child_process"; import { execSync } from "child_process";
var mcpServer = new Server( var mcpServer = new Server(
{ {
name: "WebMCP", name: "@nucleoriofrio/webmcp",
version: "0.1.13" version: "0.2.0"
}, },
{ {
capabilities: { capabilities: {
@@ -25238,7 +25238,7 @@ mcpServer.setRequestHandler(ListToolsRequestSchema, async () => {
const builtInTools = [ const builtInTools = [
{ {
name: "_webmcp_get-token", name: "_webmcp_get-token",
description: "Retrieve a token to connect to a website for WebMCP. A user might say 'register a token' or 'add a webmcp'", description: "Genera un token de conexion para vincular un navegador con @nucleoriofrio/webmcp. El usuario puede decir 'registrar token' o 'conectar webmcp'.",
inputSchema: { inputSchema: {
type: "object", type: "object",
properties: {} properties: {}
@@ -25246,7 +25246,7 @@ mcpServer.setRequestHandler(ListToolsRequestSchema, async () => {
}, },
{ {
name: "_webmcp_clear-cache", name: "_webmcp_clear-cache",
description: "Clears all registered tools, prompts and resources from the WebMCP server cache. Use this to force a clean state.", description: "Limpia todas las herramientas, prompts y recursos registrados en el cache del servidor @nucleoriofrio/webmcp. Usar para forzar un estado limpio.",
inputSchema: { inputSchema: {
type: "object", type: "object",
properties: {} properties: {}
@@ -25492,7 +25492,7 @@ async function runMcpServer(serverToken2) {
connectToWebSocketServer(serverToken2); connectToWebSocketServer(serverToken2);
const transport = new StdioServerTransport(); const transport = new StdioServerTransport();
await mcpServer.connect(transport); await mcpServer.connect(transport);
console.error("MCP server running with stdio transport"); console.error("@nucleoriofrio/webmcp v0.2.0 \u2014 MCP server running with stdio transport");
if (CONFIG.dev) { if (CONFIG.dev) {
console.error("[DEV] Modo desarrollo activo \u2014 agregar-tool y quitar-tool habilitados"); console.error("[DEV] Modo desarrollo activo \u2014 agregar-tool y quitar-tool habilitados");
} }
@@ -26762,7 +26762,7 @@ CONNECTION TOKEN (paste this in your web client):`);
await savePid(); await savePid();
const PORT = CONFIG.port; const PORT = CONFIG.port;
httpServer.listen(PORT, () => { httpServer.listen(PORT, () => {
console.error(`WebSocket server running at http://${HOST}:${PORT}`); console.error(`@nucleoriofrio/webmcp v0.2.0 \u2014 WebSocket server running at http://${HOST}:${PORT}`);
console.error(`WebMCP client token (for MCP path): ${serverToken}`); console.error(`WebMCP client token (for MCP path): ${serverToken}`);
console.error(`WebMCP client URL: ws://${HOST}:${PORT}${MCP_PATH2}?token=${serverToken}`); console.error(`WebMCP client URL: ws://${HOST}:${PORT}${MCP_PATH2}?token=${serverToken}`);
if (CONFIG.dev) { if (CONFIG.dev) {

File diff suppressed because one or more lines are too long

View File

@@ -18,8 +18,8 @@ import {execSync} from "child_process";
// Create a central MCP server that communicates over stdio // Create a central MCP server that communicates over stdio
const mcpServer = new Server( const mcpServer = new Server(
{ {
name: "WebMCP", name: "@nucleoriofrio/webmcp",
version: "0.1.13", version: "0.2.0",
}, },
{ {
capabilities: { capabilities: {
@@ -461,7 +461,7 @@ mcpServer.setRequestHandler(ListToolsRequestSchema, async () => {
const builtInTools = [ const builtInTools = [
{ {
name: "_webmcp_get-token", name: "_webmcp_get-token",
description: "Retrieve a token to connect to a website for WebMCP. A user might say 'register a token' or 'add a webmcp'", description: "Genera un token de conexion para vincular un navegador con @nucleoriofrio/webmcp. El usuario puede decir 'registrar token' o 'conectar webmcp'.",
inputSchema: { inputSchema: {
type: "object", type: "object",
properties: {}, properties: {},
@@ -469,7 +469,7 @@ mcpServer.setRequestHandler(ListToolsRequestSchema, async () => {
}, },
{ {
name: "_webmcp_clear-cache", name: "_webmcp_clear-cache",
description: "Clears all registered tools, prompts and resources from the WebMCP server cache. Use this to force a clean state.", description: "Limpia todas las herramientas, prompts y recursos registrados en el cache del servidor @nucleoriofrio/webmcp. Usar para forzar un estado limpio.",
inputSchema: { inputSchema: {
type: "object", type: "object",
properties: {}, properties: {},
@@ -814,7 +814,7 @@ async function runMcpServer(serverToken) {
connectToWebSocketServer(serverToken); connectToWebSocketServer(serverToken);
const transport = new StdioServerTransport(); const transport = new StdioServerTransport();
await mcpServer.connect(transport); await mcpServer.connect(transport);
console.error("MCP server running with stdio transport"); console.error("@nucleoriofrio/webmcp v0.2.0 — MCP server running with stdio transport");
if (CONFIG.dev) { if (CONFIG.dev) {
console.error("[DEV] Modo desarrollo activo — agregar-tool y quitar-tool habilitados"); console.error("[DEV] Modo desarrollo activo — agregar-tool y quitar-tool habilitados");
} }

View File

@@ -1817,7 +1817,7 @@ const main = async () => {
// Start the server // Start the server
const PORT = CONFIG.port; const PORT = CONFIG.port;
httpServer.listen(PORT, () => { httpServer.listen(PORT, () => {
console.error(`WebSocket server running at http://${HOST}:${PORT}`); console.error(`@nucleoriofrio/webmcp v0.2.0 — WebSocket server running at http://${HOST}:${PORT}`);
console.error(`WebMCP client token (for MCP path): ${serverToken}`); console.error(`WebMCP client token (for MCP path): ${serverToken}`);
console.error(`WebMCP client URL: ws://${HOST}:${PORT}${MCP_PATH}?token=${serverToken}`); console.error(`WebMCP client URL: ws://${HOST}:${PORT}${MCP_PATH}?token=${serverToken}`);
if (CONFIG.dev) { if (CONFIG.dev) {