A "thinking tool" based on the Anthropic blog post on this topic. More background here.
The thinking tool requires Java 21 (not for any reason, it could probably be downgraded). Written as a Spring AI MCP tool, using STDIO or SSE depending on which Spring Boot profile you run it with.
For local use, 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 streamable mode, use the sse Spring Boot profile like this:
java -jar target/thinktool-0.0.1-SNAPSHOT.jar --spring.profiles.active=streamable
Then your MCP Server URL you use will be like:
https:///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
In remote mode, logs are just sent to the console or whatever default behavior you have setup.