{"_id":"@aria-mcps/aria-mcp-gateway","_rev":"5-5cae70e1a236d89563214b4394a7d95a","name":"@aria-mcps/aria-mcp-gateway","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"@aria-mcps/aria-mcp-gateway","version":"0.1.0","keywords":["opencode","opencode-plugin","mcp","mcp-gateway"],"license":"MIT","_id":"@aria-mcps/aria-mcp-gateway@0.1.0","maintainers":[{"name":"diego_zepeda","email":"diegozepeda1302@gmail.com"}],"dist":{"shasum":"4ce9277fd7d051057c7160c7713bae5027363366","tarball":"https://registry.npmjs.org/@aria-mcps/aria-mcp-gateway/-/aria-mcp-gateway-0.1.0.tgz","fileCount":5,"integrity":"sha512-rM0Kr8USTP0goxNrqWxHjEtw8oMLFg5GrPuscH6kH5frMCRU6xMJ/AFFP7bDwMbKBqt+i1Cjac7zNmoQ5pznGw==","signatures":[{"sig":"MEUCIQDopVZ5m2xh8RQrzlyqI5oV36MHXhR8g10YMROIDuBeQAIgT0xHeV8TgMKeCVY2QMpC/bdFvLmRxHD+ysO6FUJSL6E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9367},"main":"index.js","type":"module","engines":{"node":">=18"},"scripts":{"pack":"npm pack --pack-destination ./dist"},"_npmUser":{"name":"diego_zepeda","email":"diegozepeda1302@gmail.com"},"_npmVersion":"11.12.1","description":"Opencode plugin to list, enable, and disable MCP servers from your MCP gateway","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"peerDependencies":{"zod":"^3.0.0"},"peerDependenciesMeta":{"zod":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/aria-mcp-gateway_0.1.0_1781000105589_0.3847660469909915","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aria-mcps/aria-mcp-gateway","version":"0.1.1","keywords":["opencode","opencode-plugin","mcp","mcp-gateway"],"license":"MIT","_id":"@aria-mcps/aria-mcp-gateway@0.1.1","maintainers":[{"name":"diego_zepeda","email":"diegozepeda1302@gmail.com"}],"dist":{"shasum":"505a6725c3b97b374c4cdb02c3691ffe17bceb35","tarball":"https://registry.npmjs.org/@aria-mcps/aria-mcp-gateway/-/aria-mcp-gateway-0.1.1.tgz","fileCount":5,"integrity":"sha512-JBXYJ0GYPxskT7kVXDgVMU4kJOA3Tjee0mvdbja8nmfKa1AUVFN9YHh/b9EXWNkIkKFaGEi5iWfg1qGYq+jT4w==","signatures":[{"sig":"MEQCIGxvVIuXcCXVCLlpdVQXW/mKj9HwUD8M3+IWUsL1LkiPAiBh5z6oT2dV77CsiS4vHyeBQsoQBbI65+JVeRViAA1gEg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12304},"main":"index.js","type":"module","engines":{"node":">=18"},"scripts":{"pack":"npm pack --pack-destination ./dist"},"_npmUser":{"name":"diego_zepeda","email":"diegozepeda1302@gmail.com"},"_npmVersion":"11.12.1","description":"Opencode plugin to list, enable, and disable MCP servers from your MCP gateway","directories":{},"_nodeVersion":"24.15.0","dependencies":{"@opencode-ai/plugin":"latest"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/aria-mcp-gateway_0.1.1_1781002085988_0.8150087481972346","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@aria-mcps/aria-mcp-gateway","version":"0.1.2","keywords":["opencode","opencode-plugin","mcp","mcp-gateway"],"license":"MIT","_id":"@aria-mcps/aria-mcp-gateway@0.1.2","maintainers":[{"name":"diego_zepeda","email":"diegozepeda1302@gmail.com"}],"dist":{"shasum":"17bbc7ef926c395c28264f8564fe8ddbb3830aea","tarball":"https://registry.npmjs.org/@aria-mcps/aria-mcp-gateway/-/aria-mcp-gateway-0.1.2.tgz","fileCount":5,"integrity":"sha512-zLlZqAP4FklzKXQSH9w7qTFo7W864InF5mQMZX21HM9EicHbl1b1LgNebJNklgR53ZR1ZBgvQB4HtiDLe1GZMg==","signatures":[{"sig":"MEQCIHI0OwXp8QqUrQFpGo9pcXpf4G9wm8yQEH70SyQs2Mw8AiAX2niuJoqWsBWB38nnJhqBLk2Ob0L44fRkODlH5gUjFA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11566},"main":"index.js","type":"module","engines":{"node":">=18"},"scripts":{"pack":"npm pack --pack-destination ./dist"},"_npmUser":{"name":"diego_zepeda","email":"diegozepeda1302@gmail.com"},"_npmVersion":"11.12.1","description":"Opencode plugin to list, enable, and disable MCP servers from your MCP gateway","directories":{},"_nodeVersion":"24.15.0","dependencies":{"@opencode-ai/plugin":"latest"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/aria-mcp-gateway_0.1.2_1781003172901_0.726210819140424","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@aria-mcps/aria-mcp-gateway","version":"0.1.3","keywords":["opencode","opencode-plugin","mcp","mcp-gateway"],"license":"MIT","_id":"@aria-mcps/aria-mcp-gateway@0.1.3","maintainers":[{"name":"diego_zepeda","email":"diegozepeda1302@gmail.com"}],"dist":{"shasum":"b9c4c27844fbfcbc07faec54e5dd2076aded037d","tarball":"https://registry.npmjs.org/@aria-mcps/aria-mcp-gateway/-/aria-mcp-gateway-0.1.3.tgz","fileCount":5,"integrity":"sha512-kphNs+MH6RKQgbo/R8V+rcwSyJ3DHwnYyR6Cql3ChujSG2MbDoMEXY0GovwXQpNCQyfNxFtpje97wdTblcD9Aw==","signatures":[{"sig":"MEYCIQDNB9lhiVtitAGmUMxyLEKbjVfqBAJx1m/bRXTXlIxGZgIhANyB/exS/CHztaAEGZ4CrUBj/FG3t7CXC8rXIinaWB16","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11568},"main":"index.js","type":"module","engines":{"node":">=18"},"scripts":{"pack":"npm pack --pack-destination ./dist"},"_npmUser":{"name":"diego_zepeda","email":"diegozepeda1302@gmail.com"},"_npmVersion":"11.12.1","description":"Opencode plugin to list, enable, and disable MCP servers from your MCP gateway","directories":{},"_nodeVersion":"24.15.0","dependencies":{"@opencode-ai/plugin":"latest"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/aria-mcp-gateway_0.1.3_1781013591888_0.4117803450524895","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@aria-mcps/aria-mcp-gateway","version":"0.1.4","description":"Opencode plugin to list, enable, and disable MCP servers from your MCP gateway","type":"module","main":"index.js","scripts":{"pack":"npm pack --pack-destination ./dist"},"keywords":["opencode","opencode-plugin","mcp","mcp-gateway"],"license":"MIT","engines":{"node":">=18"},"dependencies":{"@opencode-ai/plugin":"latest"},"_id":"@aria-mcps/aria-mcp-gateway@0.1.4","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-zwCI1XkFuVxUdrBdoWsyYWQtVk4jrB951wjqiC+RjFlAZ4K0o++Mo4idonbY6kA7ej7TrgiUloj1ZNosLgzF0g==","shasum":"1bc46e93fb507842224a57a5a48d5add0d206e1c","tarball":"https://registry.npmjs.org/@aria-mcps/aria-mcp-gateway/-/aria-mcp-gateway-0.1.4.tgz","fileCount":5,"unpackedSize":10875,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBpY6DwxB2dIg/+0GtnGMk8bKkSx5flN/8vcvKTEC/lQAiEArJzf9B3BpXgVzXfQI2sUlbgTDQbNQTmlWYCpzOoL2zE="}]},"_npmUser":{"name":"diego_zepeda","email":"diegozepeda1302@gmail.com"},"directories":{},"maintainers":[{"name":"diego_zepeda","email":"diegozepeda1302@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/aria-mcp-gateway_0.1.4_1781069602057_0.8054686910263851"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-09T10:15:05.396Z","modified":"2026-06-10T05:33:22.326Z","0.1.0":"2026-06-09T10:15:05.724Z","0.1.1":"2026-06-09T10:48:06.122Z","0.1.2":"2026-06-09T11:06:13.032Z","0.1.3":"2026-06-09T13:59:52.048Z","0.1.4":"2026-06-10T05:33:22.187Z"},"license":"MIT","keywords":["opencode","opencode-plugin","mcp","mcp-gateway"],"description":"Opencode plugin to list, enable, and disable MCP servers from your MCP gateway","maintainers":[{"name":"diego_zepeda","email":"diegozepeda1302@gmail.com"}],"readme":"# @aria-mcps/aria-mcp-gateway\n\nAn [Opencode](https://opencode.ai) plugin that connects to your MCP gateway and lets users browse, enable, and disable MCP servers directly from the Opencode CLI.\n\nOn startup it automatically syncs all available servers (as disabled) from the gateway into `opencode.json`. Users then enable the servers they need — they appear under `/mcp` in Opencode.\n\n## What it does\n\nAdds three agent-callable tools to your Opencode session:\n\n| Tool | What it does |\n|---|---|\n| `mcp_gateway_list` | Lists all MCP servers your API key can access, with enabled/disabled status |\n| `mcp_gateway_enable` | Enables a server in `opencode.json` |\n| `mcp_gateway_disable` | Disables a server in `opencode.json` |\n\n## Installation\n\n### 1. Configure the Artifactory registry for the `@aria-plugins` scope\n\nAdd to your project `.npmrc` (or `~/.npmrc` for global):\n\n```\n@aria-mcps:registry=https://artifactory.example.com/artifactory/api/npm/npm-local/\n//artifactory.example.com/artifactory/api/npm/npm-local/:_authToken=<your-artifactory-token>\n```\n\n### 2. Set environment variables\n\nAdd to your shell profile (`~/.bashrc`, `~/.zshrc`, etc.):\n\n```bash\nexport MCP_GATEWAY_URL=https://your-gateway.example.com\nexport MCP_GATEWAY_API_KEY=gw-xxxx\n```\n\n### 3. Add the plugin to your project's `opencode.json`\n\n```json\n{\n  \"plugins\": [\"@aria-mcps/aria-mcp-gateway\"]\n}\n```\n\nOpencode installs the package automatically via Bun on next startup.\n\n## Usage\n\nStart Opencode — all gateway servers are synced into `opencode.json` as disabled on the first run.\n\nOpen `/mcp` in the TUI to see them listed. Then ask the agent to enable what you need:\n\n```\nenable the github MCP server\n```\n```\ndisable the slack MCP server\n```\n```\nlist my available MCP servers\n```\n\n## How it works\n\n- **Startup sync** — fetches `GET $MCP_GATEWAY_URL` with `gw-api-key` header, adds any new servers to `opencode.json` with `enabled: false`\n- **Enable** — sets `enabled: true` on the entry; visible immediately under `/mcp`\n- **Disable** — sets `enabled: false`; user choice survives restarts and is never overwritten by the sync\n\n`opencode.json` entry written per server:\n\n```json\n{\n  \"mcp\": {\n    \"github\": {\n      \"type\": \"remote\",\n      \"url\": \"https://your-gateway.example.com/mcp/github\",\n      \"headers\": { \"gw-api-key\": \"<your_api_key>\" },\n      \"enabled\": false\n    }\n  }\n}\n```\n\n## Publishing a new version\n\n```bash\n# Bump version in package.json, then:\nnpm run pack\n# Upload dist/aria-plugins-aria-mcp-gateway-<version>.tgz to Artifactory\n```\n\n## Local development\n\n```bash\ngit clone https://github.com/your-org/aria-mcp-gateway\ncd aria-mcp-gateway\n\n# Start the mock gateway\ncd mock-gateway && node server.js\n\n# In your test project's opencode.json:\n# \"plugins\": [\"file:/path/to/aria-mcp-gateway\"]\n```\n","readmeFilename":"README.md"}