Skip to content

feat(discovery): add ~/.claude.json to home discovery (#1) - #3

Merged
dtduc-git merged 3 commits into
dtduc-git:masterfrom
1998LJ:feat/claude-json-discovery
Sep 16, 2026
Merged

dtduc-git merged 3 commits into
dtduc-git:masterfrom
1998LJ:feat/claude-json-discovery

Conversation

@1998LJ

@1998LJ 1998LJ commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Closes #1

Summary

  • Adds ~/.claude.json (claude-code) to HOME_CONFIGS in src/mcplint/discovery.py.
  • Integrates user-scope Claude Code MCP server discovery (mcpServers top-level key).
  • Safe parsing: non-mcp or malformed files are safely skipped without crashing (parse_config_file returns None).
  • Added unit tests covering user-scope discovery and malformed file handling in tests/test_parse.py.

Verification

  • uv run pytest: 29 passed
  • uv run ruff check .: All checks passed

@dtduc-git

Copy link
Copy Markdown
Owner

Thanks @1998LJ — clean implementation. The size guard and malformed-file handling are exactly the edge cases I was worried about with ~/.claude.json in the wild. Approved the CI run; merging once green.

@dtduc-git
dtduc-git merged commit 682b836 into dtduc-git:master Sep 16, 2026
1 check passed
@dtduc-git

Copy link
Copy Markdown
Owner

Thanks @1998LJ — merged! Heads-up: there was a small conflict with another PR (both added tests at the end of test_parse.py), so I merged master into your branch to resolve it — all your tests are kept and passing. Nice work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants