- Upgrade mcp-spring-webmvc from 0.10.0 to 0.18.1 (adds WebMvcStreamableServerTransportProvider alongside the legacy SSE provider) - Add mcp-json-jackson2 0.18.1 for JacksonMcpJsonMapper adapter - Exclude McpWebMvcServerAutoConfiguration (SSE transport) via spring.autoconfigure.exclude; register WebMvcStreamableServerTransportProvider and its RouterFunction manually in McpConfig so Spring AI's McpServerAutoConfiguration picks up the correct transport bean - Remove sse-message-endpoint / sse-endpoint from application.yml; all MCP traffic now flows through POST+GET /mcp - Remove McpSseMethodNotAllowed workaround from WebConfig and drop 'sse' from SPA fallback exclusions (no longer needed) Clients should connect with type: http at https://trueref.sal.giize.com/mcp
122 lines
4.5 KiB
XML
122 lines
4.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>com.trueref</groupId>
|
|
<artifactId>trueref-parent</artifactId>
|
|
<version>0.1.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>trueref-adapters</artifactId>
|
|
<name>trueref-adapters</name>
|
|
<description>All driving (REST, MCP) and driven (H2, Lucene, ONNX, JGit, tree-sitter, disk cache) adapters.</description>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.trueref</groupId>
|
|
<artifactId>trueref-domain</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.trueref</groupId>
|
|
<artifactId>trueref-application</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Spring Web + JDBC + validation (no auto-config; bootstrap controls @ComponentScan) -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
</dependency>
|
|
|
|
<!-- OpenAPI / Swagger UI -->
|
|
<dependency>
|
|
<groupId>org.springdoc</groupId>
|
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Spring AI MCP server — tool/resource registration and McpSyncServer wiring.
|
|
McpWebMvcServerAutoConfiguration (SSE transport) is excluded in application.yml;
|
|
the Streamable HTTP transport is wired manually in McpConfig. -->
|
|
<dependency>
|
|
<groupId>org.springframework.ai</groupId>
|
|
<artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
|
|
</dependency>
|
|
|
|
<!-- MCP Java SDK 0.18.1: provides WebMvcStreamableServerTransportProvider.
|
|
Overrides the 0.10.0 version pulled in by spring-ai-starter-mcp-server-webmvc. -->
|
|
<dependency>
|
|
<groupId>io.modelcontextprotocol.sdk</groupId>
|
|
<artifactId>mcp-spring-webmvc</artifactId>
|
|
<version>0.18.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.modelcontextprotocol.sdk</groupId>
|
|
<artifactId>mcp-json-jackson2</artifactId>
|
|
<version>0.18.1</version>
|
|
</dependency>
|
|
|
|
<!-- H2 + Flyway -->
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<version>${h2.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-core</artifactId>
|
|
<version>${flyway.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Lucene -->
|
|
<dependency>
|
|
<groupId>org.apache.lucene</groupId>
|
|
<artifactId>lucene-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.lucene</groupId>
|
|
<artifactId>lucene-analysis-common</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.lucene</groupId>
|
|
<artifactId>lucene-queryparser</artifactId>
|
|
</dependency>
|
|
|
|
<!-- ONNX Runtime: GPU jar contains both CUDA and CPU providers; DirectML jar is added at runtime via classifier on Windows. -->
|
|
<dependency>
|
|
<groupId>com.microsoft.onnxruntime</groupId>
|
|
<artifactId>onnxruntime_gpu</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ai.djl.huggingface</groupId>
|
|
<artifactId>tokenizers</artifactId>
|
|
</dependency>
|
|
|
|
<!-- JGit -->
|
|
<dependency>
|
|
<groupId>org.eclipse.jgit</groupId>
|
|
<artifactId>org.eclipse.jgit</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jgit</groupId>
|
|
<artifactId>org.eclipse.jgit.ssh.apache</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Test -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|