Skip to content

Unify MCP configuration and separate from conversation history #2539

Closed as not planned

Description

@expozeur

Environment

  • Platform (select one):
    • Anthropic API
  • Claude CLI version: 1.0.33 (Claude Code)
  • Operating System: macOS 15.5 (Darwin 24.5.0)
  • Terminal: Apple Terminal

Bug Description

  1. The .claude.json file gets filled up with conversation history mixed with MCP
    configurations, causing issues
  2. MCP configuration format differs between Claude CLI and Claude Desktop app, requiring
    separate config files instead of a unified approach

Steps to Reproduce

  1. Configure MCP servers in .claude.json for Claude CLI
  2. Use Claude CLI for conversations - history gets added to same file
  3. Try to use same MCP config with Claude Desktop app
  4. Observe that different config format/location is required

Expected Behavior

  • MCP configuration should be separate from conversation history
  • Single unified mcp.json config file should work for both Claude CLI and Claude Desktop app

Actual Behavior

  • Conversation history and MCP config mixed in same .claude.json file causes issues
  • Claude CLI and Desktop app require different MCP configuration formats/locations

Additional Context

This creates a poor developer experience requiring users to maintain separate MCP
configurations for CLI vs Desktop, and the mixing of history with config in CLI makes config
management problematic.

Activity

  1. tarikbo-aws commented on Jul 11, 2025

    @tarikbo-aws

    +1 for this one, this is terrible design. Even claude-code could not figure out where my config made using mcp add -s (for user) was actually stored. Very hard to version, edit, backup, etc. my configuration.

  2. expozeur commented on Jul 11, 2025

    @expozeur
    Author

    +1 for this one, this is terrible design. Even claude-code could not figure out where my config made using mcp add -s (for user) was actually stored. Very hard to version, edit, backup, etc. my configuration.

    Two weeks later. Silence. Only crickets. :)

  3. ollie-anthropic commented on Jul 21, 2025

    @ollie-anthropic
    Collaborator

    Hey all, sorry for the delayed reply on this. I understand this is unideal, and I hope to improve the situation on this shortly. Will keep you posted

  4. aretrace commented on Aug 3, 2025

    @aretrace

    I was a bit puzzled on this config arch as well, very subpar 😢.
    @ollie-anthropic whenever you have an chance, could you update us on your ideas for new config organization arrangements. I think #5024 needs to be addressed by this.

  5. sammcj commented on Aug 25, 2025

    @sammcj

    Claude Code's main configuration file is a nightmare to work with.

    The fact it uses a single ~/.claude.json for:

    • MCP Client configuration
    • Project definitions
    • State tracking
    • Update history
    • Changelog cache

    and that it's not with the other config files in ~/.claude/ really does my head in.

    Nothing more annoying than trying to find your MCP configuration in a 4000+ line long JSON file!

  6. matteocervelli commented on Sep 17, 2025

    @matteocervelli

    Claude Code's main configuration file is a nightmare to work with.

    The fact it uses a single ~/.claude.json for:

    • MCP Client configuration
    • Project definitions
    • State tracking
    • Update history
    • Changelog cache

    and that it's not with the other config files in ~/.claude/ really does my head in.

    Nothing more annoying than trying to find your MCP configuration in a 4000+ line long JSON file!

    It would be easier for users to work on separate JSON files for configuration. Also, it would be possible to symlink Claude Desktop and Claude Code for MCP configurations. These files are spawning more and more as soon as MCPs are available augmenting the risk of user errors old versions. I would like to have a unified protocol for mcp.json.

  7. github-actions commented on Dec 5, 2025

    @github-actions

    This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

  8. github-actions commented on Jan 5, 2026

    @github-actions

    This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

  9. github-actions commented on Jan 14, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  10. locked as resolved and limited conversation to collaborators on Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:mcpautocloseIssue will be closed automaticallybugSomething isn't workingenhancementNew feature or requestplatform:macosIssue specifically occurs on macOS

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions