orquestra-mcp 1.78.0 → 1.79.0
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/README.md +10 -0
- package/package.json +1 -1
- package/src/clientConfig.mjs +53 -0
- package/src/setup.mjs +5 -0
package/README.md
CHANGED
|
@@ -46,6 +46,16 @@ la suya hasta que reconectas (en Claude Code: `/mcp` → reconectar).
|
|
|
46
46
|
versión vieja, `npx clear-npx-cache`. Si registraste el MCP como `orquestra-mcp` sin
|
|
47
47
|
`@latest`, migra con un comando:
|
|
48
48
|
`claude mcp remove orquestra && claude mcp add orquestra -e ORQUESTRA_AGENT=claude-code -- npx -y orquestra-mcp@latest`.
|
|
49
|
+
`npx orquestra-mcp@latest setup` también actualiza solo las entradas que ya tenías sin versión
|
|
50
|
+
(`orquestra-mcp` pasa a `orquestra-mcp@latest`) en `~/.claude.json`, Cursor, Gemini CLI y Claude
|
|
51
|
+
Desktop; deja un respaldo `*.orquestra-bak`, no toca tu `env` ni versiones fijadas a propósito, y
|
|
52
|
+
no crea entradas nuevas (para eso usa los comandos de abajo). Codex (`~/.codex/config.toml`) se
|
|
53
|
+
edita a mano.
|
|
54
|
+
|
|
55
|
+
**Limpiar la caché de npx** (si tras publicar una versión nueva sigues viendo la vieja):
|
|
56
|
+
`npx clear-npx-cache`, o a mano `rm -rf ~/.npm/_npx` (macOS/Linux) / borrar
|
|
57
|
+
`%LocalAppData%\npm-cache\_npx` (Windows); luego reinicia la herramienta. Para comparar,
|
|
58
|
+
`npm view orquestra-mcp version` muestra la última publicada.
|
|
49
59
|
`diagnostico_conexion` (cuando no hay conexión) muestra la versión en uso frente a la
|
|
50
60
|
última publicada y detecta configs sin `@latest`; con conexión, `get_project_context`
|
|
51
61
|
trae `orquestraMcpUpdate` si hay versión nueva.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orquestra-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.79.0",
|
|
4
4
|
"description": "Servidor MCP de Orquestra -- 161 tools para leer y escribir tareas, ideas, changelog, infraestructura, contenido, QA y más desde un agente de IA",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// ORQ-587: `setup` deja las entradas ya existentes de los clientes MCP con
|
|
2
|
+
// `orquestra-mcp@latest`, para que npx no reuse una copia en caché vieja.
|
|
3
|
+
// Solo EDITA entradas que ya lanzan este paquete sin versión (`orquestra-mcp`):
|
|
4
|
+
// no crea entradas nuevas (el formato depende del cliente; eso lo imprime
|
|
5
|
+
// connectionHelp), no toca env/ORQUESTRA_AGENT ni otras cuentas/servidores, y
|
|
6
|
+
// no pisa versiones fijadas a propósito (`orquestra-mcp@1.2.3`).
|
|
7
|
+
import { existsSync, readFileSync, writeFileSync, renameSync, copyFileSync } from 'fs'
|
|
8
|
+
import { homedir } from 'os'
|
|
9
|
+
import { join } from 'path'
|
|
10
|
+
|
|
11
|
+
const BARE = 'orquestra-mcp'
|
|
12
|
+
const LATEST = 'orquestra-mcp@latest'
|
|
13
|
+
|
|
14
|
+
export function clientConfigFiles(home = homedir()) {
|
|
15
|
+
return [
|
|
16
|
+
join(home, '.claude.json'),
|
|
17
|
+
join(home, '.cursor', 'mcp.json'),
|
|
18
|
+
join(home, '.gemini', 'settings.json'),
|
|
19
|
+
join(home, 'Library', 'Application Support', 'Claude', 'claude_desktop_config.json'),
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function fixServers(servers) {
|
|
24
|
+
let n = 0
|
|
25
|
+
if (!servers || typeof servers !== 'object') return n
|
|
26
|
+
for (const entry of Object.values(servers)) {
|
|
27
|
+
if (!entry || !Array.isArray(entry.args)) continue
|
|
28
|
+
const i = entry.args.indexOf(BARE)
|
|
29
|
+
if (i >= 0) { entry.args[i] = LATEST; n++ }
|
|
30
|
+
}
|
|
31
|
+
return n
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Devuelve [{ file, changed }] solo de los archivos modificados. Nunca lanza.
|
|
35
|
+
export function migrateClientConfigs({ home = homedir() } = {}) {
|
|
36
|
+
const done = []
|
|
37
|
+
for (const file of clientConfigFiles(home)) {
|
|
38
|
+
try {
|
|
39
|
+
if (!existsSync(file)) continue
|
|
40
|
+
const raw = readFileSync(file, 'utf8')
|
|
41
|
+
const cfg = JSON.parse(raw)
|
|
42
|
+
let changed = fixServers(cfg.mcpServers)
|
|
43
|
+
for (const proj of Object.values(cfg.projects || {})) changed += fixServers(proj?.mcpServers)
|
|
44
|
+
if (!changed) continue
|
|
45
|
+
copyFileSync(file, `${file}.orquestra-bak`)
|
|
46
|
+
const tmp = `${file}.orquestra-tmp`
|
|
47
|
+
writeFileSync(tmp, JSON.stringify(cfg, null, raw.includes('\n "') ? 2 : undefined) + (raw.endsWith('\n') ? '\n' : ''))
|
|
48
|
+
renameSync(tmp, file)
|
|
49
|
+
done.push({ file, changed })
|
|
50
|
+
} catch {}
|
|
51
|
+
}
|
|
52
|
+
return done
|
|
53
|
+
}
|
package/src/setup.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import { createInterface } from 'readline'
|
|
|
5
5
|
import { homedir } from 'os'
|
|
6
6
|
import { resolve } from 'path'
|
|
7
7
|
import { findLegacyNpxConfigs, MIGRATE_COMMAND } from './updateCheck.mjs'
|
|
8
|
+
import { migrateClientConfigs } from './clientConfig.mjs'
|
|
8
9
|
import { upsertProjectMapping, replaceAgentToken, connectedAgents, readOrCreateMachine, agentKey, CONFIG_PATH } from './configFile.mjs'
|
|
9
10
|
|
|
10
11
|
const DEFAULT_API_BASE = 'https://api.orquestra.me'
|
|
@@ -202,6 +203,10 @@ export async function runSetup({ agent: presetAgent } = {}) {
|
|
|
202
203
|
if (others.length) console.log(`También actualicé el token de ${agentLabel} en: ${others.join(', ')}.`)
|
|
203
204
|
console.log('\nSiguiente paso -- conéctalo a tu herramienta (si ya estaba conectada, solo reconecta el MCP):\n')
|
|
204
205
|
console.log(connectionHelp(agent, agentLabel))
|
|
206
|
+
// ORQ-587: las entradas existentes sin versión pasan a @latest (con respaldo .orquestra-bak).
|
|
207
|
+
for (const m of migrateClientConfigs()) {
|
|
208
|
+
console.log(`\nActualicé ${m.changed} entrada(s) de Orquestra a orquestra-mcp@latest en ${m.file} (respaldo: ${m.file}.orquestra-bak). Reinicia o reconecta la herramienta.`)
|
|
209
|
+
}
|
|
205
210
|
if (findLegacyNpxConfigs().length) {
|
|
206
211
|
console.log('\nOjo: tu Claude Code tiene Orquestra registrado como "orquestra-mcp" sin @latest (npx se queda con una versión vieja). Migra con:')
|
|
207
212
|
console.log(` ${MIGRATE_COMMAND}`)
|