Bug: Claude Mcp List Command Shows No Output

by ADMIN 45 views

Introduction

The claude mcp list command is used to display a list of all configured MCP servers. However, in this article, we will discuss a bug where the claude mcp list command does not display any output, despite MCPs being properly configured and accessible via the claude mcp get <name> command.

Issue Description

The claude mcp list command does not display any output (not even an error message) when run, despite MCPs being properly configured and accessible via the claude mcp get <name> command. This issue is reproducible in the specified environment and has been verified to persist even after reinstalling the latest version of the CLI.

Environment

The following environment details are relevant to this issue:

  • Claude CLI Version: 0.2.104
  • Operating System: macOS (15.3.2)
  • Installation Method: npm global package (@anthropic-ai/claude-code)

Steps to Reproduce

To reproduce this issue, follow these steps:

  1. Configure MCPs: Use the claude mcp add-json command or create a .mcp.json file in the project directory to configure MCPs.
  2. Verify MCPs: Use the claude mcp get <name> command to verify that MCPs can be accessed individually.
  3. Run claude mcp list: Run the claude mcp list command to observe the issue.
  4. Observe the issue: The command exits silently with no output.

Expected Behavior

The expected behavior of the claude mcp list command is to display a list of all configured MCP servers, similar to how claude mcp get <name> displays information about a specific MCP.

Actual Behavior

The actual behavior of the claude mcp list command is to run silently with no output, even when MCPs are properly configured and accessible via other commands.

Additional Details

The following additional details are relevant to this issue:

  • MCPs are correctly configured and functional: As verified by the claude mcp get <name> command.
  • Project has a properly formatted .mcp.json file: The project directory contains a correctly formatted .mcp.json file.
  • No error messages are displayed: Even with CLAUDE_DEBUG=1 enabled, no error messages are displayed.
  • The issue persists after reinstalling the latest version of the CLI: The issue persists even after reinstalling the latest version of the CLI.

Configuration Files

The project .mcp.json file is as follows:

{
  "mcpServers": {
    "hyperbrowser": {
      "command": "npx",
      "args": ["--yes", "hyperbrowser-mcp"],
      "env": {
        "HYPERBROWSER_API_KEY": "..."
      }
    },
    "sequential_thinking_tools": {
      "command": "npx",
      "args": ["-y", "mcp-sequentialthinking-tools"]
    }
  }
}

Conclusion

In conclusion, the claude mcp list does not display any output, despite MCPs being properly configured and accessible via the claude mcp get <name> command. This issue is reproducible in the specified environment and has been verified to persist even after reinstalling the latest version of the CLI. Further investigation is required to resolve this issue.

Possible Causes

  1. CLI Bug: The issue may be caused by a bug in the Claude CLI.
  2. Configuration Issue: The issue may be caused by a configuration issue in the project's .mcp.json file.
  3. Environment Issue: The issue may be caused by an environment issue, such as a problem with the operating system or the installation method.

Next Steps

  1. Investigate further: Investigate the issue further to determine the root cause.
  2. Report the issue: Report the issue to the Claude CLI developers.
  3. Provide a fix: Provide a fix for the issue, if possible.

Related Issues

  1. claude mcp get command not displaying results: This issue is related to the claude mcp get <name> command not displaying results.
  2. claude mcp add-json command not working: This issue is related to the claude mcp add-json command not working.

Additional Resources

  1. Claude CLI documentation: The Claude CLI documentation provides information on how to use the CLI and troubleshoot issues.
  2. Claude CLI community: The Claude CLI community provides a forum for discussing issues and sharing knowledge.
  3. Claude CLI GitHub repository: The Claude CLI GitHub repository provides access to the source code and issue tracker.
    Q&A: Bug: claude mcp list command shows no output =====================================================

Introduction

In our previous article, we discussed a bug where the claude mcp list command does not display any output, despite MCPs being properly configured and accessible via the claude mcp get <name> command. In this article, we will provide a Q&A section to address common questions and concerns related to this issue.

Q: What is the expected behavior of the claude mcp list command?

A: The expected behavior of the claude mcp list command is to display a list of all configured MCP servers, similar to how claude mcp get <name> displays information about a specific MCP.

Q: What is the actual behavior of the claude mcp list command?

A: The actual behavior of the claude mcp list command is to run silently with no output, even when MCPs are properly configured and accessible via other commands.

Q: What are the possible causes of this issue?

A: The possible causes of this issue are:

  1. CLI Bug: The issue may be caused by a bug in the Claude CLI.
  2. Configuration Issue: The issue may be caused by a configuration issue in the project's .mcp.json file.
  3. Environment Issue: The issue may be caused by an environment issue, such as a problem with the operating system or the installation method.

Q: How can I troubleshoot this issue?

A: To troubleshoot this issue, follow these steps:

  1. Verify MCPs: Use the claude mcp get <name> command to verify that MCPs can be accessed individually.
  2. Check configuration: Check the project's .mcp.json file for any configuration issues.
  3. Check environment: Check the operating system and installation method for any environment issues.
  4. Report the issue: Report the issue to the Claude CLI developers.

Q: What are the related issues to this bug?

A: The related issues to this bug are:

  1. claude mcp get command not displaying results: This issue is related to the claude mcp get <name> command not displaying results.
  2. claude mcp add-json command not working: This issue is related to the claude mcp add-json command not working.

Q: Where can I find additional resources for troubleshooting this issue?

A: You can find additional resources for troubleshooting this issue in the following places:

  1. Claude CLI documentation: The Claude CLI documentation provides information on how to use the CLI and troubleshoot issues.
  2. Claude CLI community: The Claude CLI community provides a forum for discussing issues and sharing knowledge.
  3. Claude CLI GitHub repository: The Claude CLI GitHub repository provides access to the source code and issue tracker.

Q: How can I provide a fix for this issue?

A: To provide a fix for this issue, follow these steps:

  1. Investigate further: Investigate the issue further to determine the root cause.
  2. Report the issue: Report the issue the Claude CLI developers.
  3. Provide a patch: Provide a patch for the issue, if possible.

Conclusion

In conclusion, the claude mcp list command does not display any output, despite MCPs being properly configured and accessible via the claude mcp get <name> command. This issue is reproducible in the specified environment and has been verified to persist even after reinstalling the latest version of the CLI. We hope that this Q&A article has provided helpful information for troubleshooting and resolving this issue.