A "thinking tool" based on the Anthropic blog post on this topic. More background here.
The thinking tool requires Java 21. Written as a Spring AI MCP tool, using STDIO or SSE depending on which Spring Boot profile you run it with.
After you build it, to run it in STDIO mode for Claude Desktop, place the JAR file somewhere and add the io.cote.ThinkTool block to your claude_desktop_config.json
file like this:
{ "mcpServers": { "io.cote.ThinkTool": { "command": "java", "args": [ "-jar", "/Users/cote/projects/thinktool/target/thinktool-0.0.1-SNAPSHOT.jar", "--spring.profiles.active=stdio" ], "env": {"LOGGING_LEVEL_IO_COTE_MCP_THINKTOOL": "INFO"} } } }
To run it in SSE mode, use the sse Spring Boot profile like this:
java -jar target/thinktool-0.0.1-SNAPSHOT.jar --spring.profiles.active=sse
In STDIO mode, logs are placed in /Library/Logs/io.cote.thinktool/thinktool.log
you can change the location by passing in the logging.file.name
property like:
java -jar target/thinktool-0.0.1-SNAPSHOT.jar --spring.profiles.active=stdio --logging.file.name=/new/log/directory/thinktool.log