Some checks failed
CI/CD / lint (pull_request) Successful in 1m10s
CI/CD / test (pull_request) Successful in 1m22s
CI/CD / typecheck (pull_request) Successful in 3m8s
CI/CD / smoke (pull_request) Failing after 1m55s
CI/CD / build (pull_request) Successful in 2m8s
CI/CD / publish (pull_request) Has been skipped
Implement mcpctl as an opencode addon mirroring the pi/prime-agent integrations. Mounts the active project's MCP gateway through opencode's own live MCP API, so switching projects needs no restart and opencode.json is never touched (the bearer token stays in a 0600 state file). - server plugin (plugin/mcpctl.ts): headless mount under a stable 'mcpctl' name, re-asserted on first contact + before each turn; skips re-registering an unchanged mount so a gated project's begin_session state survives. - TUI plugin (mcpctl/mcpctl-tui.tsx): /mcpctl filterable picker (live switch), /mcpctl-status, /mcpctl-skills, and a mcpctl:<project> footer indicator right of the model name, directly above the token counter. - mcpctl config opencode: mint/reuse project mcptoken, install + register plugins, write 0600 state, write marker, sync skills. - skills sync --agent opencode: new shared-tree target (XDG-aware). - shared credential plumbing lifted from config prime-agent and parameterised by agent so both hosts share mint/reuse/retire logic. - embedded-source generator + freshness test; typechecked against the real @opencode-ai/plugin types (1.18.15); unit tests for settings, order, embed. typecheck (incl. opencode-ext) and the full cli suite (619 tests) pass.
63 lines
2.5 KiB
JSON
63 lines
2.5 KiB
JSON
{
|
|
"name": "mcpctl",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "kubectl-like CLI for managing MCP servers",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "pnpm -r run build",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:smoke": "pnpm --filter mcplocal run test:smoke",
|
|
"test:ui": "vitest --ui",
|
|
"lint": "eslint 'src/*/src/**/*.ts'",
|
|
"lint:fix": "eslint 'src/*/src/**/*.ts' --fix",
|
|
"clean": "pnpm -r run clean && rimraf node_modules",
|
|
"db:up": "docker compose -f deploy/docker-compose.yml up -d",
|
|
"db:down": "docker compose -f deploy/docker-compose.yml down",
|
|
"typecheck": "tsc --build && pnpm run typecheck:pi-ext && pnpm run typecheck:opencode-ext",
|
|
"completions:generate": "tsx scripts/generate-completions.ts --write",
|
|
"completions:check": "tsx scripts/generate-completions.ts --check",
|
|
"rpm:build": "bash scripts/build-rpm.sh",
|
|
"rpm:build:amd64": "MCPCTL_TARGET_ARCH=amd64 bash scripts/build-rpm.sh",
|
|
"rpm:build:arm64": "MCPCTL_TARGET_ARCH=arm64 bash scripts/build-rpm.sh",
|
|
"rpm:publish": "bash scripts/publish-rpm.sh",
|
|
"deb:build": "bash scripts/build-deb.sh",
|
|
"deb:build:amd64": "MCPCTL_TARGET_ARCH=amd64 bash scripts/build-deb.sh",
|
|
"deb:build:arm64": "MCPCTL_TARGET_ARCH=arm64 bash scripts/build-deb.sh",
|
|
"deb:publish": "bash scripts/publish-deb.sh",
|
|
"release": "bash scripts/release.sh",
|
|
"release:both": "bash scripts/release.sh --both-arches",
|
|
"mcpd:build": "bash scripts/build-mcpd.sh",
|
|
"mcpd:deploy": "bash deploy.sh",
|
|
"mcpd:deploy-dry": "bash deploy.sh --dry-run",
|
|
"mcpd:logs": "bash logs.sh",
|
|
"typecheck:pi-ext": "tsc -p src/pi-ext/tsconfig.json",
|
|
"typecheck:opencode-ext": "tsc -p src/opencode-ext/tsconfig.json",
|
|
"smoke:clean": "tsx scripts/clean-smoke-resources.ts"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0",
|
|
"pnpm": ">=9.0.0"
|
|
},
|
|
"packageManager": "pnpm@9.15.0",
|
|
"devDependencies": {
|
|
"@earendil-works/pi-ai": "^0.84.1",
|
|
"@earendil-works/pi-coding-agent": "0.84.1",
|
|
"@opencode-ai/plugin": "1.18.15",
|
|
"@opentui/solid": "^0.5.1",
|
|
"@types/node": "^25.3.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
"@typescript-eslint/parser": "^8.56.0",
|
|
"@vitest/coverage-v8": "^4.0.18",
|
|
"eslint": "^10.0.1",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"rimraf": "^6.1.3",
|
|
"tsx": "^4.21.0",
|
|
"typebox": "1.3.11",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.0.18"
|
|
}
|
|
}
|