{"_id":"@azatakmyradov/opencode-mcp-toggle-plugin","_rev":"3-d837f1bc9fdfc71dee0a7d11c935f0a2","name":"@azatakmyradov/opencode-mcp-toggle-plugin","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.0":{"name":"@azatakmyradov/opencode-mcp-toggle-plugin","version":"0.0.0","keywords":["mcp","opencode","opencode-plugin","tui"],"license":"MIT","_id":"@azatakmyradov/opencode-mcp-toggle-plugin@0.0.0","maintainers":[{"name":"azatakmyradov","email":"azat@akmyradov.me"}],"homepage":"https://github.com/azatakmyradov/opencode-plugins/tree/main/packages/mcp-toggle","bugs":{"url":"https://github.com/azatakmyradov/opencode-plugins/issues"},"dist":{"shasum":"f8e4f43fc98b73ef89cb80ae7b137e8f10aea3f7","tarball":"https://registry.npmjs.org/@azatakmyradov/opencode-mcp-toggle-plugin/-/opencode-mcp-toggle-plugin-0.0.0.tgz","fileCount":5,"integrity":"sha512-pzJzXhNxWAw2zeqImBlEcC4VkzuMeP1kR16pQacOCzuVYzR6N41T6qhz9OBVYJNYf4RLYDbSLW+BVFVoshZU6A==","signatures":[{"sig":"MEUCIHe/+7KODz4sJroNOequNZ8QPBQ/n4yIMdEK23mPEF/qAiEA3KQbZl/v4hBYGlVN7XBMLvnkf2zRXl1GTnT/0jNV2g4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18592},"type":"module","exports":{".":"./dist/index.js","./rpc":"./dist/rpc.js","./tui":"./dist/tui.js"},"gitHead":"8a2da923dfd0138144565558cb4eb821bc53a436","scripts":{"test":"vp test run","build":"bun ../../scripts/build.ts .","check":"tsc --noEmit","prepack":"bun run build"},"_npmUser":{"name":"azatakmyradov","email":"azat@akmyradov.me"},"repository":{"url":"git+https://github.com/azatakmyradov/opencode-plugins.git","type":"git","directory":"packages/mcp-toggle"},"_npmVersion":"11.19.0","description":"Per-project MCP server toggles for OpenCode V2","directories":{},"_nodeVersion":"24.20.0","dependencies":{"zod":"4.1.8","@opencode-ai/plugin":"0.0.0-beta-18721"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.9","@opentui/solid":">=0.5.9"},"peerDependenciesMeta":{"solid-js":{"optional":true},"@opentui/core":{"optional":true},"@opentui/solid":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencode-mcp-toggle-plugin_0.0.0_1788173551076_0.6023552273657782","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@azatakmyradov/opencode-mcp-toggle-plugin","version":"0.1.0","keywords":["mcp","opencode","opencode-plugin","tui"],"license":"MIT","_id":"@azatakmyradov/opencode-mcp-toggle-plugin@0.1.0","maintainers":[{"name":"azatakmyradov","email":"azat@akmyradov.me"}],"homepage":"https://github.com/azatakmyradov/opencode-plugins/tree/main/packages/mcp-toggle","bugs":{"url":"https://github.com/azatakmyradov/opencode-plugins/issues"},"dist":{"shasum":"111b395292d3060a685e8df12171e6eb37a843b4","tarball":"https://registry.npmjs.org/@azatakmyradov/opencode-mcp-toggle-plugin/-/opencode-mcp-toggle-plugin-0.1.0.tgz","fileCount":5,"integrity":"sha512-2GRG4AkjeGJcvI8+izKOaPQB8/8hyT3OcxJdwC6Ae0yBybaOVMswcBIK87A8S+3fXIqTpUZrdGFdQqrEov8xZg==","signatures":[{"sig":"MEQCICHHW9mqSuaqJFWg0E7ky6vM8Kdxv4x+PUODiXcuK1l2AiB/qnXXtg/tzmWrThH3mRmU7Nkn4nUA9na3RnFFvCFSgw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDdK78HtAAX8RcumIYveZY8hCrNCEeKMFSwtsOd1QQ60gIgUsJBkDTkw6Hn5BUXXTH2u28+lzt0gSFEiYQuN0pPLOA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@azatakmyradov%2fopencode-mcp-toggle-plugin@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18592},"type":"module","exports":{".":"./dist/index.js","./rpc":"./dist/rpc.js","./tui":"./dist/tui.js"},"gitHead":"cd18bd14ca58f23534c309cc3b32c7d6820ceacd","scripts":{"test":"vp test run","build":"bun ../../scripts/build.ts .","check":"tsc --noEmit","prepack":"bun run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f2fe32ff-7d4e-42f3-85e7-2c81cec3355f"}},"repository":{"url":"git+https://github.com/azatakmyradov/opencode-plugins.git","type":"git","directory":"packages/mcp-toggle"},"_npmVersion":"11.17.0","description":"Per-project MCP server toggles for OpenCode V2","directories":{},"_nodeVersion":"24.19.0","dependencies":{"zod":"4.1.8","@opencode-ai/plugin":"0.0.0-beta-18721"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.9","@opentui/solid":">=0.5.9"},"peerDependenciesMeta":{"solid-js":{"optional":true},"@opentui/core":{"optional":true},"@opentui/solid":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencode-mcp-toggle-plugin_0.1.0_1788174264538_0.6189532699468476","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"_id":"@azatakmyradov/opencode-mcp-toggle-plugin@0.1.1","bugs":{"url":"https://github.com/azatakmyradov/opencode-plugins/issues"},"dist":{"shasum":"2f51d77ba063d6b47f03c7df5f062148e0267e2b","tarball":"https://registry.npmjs.org/@azatakmyradov/opencode-mcp-toggle-plugin/-/opencode-mcp-toggle-plugin-0.1.1.tgz","fileCount":5,"integrity":"sha512-ku+Ql+L9BuxHz2Pqtael4A5ZgH0CVs4i0muN9eO3Nj27HU+3j1a1Ezpg5MDkP1CRGqkd2HkownWjVwoUULIKgA==","signatures":[{"sig":"MEUCIQCdxbgISzrxSoxXM0ckapovTARb2r96O79DLdte4l2CYAIgC+9ApJvQ4xCOCT8pBVC0cOWWIPhGVCIdET5pIpP9C/g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD5x5MvnDbEmJYlmEQ+T2YUiYA78tSZh1Oe0X5S3DEmwAIhAKajeVvfdhBr4vwQq9mLUObb5pljMWU0p8w25tv4x00f"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@azatakmyradov%2fopencode-mcp-toggle-plugin@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":20132},"name":"@azatakmyradov/opencode-mcp-toggle-plugin","type":"module","exports":{".":"./dist/index.js","./rpc":"./dist/rpc.js","./tui":"./dist/tui.js"},"gitHead":"ddc6a34b9ea6af093282a0d2e91ee822967df14c","license":"MIT","scripts":{"test":"vp test run","build":"bun ../../scripts/build.ts .","check":"tsc --noEmit","prepack":"bun run build"},"version":"0.1.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f2fe32ff-7d4e-42f3-85e7-2c81cec3355f"}},"homepage":"https://github.com/azatakmyradov/opencode-plugins/tree/main/packages/mcp-toggle","keywords":["mcp","opencode","opencode-plugin","tui"],"repository":{"url":"git+https://github.com/azatakmyradov/opencode-plugins.git","type":"git","directory":"packages/mcp-toggle"},"_npmVersion":"11.17.0","description":"Per-project MCP server toggles for OpenCode V2","directories":{},"maintainers":[{"name":"azatakmyradov","email":"azat@akmyradov.me"}],"_nodeVersion":"24.19.0","dependencies":{"zod":"4.1.8","effect":"4.0.0-rc.112","@opencode-ai/plugin":"0.0.0-beta-18721"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"solid-js":">=1.9.0","@opentui/core":">=0.5.9","@opentui/solid":">=0.5.9"},"peerDependenciesMeta":{"solid-js":{"optional":true},"@opentui/core":{"optional":true},"@opentui/solid":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/opencode-mcp-toggle-plugin_0.1.1_1788177732390_0.974264477514426"}}},"time":{"created":"2026-08-31T10:52:30.882Z","modified":"2026-08-31T12:02:12.857Z","0.0.0":"2026-08-31T10:52:31.207Z","0.1.0":"2026-08-31T11:04:24.626Z","0.1.1":"2026-08-31T12:02:12.470Z"},"bugs":{"url":"https://github.com/azatakmyradov/opencode-plugins/issues"},"license":"MIT","homepage":"https://github.com/azatakmyradov/opencode-plugins/tree/main/packages/mcp-toggle","keywords":["mcp","opencode","opencode-plugin","tui"],"repository":{"url":"git+https://github.com/azatakmyradov/opencode-plugins.git","type":"git","directory":"packages/mcp-toggle"},"description":"Per-project MCP server toggles for OpenCode V2","maintainers":[{"name":"azatakmyradov","email":"azat@akmyradov.me"}],"readme":"# OpenCode MCP toggle plugin\n\nToggle configured MCP servers per project without editing `opencode.json` or `opencode.jsonc`.\n\n## Install\n\n```bash\nopencode2 plugin add @azatakmyradov/opencode-mcp-toggle-plugin\nopencode2 service restart\n```\n\nThe package exposes both server and TUI entrypoints. OpenCode V2 loads the TUI entrypoint automatically.\n\n## Use\n\n- `/mcp-toggle` opens an alphabetized server selector. Choose servers repeatedly, then close the selector when finished.\n- `/mcp-toggle-reset` opens a selector for removing overrides.\n- **Toggle MCP server** and **Reset MCP server override** provide the same workflows in the command palette.\n\nThe selector shows desired enablement separately from connection state. An enabled server can still be disconnected, fail to connect, or require authentication. Use OpenCode's MCP authentication flow when authentication is required.\n\n## Storage\n\nOverrides are stored in OpenCode plugin storage under the project's stable ID. They are local to the user, shared by worktrees and locations belonging to that project, and retained across TUI and service restarts.\n\nOnly the effective `disabled` field is transformed. Commands, URLs, headers, credentials, timeouts, and configuration files are not changed. Resetting an override or removing the plugin restores configured behavior. Overrides for temporarily removed server names are retained and take effect if those servers return.\n\n## Development\n\n```bash\nbun run --filter @azatakmyradov/opencode-mcp-toggle-plugin check\nbun run --filter @azatakmyradov/opencode-mcp-toggle-plugin test\nbun run --filter @azatakmyradov/opencode-mcp-toggle-plugin build\n```\n","readmeFilename":"README.md"}