codanna icon indicating copy to clipboard operation
codanna copied to clipboard

Java Support

Open ovitinhooo opened this issue 1 year ago • 1 comments

This MCP has Java support?

ovitinhooo avatar Oct 17 '25 15:10 ovitinhooo

Hey @victormilk!

Java support is now available in v0.8.0.

The parser handles classes, interfaces, methods, fields, and tracks relationships like inheritance and method calls. Package-based resolution works for cross-file lookups.

Configuration

Add your pom.xml files to .codanna/settings.toml for better resolution:

[languages.java]
enabled = true
config_files = [
  "pom.xml",
  "module-a/pom.xml",
  "module-b/pom.xml"
]

This helps the resolver understand your project structure and dependencies. The config is cached and only rebuilds when pom.xml changes.

Then index normally: codanna index path/to/java/project

Let me know if you hit any issues.

bartolli avatar Nov 20 '25 19:11 bartolli