Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Sep 20, 2025

The doc-search tool now supports searching against specific major versions of the Angular documentation. This is crucial for providing contextually accurate results that are relevant to the user's project.

This commit introduces the following changes:

  • An optional version parameter has been added to the tool's input schema.
  • The tool's description and schema are updated with explicit instructions for the LLM to determine the project's Angular version by running ng version and using the output for the search.
  • The underlying Algolia search logic now dynamically constructs the index name based on the provided version.

Note: This capability is not yet fully enabled, as it is pending the availability of the necessary version-specific Algolia indexes.

This provides a more robust, tool-based workflow for version-aware documentation searches.

The `doc-search` tool now supports searching against specific major versions of the Angular documentation. This is crucial for providing contextually accurate results that are relevant to the user's project.

This commit introduces the following changes:
- An optional `version` parameter has been added to the tool's input schema.
- The tool's description and schema are updated with explicit instructions for the LLM to determine the project's Angular version by running `ng version` and using the output for the search.
- The underlying Algolia search logic now dynamically constructs the index name based on the provided version.

Note: This capability is not yet fully enabled, as it is pending the availability of the necessary version-specific Algolia indexes.

This provides a more robust, tool-based workflow for version-aware documentation searches.
@clydin clydin added the target: major This PR is targeted for the next major release label Sep 20, 2025
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 20, 2025
@clydin clydin requested a review from alan-agius4 September 20, 2025 15:53
@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 Sep 22, 2025
@clydin clydin merged commit 049eb55 into angular:main Sep 22, 2025
35 checks passed
@clydin clydin deleted the mcp/version-aware-docs branch September 22, 2025 11:16
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 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