Skip to content

feat: implement structured JSON response for search_docs tool - #10

Merged
mrsimpson merged 1 commit into
mainfrom
structured-results
Nov 10, 2025
Merged

feat: implement structured JSON response for search_docs tool#10
mrsimpson merged 1 commit into
mainfrom
structured-results

Conversation

@mrsimpson

Copy link
Copy Markdown
Collaborator
  • Replace plain text response with structured JSON object using MCP structuredContent
  • Response now includes: instructions, search_terms, generalized_search_terms, path
  • Simplify instruction templates to be more concise and focused
  • Update SearchDocsResponse interface with correct field names
  • Update all tests to expect structured response format
  • Update architecture documentation to reflect new response format

Breaking change: search_docs tool now returns structuredContent instead of text content

- Replace plain text response with structured JSON object using MCP structuredContent
- Response now includes: instructions, search_terms, generalized_search_terms, path
- Simplify instruction templates to be more concise and focused
- Update SearchDocsResponse interface with correct field names
- Update all tests to expect structured response format
- Update architecture documentation to reflect new response format

Breaking change: search_docs tool now returns structuredContent instead of text content
@mrsimpson
mrsimpson merged commit 735bde5 into main Nov 10, 2025
1 check passed
@mrsimpson
mrsimpson deleted the structured-results branch November 10, 2025 15:37
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.

1 participant