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:
20
README.md
20
README.md
@@ -116,9 +116,17 @@ Se eliminó la built-in `_webmcp_define-mcp-tool` del upstream por no tener util
|
||||
## Instalación
|
||||
|
||||
```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
|
||||
|
||||
### En tu HTML
|
||||
@@ -144,21 +152,23 @@ npm install git+https://gitea.nucleoriofrio.com/nucleo000/webmcp.git
|
||||
</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
|
||||
{
|
||||
"mcpServers": {
|
||||
"webmcp": {
|
||||
"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
|
||||
|
||||
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": {
|
||||
"webmcp": {
|
||||
"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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24887,8 +24887,8 @@ async function generateNewRegistrationToken() {
|
||||
import { execSync } from "child_process";
|
||||
var mcpServer = new Server(
|
||||
{
|
||||
name: "WebMCP",
|
||||
version: "0.1.13"
|
||||
name: "@nucleoriofrio/webmcp",
|
||||
version: "0.2.0"
|
||||
},
|
||||
{
|
||||
capabilities: {
|
||||
@@ -25238,7 +25238,7 @@ mcpServer.setRequestHandler(ListToolsRequestSchema, async () => {
|
||||
const builtInTools = [
|
||||
{
|
||||
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: {
|
||||
type: "object",
|
||||
properties: {}
|
||||
@@ -25246,7 +25246,7 @@ mcpServer.setRequestHandler(ListToolsRequestSchema, async () => {
|
||||
},
|
||||
{
|
||||
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: {
|
||||
type: "object",
|
||||
properties: {}
|
||||
@@ -25492,7 +25492,7 @@ async function runMcpServer(serverToken2) {
|
||||
connectToWebSocketServer(serverToken2);
|
||||
const transport = new StdioServerTransport();
|
||||
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) {
|
||||
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();
|
||||
const PORT = CONFIG.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 URL: ws://${HOST}:${PORT}${MCP_PATH2}?token=${serverToken}`);
|
||||
if (CONFIG.dev) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -18,8 +18,8 @@ import {execSync} from "child_process";
|
||||
// Create a central MCP server that communicates over stdio
|
||||
const mcpServer = new Server(
|
||||
{
|
||||
name: "WebMCP",
|
||||
version: "0.1.13",
|
||||
name: "@nucleoriofrio/webmcp",
|
||||
version: "0.2.0",
|
||||
},
|
||||
{
|
||||
capabilities: {
|
||||
@@ -461,7 +461,7 @@ mcpServer.setRequestHandler(ListToolsRequestSchema, async () => {
|
||||
const builtInTools = [
|
||||
{
|
||||
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: {
|
||||
type: "object",
|
||||
properties: {},
|
||||
@@ -469,7 +469,7 @@ mcpServer.setRequestHandler(ListToolsRequestSchema, async () => {
|
||||
},
|
||||
{
|
||||
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: {
|
||||
type: "object",
|
||||
properties: {},
|
||||
@@ -814,7 +814,7 @@ async function runMcpServer(serverToken) {
|
||||
connectToWebSocketServer(serverToken);
|
||||
const transport = new StdioServerTransport();
|
||||
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) {
|
||||
console.error("[DEV] Modo desarrollo activo — agregar-tool y quitar-tool habilitados");
|
||||
}
|
||||
|
||||
@@ -1817,7 +1817,7 @@ const main = async () => {
|
||||
// Start the server
|
||||
const PORT = CONFIG.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 URL: ws://${HOST}:${PORT}${MCP_PATH}?token=${serverToken}`);
|
||||
if (CONFIG.dev) {
|
||||
|
||||
Reference in New Issue
Block a user