Skip to content

Add ~/.claude.json (Claude Code user-scope MCP config) to home discovery #1

Closed

Description

@dtduc-git

Context

mcplint scan --home discovers Claude Code's project config (.mcp.json) but not the user-scope config, which Claude Code stores at ~/.claude.json (top-level mcpServers key).

Task

Add the path to HOME_CONFIGS in src/mcplint/discovery.py (around line 19) — existing entries show the (pattern, client) shape.

Acceptance

  • mcplint scan --home finds MCP servers defined in ~/.claude.json
  • A unit test covers discovery (see tests/test_parse.py for the pattern)
  • uv run pytest and uv run ruff check . pass

Notes

  • ~/.claude.json holds a lot of unrelated state; only the mcpServers key matters — configs without it are already ignored by the parser.
  • If the file is huge or malformed in the wild, discovery should stay safe (skip, don't crash).

Activity

  1. added
    enhancement
    good first issue
    on Sep 16, 2026
  2. added 2 commits that reference this issue on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions