anomalyco / anomalyco/opencode
MCP: invalid location of mcp when used --global
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
when we use --global flag while adding mcp it gets added to "mcp"."servers" instead just "mcp" field in opencode.json
Plugins
No response
OpenCode version
2.0.8
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
windows 11
Terminal
Git bash
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing MCP addition with the --global flag on Windows 11 using Git Bash, then trace the command's configuration handling around opencode.json. Verify that the server is written under the top-level "mcp" field rather than "mcp"."servers", and add or update coverage if the relevant test entry point is found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100