Skip to content

Conversation

tech-sushant
Copy link
Collaborator

This pull request introduces a new tool for handling accessibility-related questions using a RAG (Retrieval-Augmented Generation) approach. It integrates a new API endpoint for querying accessibility data, updates the server to include this tool, and ensures proper error handling and tracking. Below are the key changes grouped by theme:

Accessibility Tool Enhancements:

  • New RAG Query Functionality: Added the queryAccessibilityRAG function in src/tools/accessibility-rag.ts to query an external API for accessibility-related questions. This function formats the response with relevant documentation links and handles errors gracefully.
  • Integration with Accessibility Tools: Imported the queryAccessibilityRAG function into src/tools/accessibility.ts to enable its use within the accessibility tools module.
  • New Accessibility Tool Registration: Added a new tool, accessibilityQuestions, to the MCP server in src/tools/accessibility.ts. This tool uses the queryAccessibilityRAG function to handle accessibility-related queries and includes error handling and telemetry tracking.

Code Organization:

  • Reordering Tool Registrations: Moved addAccessibilityTools earlier in the registerTools function in src/index.ts to align with the logical grouping of tools.

@ruturaj-browserstack
Copy link
Collaborator

LGTM

@Vishalan Vishalan merged commit f9bc356 into browserstack:main Jun 23, 2025
1 check passed
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.

3 participants