fix: auto-detect MCP documentation tools instead of hardcoded list #349

Merged
review.bot merged 1 commit from fix/337-document-source-detection into develop 2026-03-02 14:29:10 +00:00
Owner

Summary

  • Replace hardcoded DOCUMENTATION_TOOLS whitelist with pattern-based auto-detection
  • Any MCP tool matching documentation patterns (get_docs, search_docs, query, get_file, search, etc.) is now stored as a document
  • Known tools (context7, WebFetch) retain their specialized source extraction logic
  • Unknown MCP tools auto-detect source from tool name (server name) and input metadata (repo, libraryId, url, query)
  • UI already handles unknown document types via custom fallback — no UI changes needed

Closes #337

## Summary - Replace hardcoded `DOCUMENTATION_TOOLS` whitelist with pattern-based auto-detection - Any MCP tool matching documentation patterns (`get_docs`, `search_docs`, `query`, `get_file`, `search`, etc.) is now stored as a document - Known tools (context7, WebFetch) retain their specialized source extraction logic - Unknown MCP tools auto-detect source from tool name (server name) and input metadata (repo, libraryId, url, query) - UI already handles unknown document types via `custom` fallback — no UI changes needed Closes #337
- Replace hardcoded DOCUMENTATION_TOOLS whitelist with pattern-based detection
- Any MCP tool matching doc/search patterns is now stored (context-private, etc.)
- Known tools (context7, WebFetch) keep their specialized source extraction
- Unknown tools auto-detect source from tool name and input metadata
- UI already handles unknown types via 'custom' fallback
review.bot left a comment
Owner

AI Code Review (Devstral)

The changes look good and address the issue of hardcoded documentation tool detection. The implementation correctly auto-detects documentation tools using pattern matching and falls back to known configurations when available.


Automated review by pr-reviewer

## AI Code Review (Devstral) The changes look good and address the issue of hardcoded documentation tool detection. The implementation correctly auto-detects documentation tools using pattern matching and falls back to known configurations when available. --- *Automated review by [pr-reviewer](https://github.com/customable/pr-reviewer)*
review.bot merged commit beecb8525a into develop 2026-03-02 14:29:10 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
customable/claude-mem!349
No description provided.