adityamparikh opened a new pull request, #313:
URL: https://github.com/apache/solr-mcp/pull/313

   ## Summary
   
   Group 6 of the `typed-mcp-contracts` OpenSpec change (#306): every tool, 
resource, prompt and completion working to the typed contract together, checked 
over the wire on both MCP protocol eras.
   
   This is a **draft stacked on every other group**, so its diff includes them. 
In order:
   
   | Commits | From |
   |---|---|
   | 5 | #294: aliases and collections |
   | 5 | #308: schema |
   | 6 | #307: MCP result types and output schemas |
   | `547538f7` | #312: search |
   | `6d7370ac`, `0ac9f917` | #311: indexing |
   | `bdbfea98` | #304: Solr 10 container fix, so the compatibility matrix 
tests this code rather than a known failure on `main` |
   
   This PR's own changes:
   - Search test update for the typed facet list. #312 made facets a `List`, 
and #307's new `SearchResponseTest` still built a `Map`; git couldn't see the 
conflict: https://github.com/apache/solr-mcp/pull/313/commits/34ec5f3b
   - Output schemas for the four indexing tools, their conformance sample 
arguments, and a 1.0.0 changelog entry: 
https://github.com/apache/solr-mcp/pull/313/commits/39390db2
   
   ```diff
    @McpTool(name = "index-json-documents", ...
   +    generateOutputSchema = true)
    public IndexingResult indexJsonDocuments(...)
   
    SAMPLE_ARGUMENTS
      search, get-schema, create-alias, ...
   +  index-csv-documents, index-json-documents,
   +  index-markdown-documents, index-xml-documents
   ```
   
   With this, every tool that returns a record publishes an object-rooted 
`outputSchema`, returns `structuredContent` with the same JSON as text, and has 
no `success`/`message` keys. The three list tools (`list-aliases`, 
`list-collections`, `list-fields`) publish no schema. The conformance tests 
assert all of this for every tool, over the legacy (2025-11-25) and modern 
(2026-07-28) protocols.
   
   As each lower PR merges, this rebases onto `main` and its diff shrinks to 
the two commits above.
   
   ## Evidence
   
   | Check | Result |
   |---|---|
   | `./gradlew build` (Solr 9.9) | 615 tests, 0 failed, 0 skipped |
   | `./gradlew nativeTest -Pnative` | 393 passed, 0 failed (213 skipped are 
the `@DisabledInNativeImage` Mockito tests) |
   | `integrationTest -Dsolr.test.image=solr:9.4-slim` | 266 / 266 |
   | `integrationTest -Dsolr.test.image=solr:9.10-slim` | 266 / 266 |
   | `integrationTest -Dsolr.test.image=solr:9.11-slim` | 266 / 266 |
   | `integrationTest -Dsolr.test.image=solr:10-slim` | 266 / 266 |
   | `dockerIntegrationTest` (Jib JVM image: stdio, http, MCP stdio) | 60 / 60 |
   | `dockerIntegrationTest -Pnative` (Paketo native-stdio) | 54 / 54 |
   | `dockerIntegrationTest -Pnative -Pprofile=http` (Paketo native-http) | 6 / 
6 |
   
   ## Merge Danger
   
   **Door:** one-way once released. Before 1.0.0 the old shapes have no 
published clients, so it is two-way until the release.
   
   **Blast Radius:** clients. Every tool's response shape changes, as the 1.0.0 
changelog entry describes.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to