Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Oct 17, 2025

Implements version-aware search mechanism for the search_documentation MCP tool. The tool is now forward-compatible and provides more accurate, context-aware results to the AI assistant.

Key features and improvements:

  • Dynamic Versioning: The tool now dynamically constructs the Algolia index name based on the user's project version (angular_vXX).
  • Unbounded Max Version: The tool can query for documentation versions newer than the CLI itself, making it forward-compatible.
  • Robust Fallback: If a search for a new or unknown version index fails, the tool automatically falls back to the latest known stable documentation index (v20) to ensure a result is always returned.
  • Contextual Output: The tool's output now includes the searchedVersion, informing the AI of the exact documentation version that was queried.
  • Enhanced AI Guidance: The tool's description has been updated to instruct the AI on the new versioning logic and how to use the searchedVersion field to provide more transparent and accurate answers.

Implements version-aware search mechanism for the `search_documentation` MCP tool. The tool is now forward-compatible and provides more accurate, context-aware results to the AI assistant.

Key features and improvements:
- **Dynamic Versioning**: The tool now dynamically constructs the Algolia index name based on the user's project version (`angular_vXX`).
- **Unbounded Max Version**: The tool can query for documentation versions newer than the CLI itself, making it forward-compatible.
- **Robust Fallback**: If a search for a new or unknown version index fails, the tool automatically falls back to the latest known stable documentation index (`v20`) to ensure a result is always returned.
- **Contextual Output**: The tool's output now includes the `searchedVersion`, informing the AI of the exact documentation version that was queried.
- **Enhanced AI Guidance**: The tool's description has been updated to instruct the AI on the new versioning logic and how to use the `searchedVersion` field to provide more transparent and accurate answers.
@clydin clydin added the target: major This PR is targeted for the next major release label Oct 17, 2025
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @angular/cli labels Oct 17, 2025
@clydin clydin marked this pull request as ready for review October 18, 2025 14:19
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 18, 2025
@clydin clydin requested a review from alan-agius4 October 18, 2025 14:19
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 20, 2025
@clydin clydin merged commit 286b620 into angular:main Oct 20, 2025
37 checks passed
@clydin clydin deleted the mcp/doc-search-version-aware branch October 20, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli detected: feature PR contains a feature commit target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants