Branch: refs/heads/main Home: https://github.com/xwiki-contrib/ai-llm Commit: 450c54c088a074f7e52fa564288cb294c9eda74a https://github.com/xwiki-contrib/ai-llm/commit/450c54c088a074f7e52fa564288cb... Author: Paul Pantiru <[email protected]> Date: 2026-06-15 (Mon, 15 Jun 2026) Changed paths: M application-ai-llm-mcp/application-ai-llm-mcp-server/src/main/java/org/xwiki/contrib/llm/mcp/internal/MCPToolSupport.java M application-ai-llm-mcp/application-ai-llm-mcp-server/src/main/java/org/xwiki/contrib/llm/mcp/internal/XWikiMCPServerManager.java M application-ai-llm-mcp/application-ai-llm-mcp-server/src/test/java/org/xwiki/contrib/llm/mcp/internal/MCPToolSupportTest.java M application-ai-llm-mcp/application-ai-llm-mcp-server/src/test/java/org/xwiki/contrib/llm/mcp/internal/XWikiMCPServerManagerTest.java M pom.xml Log Message: ----------- LLMAI-150: Bump the MCP Java SDK to 2.0.0 * Import the mcp-bom 2.0.0 in the parent pom (versions managed centrally). * MCPToolSupport produces the tool input schema as a Map, matching the v2 McpSchema.Tool.inputSchema() type. * Drop the .block() on the now-void McpStatelessSyncServer.closeGracefully(). * Disable the SDK's built-in tool-input validation so the declarative parameter layer stays the single validation gate with curated agent-facing errors, and pre-validate each tool's schema at registration so one malformed schema cannot fail the whole server build. * Migrate the affected tests off the removed and changed SDK APIs. Commit: c999c05d5671f1044f96b0bc5aec6abe0d0ff91f https://github.com/xwiki-contrib/ai-llm/commit/c999c05d5671f1044f96b0bc5aec6... Author: Paul Pantiru <[email protected]> Date: 2026-06-15 (Mon, 15 Jun 2026) Changed paths: M application-ai-llm-mcp/application-ai-llm-mcp-server/src/main/java/org/xwiki/contrib/llm/mcp/internal/MCPManTool.java M application-ai-llm-mcp/application-ai-llm-mcp-server/src/test/java/org/xwiki/contrib/llm/mcp/internal/MCPManToolTest.java Log Message: ----------- LLMAI-146: Note in the man syntax reference that block/link/image parameters map to HTML attributes * The xwiki-syntax reference page now tells the agent that (% ... %) and ||key="value" parameters mostly pass through as HTML attributes, while macro parameters are macro-specific. * Also migrates the man tool to the MCP SDK 2.0.0 schema-as-Map API (LLMAI-150). Commit: 48e17242ccdd9619baa1f09ecbeb663380444d4f https://github.com/xwiki-contrib/ai-llm/commit/48e17242ccdd9619baa1f09ecbeb6... Author: Paul Pantiru <[email protected]> Date: 2026-06-15 (Mon, 15 Jun 2026) Changed paths: M application-ai-llm-mcp/application-ai-llm-mcp-server/src/main/java/org/xwiki/contrib/llm/mcp/internal/MCPQueryDocumentsTool.java M application-ai-llm-mcp/application-ai-llm-mcp-server/src/test/java/org/xwiki/contrib/llm/mcp/internal/MCPQueryDocumentsToolTest.java Log Message: ----------- LLMAI-138: Lead the query_documents description with the edismax engine and soften the total * The tool/parameter descriptions now state up front that queries use Solr Extended DisMax (edismax) syntax, so the model reaches for the right operators. * The result footer reports an approximate total ("Found about N") on paged results, since the rights post-filter can hide documents from the count; the count stays exact when a single unfiltered page returns everything. * Also migrates the tool to the MCP SDK 2.0.0 Tool.builder API (LLMAI-150). Commit: 2305441fe76b1c01ada4712f99f4fb398e604cf2 https://github.com/xwiki-contrib/ai-llm/commit/2305441fe76b1c01ada4712f99f4f... Author: Paul Pantiru <[email protected]> Date: 2026-06-15 (Mon, 15 Jun 2026) Changed paths: M application-ai-llm-mcp/application-ai-llm-mcp-server/pom.xml M application-ai-llm-mcp/application-ai-llm-mcp-server/src/main/java/org/xwiki/contrib/llm/mcp/internal/MCPGetDocumentTool.java A application-ai-llm-mcp/application-ai-llm-mcp-server/src/main/java/org/xwiki/contrib/llm/mcp/internal/MCPRenderedHtml.java M application-ai-llm-mcp/application-ai-llm-mcp-server/src/test/java/org/xwiki/contrib/llm/mcp/internal/MCPGetDocumentToolTest.java A application-ai-llm-mcp/application-ai-llm-mcp-server/src/test/java/org/xwiki/contrib/llm/mcp/internal/MCPRenderedHtmlTest.java Log Message: ----------- LLMAI-139: Add an HTML rendered format to get_document and suppress macro-error stack traces * rendered=true gains a format parameter: "plain" (default) or "html". HTML renders to html/5.0 and is cleaned by MCPRenderedHtml (platform HTMLCleaner) down to a structure/attribute allowlist for token economy. * A failing/disallowed macro no longer floods the output with its Java stack trace: the HTML description block is dropped structurally, and in plain mode runs of stack-frame lines are collapsed to a marker. * Also migrates the tool to the MCP SDK 2.0.0 Tool.builder API (LLMAI-150). Commit: 9c52bcb0f81ab64e3b1bdc8b3294fba04b8551c6 https://github.com/xwiki-contrib/ai-llm/commit/9c52bcb0f81ab64e3b1bdc8b3294f... Author: Paul Pantiru <[email protected]> Date: 2026-06-15 (Mon, 15 Jun 2026) Changed paths: M application-ai-llm-mcp/application-ai-llm-mcp-server/src/main/java/org/xwiki/contrib/llm/mcp/internal/MCPEditDocumentTool.java A application-ai-llm-mcp/application-ai-llm-mcp-server/src/main/java/org/xwiki/contrib/llm/mcp/internal/MCPWriteDocumentTool.java M application-ai-llm-mcp/application-ai-llm-mcp-server/src/main/resources/META-INF/components.txt M application-ai-llm-mcp/application-ai-llm-mcp-server/src/test/java/org/xwiki/contrib/llm/mcp/internal/MCPEditDocumentToolTest.java A application-ai-llm-mcp/application-ai-llm-mcp-server/src/test/java/org/xwiki/contrib/llm/mcp/internal/MCPWriteDocumentToolTest.java Log Message: ----------- LLMAI-141: Add the write_document tool for full create/overwrite * write_document creates a document or replaces its entire body; overwriting an existing document requires its base_version (read-before-write), and the refusal does not echo the current version so the agent must read first. * edit_document no longer advertises creation via an empty old_string (still supported); its description, summary and man page point at write_document. * Lets the agent set a version comment (stored [AI]-prefixed) and the minor/major flag on edit_document and write_document (LLMAI-140). * Also migrates edit_document to the MCP SDK 2.0.0 Tool.builder API (LLMAI-150). Commit: 1e3281ab488e76088629d6660581409795372468 https://github.com/xwiki-contrib/ai-llm/commit/1e3281ab488e76088629d66605814... Author: Paul Pantiru <[email protected]> Date: 2026-06-15 (Mon, 15 Jun 2026) Changed paths: M application-ai-llm-index/application-ai-llm-index-api/src/main/java/org/xwiki/contrib/llm/internal/mcp/MCPListCollectionsTool.java M application-ai-llm-index/application-ai-llm-index-api/src/main/java/org/xwiki/contrib/llm/internal/mcp/MCPSearchCollectionsTool.java Log Message: ----------- LLMAI-150: Migrate the index MCP tools off the deprecated v2 SDK schema APIs * list_collections and search_collections now build their input schema as a Map and register through Tool.builder(name, schema), replacing the deprecated McpSchema.JsonSchema type and the no-arg Tool.builder(). Compare: https://github.com/xwiki-contrib/ai-llm/compare/8c5642d7010a...1e3281ab488e To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/ai-llm/settings/notifications