Skip to content

cote/thinktool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Local MCP Server

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"}
    }
  }
}

Remote MCP Server

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

Logs

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.

About

An MCP think tool as described by Anthropic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages