boosterarena-mcp 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/servidor.mjs +6 -1
package/package.json
CHANGED
package/servidor.mjs
CHANGED
|
@@ -29,11 +29,16 @@ import { tmpdir } from 'node:os';
|
|
|
29
29
|
import { join } from 'node:path';
|
|
30
30
|
import { existsSync } from 'node:fs';
|
|
31
31
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
32
|
+
import { createRequire } from 'node:module';
|
|
32
33
|
import { tokenDeAcceso } from './sesion.mjs';
|
|
33
34
|
import { abrir, crear, guardar, listar } from './proyectos.mjs';
|
|
34
35
|
import { subirArchivo } from './subidas.mjs';
|
|
35
36
|
import { rematarEncargo } from './encargos.mjs';
|
|
36
37
|
|
|
38
|
+
// La versión se lee del package.json: escrita a mano se queda vieja en silencio, y es lo que
|
|
39
|
+
// el cliente MCP le enseña al agente.
|
|
40
|
+
const { version: VERSION } = createRequire(import.meta.url)('./package.json');
|
|
41
|
+
|
|
37
42
|
const aviso = (...a) => process.stderr.write(`[booster-mcp] ${a.join(' ')}\n`);
|
|
38
43
|
|
|
39
44
|
// Los mismos valores públicos que el navegador (ver `mcp/sesion.mjs`).
|
|
@@ -328,7 +333,7 @@ async function atender(msg) {
|
|
|
328
333
|
return ok(id, {
|
|
329
334
|
protocolVersion: params?.protocolVersion ?? '2024-11-05',
|
|
330
335
|
capabilities: { tools: {} },
|
|
331
|
-
serverInfo: { name: 'booster', version:
|
|
336
|
+
serverInfo: { name: 'booster', version: VERSION },
|
|
332
337
|
});
|
|
333
338
|
}
|
|
334
339
|
if (method === 'tools/list') {
|