[GH-ISSUE #8] Feature Request: Support for OpenCode integration / OpenCode-compatible MCP endpoint #5

Closed
opened 2026-03-03 12:01:28 +03:00 by kerem · 3 comments
Owner

Originally created by @shishirprao on GitHub (Mar 1, 2026).
Original GitHub issue: https://github.com/ForLoopCodes/contextplus/issues/8

Originally assigned to: @ForLoopCodes on GitHub.

Is it already compatible/plug-and-play with OpenCode (opencode.ai) via the standard MCP? If yes, is there an example config (like opencode.json) or a quick setup note? Thanks!

Originally created by @shishirprao on GitHub (Mar 1, 2026). Original GitHub issue: https://github.com/ForLoopCodes/contextplus/issues/8 Originally assigned to: @ForLoopCodes on GitHub. Is it already compatible/plug-and-play with OpenCode (opencode.ai) via the standard MCP? If yes, is there an example config (like opencode.json) or a quick setup note? Thanks!
kerem 2026-03-03 12:01:28 +03:00
Author
Owner

@ForLoopCodes commented on GitHub (Mar 2, 2026):

done

<!-- gh-comment-id:3984108894 --> @ForLoopCodes commented on GitHub (Mar 2, 2026): done
Author
Owner

@shishirprao commented on GitHub (Mar 3, 2026):

I tried it, but it does not work for me.

Image

This is how it shows up on my opencode TUI.

This is my config file:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "chrome-devtools": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "chrome-devtools-mcp@latest"
      ]
    },
     "contextplus": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "contextplus"
      ],
      "enabled": true,
      "environment": {
        "OLLAMA_EMBED_MODEL": "nomic-embed-text",
        "OLLAMA_CHAT_MODEL": "gemma2:27b",
        "OLLAMA_API_KEY": "28f**************************",
        "CONTEXTPLUS_EMBED_BATCH_SIZE": "8",
        "CONTEXTPLUS_EMBED_TRACKER": "true"
      }
    }
  }
}
<!-- gh-comment-id:3993646743 --> @shishirprao commented on GitHub (Mar 3, 2026): I tried it, but it does not work for me. <img width="266" height="216" alt="Image" src="https://github.com/user-attachments/assets/ce8bd30c-03a8-4940-bd40-f3eb1e646553" /> This is how it shows up on my opencode TUI. This is my config file: ``` { "$schema": "https://opencode.ai/config.json", "mcp": { "chrome-devtools": { "type": "local", "command": [ "npx", "-y", "chrome-devtools-mcp@latest" ] }, "contextplus": { "type": "local", "command": [ "npx", "-y", "contextplus" ], "enabled": true, "environment": { "OLLAMA_EMBED_MODEL": "nomic-embed-text", "OLLAMA_CHAT_MODEL": "gemma2:27b", "OLLAMA_API_KEY": "28f**************************", "CONTEXTPLUS_EMBED_BATCH_SIZE": "8", "CONTEXTPLUS_EMBED_TRACKER": "true" } } } } ```
Author
Owner

@shishirprao commented on GitHub (Mar 3, 2026):

It was an issue with my setup. I use DevContainers, and I was running ollama on Windows. The bridge between VSCode DevContainer and the host was incorrect. Fixed it and everything works.

<!-- gh-comment-id:3994287337 --> @shishirprao commented on GitHub (Mar 3, 2026): It was an issue with my setup. I use DevContainers, and I was running ollama on Windows. The bridge between VSCode DevContainer and the host was incorrect. Fixed it and everything works.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/contextplus#5
No description provided.