Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Sep 2, 2025

This commit enhances the search_documentation MCP tool by improving its error handling and the quality of the data it returns.

The key changes are:

  • Error Logging: The content fetching logic now logs a warning if it fails to retrieve or parse the documentation page, providing better visibility for debugging without crashing the tool.
  • HTML Removal: The fetched HTML content now has all tags removed, providing the AI with clean, plain-text content. This reduces noise, lowers the token count, and improves the quality of the input for the language model.

This commit enhances the `search_documentation` MCP tool by improving its error handling and the quality of the data it returns.

The key changes are:
- **Error Logging:** The content fetching logic now logs a warning if it fails to retrieve or parse the documentation page, providing better visibility for debugging without crashing the tool.
- **HTML Removal:** The fetched HTML content now has all tags removed, providing the AI with clean, plain-text content. This reduces noise, lowers the token count, and improves the quality of the input for the language model.
@clydin clydin added the target: patch This PR is targeted for the next patch release label Sep 2, 2025
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 2, 2025
@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 3, 2025
@clydin clydin merged commit bd1aa7b into angular:main Sep 3, 2025
35 checks passed
@clydin
Copy link
Member Author

clydin commented Sep 3, 2025

This PR was merged into the repository. The changes were merged into the following branches:

@clydin clydin deleted the mcp/doc-search-html-removal branch September 3, 2025 11:45
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants