Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[bug] remove mcp refuses a root server named 'ambiguous' without saying why

Open Beginner friendly
#862 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
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Start in src/remove.ts at mcpRemovalTarget(name) and trace how the root server name reaches the refusal check. Reproduce with teamai remove mcp ambiguous --force using the shown mcp/mcp.yaml entry. Done means the root server named ambiguous is removed and a removal branch is pushed instead of returning Nothing was removed.

Written by the indexing model from the issue text.

Description

bug

Description

teamai remove mcp ambiguous refuses to remove a server named ambiguous from mcp/mcp.yaml, and prints no reason.

remove mcp <name>
  -> mcpRemovalTarget(name)          src/remove.ts
       root file defines it -> return name        // "ambiguous"
  -> caller: target === 'ambiguous'  // the refusal sentinel
       -> ambiguous = true -> "Nothing was removed.", exit 1

mcpRemovalTarget returns string | 'ambiguous' | null, so the refusal sentinel shares its value space with real server names. Every real refusal logs its reason before returning the sentinel, so this is the only path that fails with no explanation.

Expected: the server is removed, as any other root server name is.

Reproduction

  1. In the team repo, mcp/mcp.yaml:
    servers:
      - name: ambiguous
        transport: http
        url: https://a.example.com
    
  2. teamai remove mcp ambiguous --force
  3. Output is ✖ Nothing was removed., exit code 1, and no removal branch is pushed.

Environment

  • OS: macOS 26.5
  • Node.js: v22.23.3
  • teamai: 0.22.0 (main at a8ab8e00)
  • Provider: git
  • AI tool(s): Claude Code

Logs

Output
$ teamai remove mcp ambiguous --force
✖ Nothing was removed.
exit code: 1
removal branch: <none>
Dominant language
TypeScript
Stars
5k
Forks
376
Avg merge
13h 49m
Merged PRs (30d)
284

Getting set up

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 Tencent/teamai-cli

All issues in Tencent/teamai-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.