Add mcp-apps module: Spring AI 2.1.0 MCP server with MCP Apps HTML views, app-only tool callbacks, CSP declarations, SDK client tests and a Chromium harness on the official AppBridge
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4RzcCS5JCAgcxLz7T
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
# Writes output/09: does anything in the MCP jars of Spring AI 2.1.0 or the Java SDK 2.2.0 know about MCP Apps?
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
M="${M2_REPO:-$HOME/.m2/repository}"
|
||||
TMP="$(mktemp -d)"
|
||||
OUT=output/09-jar-search.txt
|
||||
{
|
||||
echo "# Strings searched in every class file: mcp-app | io.modelcontextprotocol/ui | McpUi | ui://"
|
||||
for jar in "$M"/org/springframework/ai/*mcp*/2.1.0/*-2.1.0.jar "$M"/io/modelcontextprotocol/sdk/mcp-core/2.2.0/mcp-core-2.2.0.jar; do
|
||||
dir="$TMP/$(basename "$jar" .jar)"
|
||||
mkdir -p "$dir" && unzip -q -o "$jar" -d "$dir"
|
||||
echo "$(basename "$jar"): $( { grep -rlaE 'mcp-app|io\.modelcontextprotocol/ui|McpUi|ui://' "$dir" || true; } | wc -l) class files match"
|
||||
done
|
||||
echo
|
||||
echo "# javap: what the Java SDK does offer, a generic extensions map"
|
||||
javap -cp "$M/io/modelcontextprotocol/sdk/mcp-core/2.2.0/mcp-core-2.2.0.jar" 'io.modelcontextprotocol.spec.McpSchema$ClientCapabilities' 2>/dev/null | grep -E 'extensions\(\)' | sed 's/^ *//'
|
||||
echo
|
||||
echo "# javap: the attributes of @McpTool in spring-ai-mcp-annotations 2.1.0"
|
||||
javap -cp "$M/org/springframework/ai/spring-ai-mcp-annotations/2.1.0/spring-ai-mcp-annotations-2.1.0.jar" org.springframework.ai.mcp.annotation.McpTool 2>/dev/null | grep abstract | sed -E 's/^ *public abstract //'
|
||||
} > "$OUT"
|
||||
rm -rf "$TMP"
|
||||
cat "$OUT"
|
||||
Reference in New Issue
Block a user