Skip to content

NachoBrito/tjmcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An MCP server to show AI coding agents how to use a compiled java class

TJMCP is an MCP server that lets Agents know about compiled Java classes, by using:

  • Java Class File API to extract low level information about the class file.
  • Ollama for local inference, to interpret the low level details and generate a report of the given class.

The result is a Markdown document describing the class, generated locally without having to expose your private code to a remote LLM.

You can read more about this project in my article: An MCP Server To Describe Java Classes

How to use it

  1. Build the project:

    mvn clean install
  2. Add the following configuration to your agent:

    {
      "tjmcp": {
        "command": "/path/to/java",
        "args": [
          "-jar",
          "/path/to/project/target/tjmcp-0.1.jar"
        ],
        "env": {
          "TJMCP_CACHE_FOLDER": "/home/nacho/tjmcp-cache",
          "TJMCP_LANGCHAIN4J_OLLAMA_URL": "http://localhost:11434",
          "TJMCP_LANGCHAIN4J_OLLAMA_MODEL": "qwen3-coder:latest"
        },
        "timeout": 300
      }
    }

Micronaut 4.10.7 Documentation


About

An MCP server to describe Java classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published