Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ each write — no auto-pruning, so they pile up.
| --- | --- | --- | --- |
| `jdtls-lombok` | LSP | replace | Makes jdtls lombok-aware via `-javaagent` flag |
| `jdtls-clean-workspace` | LSP | replace | Stops jdtls from writing `.project`/`.classpath`/etc. into your project root |
| `mcp-remote-add` | MCP | replace | Add a remote MCP server with bearer-token auth (prompts for id, URL, token) |
| `mcp-remote-add-noauth` | MCP | replace | Add a remote MCP server without auth (prompts for id, URL) |
| `mcp-http` | MCP | replace | Add an HTTP MCP server (localhost or remote) with one custom header (prompts for id, URL, header name, header value) |
| `mcp-http-noauth` | MCP | replace | Add an HTTP MCP server (localhost or remote) without auth headers (prompts for id, URL) |
| `mcp-intellij` | MCP | replace | Add the JetBrains IDE MCP server (loopback HTTP, default port 64342) |
| `mcp-vscode` | MCP | replace | Add the VS Code MCP server via the `JuehangQin.vscode-mcp-server` extension (loopback HTTP, default port 3000) |
| `permissions-git-safe` | Permissions | merge | Read-only git commands (status, diff, log, branch --list, fetch, etc.) |
Expand All @@ -55,7 +55,7 @@ opencode-presets install jdtls-lombok jdtls-clean-workspace
opencode-presets install permissions-git-safe permissions-shell-safe
```

Presets whose path uses a prompt (like `mcp-remote-add`) can't be
Presets whose path uses a prompt (like `mcp-http`) can't be
removed with `remove` — use `reset` instead:

```sh
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencode-presets",
"version": "0.3.0",
"version": "0.3.2",
"description": "Interactive CLI that patches opencode.json with curated config presets — LSP, MCP, permissions.",
"type": "module",
"bin": {
Expand Down
16 changes: 16 additions & 0 deletions presets/mcp-http-noauth.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// @name: mcp-http-noauth
// @description: Adds an HTTP MCP server to opencode (URL can be
// localhost or remote) with no auth headers. Use this for open
// servers or for OAuth (which opencode handles separately). For
// a single custom header (bearer token, upstream API token, etc.),
// use mcp-http instead.
// @author: Jan <jan@trick77.com>
// @version: 0.2.0
// @path: mcp.{{prompt:name}}
// @prompt: name | text | server identifier (key under mcp)
// @prompt: url | text | server URL
{
"type": "remote",
"url": "{{prompt:url}}",
"enabled": true
}
23 changes: 23 additions & 0 deletions presets/mcp-http.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// @name: mcp-http
// @description: Adds an HTTP MCP server to opencode (URL can be
// localhost or remote) with one custom request header. Use this for
// bearer auth (header name "Authorization", value "Bearer <token>")
// or for upstream credentials the MCP server forwards to a backend
// service such as Bitbucket, GitHub, or Jira. For multi-header setups,
// run the preset and then edit opencode.json by hand. For servers
// without auth headers, use mcp-http-noauth.
// @author: Jan <jan@trick77.com>
// @version: 0.2.0
// @path: mcp.{{prompt:name}}
// @prompt: name | text | server identifier (key under mcp, e.g. openrag-tom)
// @prompt: url | text | server URL (e.g. https://my-mcp.example.com/mcp or http://localhost:8080/mcp)
// @prompt: headerName | text | request header name (e.g. Authorization, X-Bitbucket-Token)
// @prompt: headerValue | secret | request header value (e.g. "Bearer <token>" or a raw token)
{
"type": "remote",
"url": "{{prompt:url}}",
"enabled": true,
"headers": {
"{{prompt:headerName}}": "{{prompt:headerValue}}"
}
}
16 changes: 0 additions & 16 deletions presets/mcp-remote-add-noauth.conf

This file was deleted.

21 changes: 0 additions & 21 deletions presets/mcp-remote-add.conf

This file was deleted.