🤖 fix: xum api projects mcp add without --project-path writes global MCP config

Open Beginner friendly
#7,857 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

The payload does not name a file, so start by finding the handler for xum api projects mcp add and how it reads --project-path. Confirm that a missing flag falls through to the global config layer. Add a check that rejects the command with an error when the flag is absent. Done when running the command without --project-path exits with an error and writes nothing to global MCP config.

Written by the indexing model from the issue text.

Description

Summary

xum api projects mcp add without --project-path succeeds. The server it adds is then listed with configLayer: "global". A verifier saw this on main before and after #7855 while testing the CLI against a sandbox server. A user who forgets the flag changes global MCP config instead of getting an error.

Expected

The command refuses a missing --project-path, as the procedure name implies a project scope.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $297.50

Dominant language
TypeScript
Stars
2.1k
Forks
139
Avg merge
3h 35m
Merged PRs (30d)
950

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from coder/xum

All issues in coder/xum

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.