Skip to content

A plugin that fetches the dependencies of a Maven package (from Maven Central) given its group, artifact, and version.

License

Notifications You must be signed in to change notification settings

hyper-mcp-rs/maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maven

A plugin that fetches the dependencies of a Maven package (from Maven Central) given its group, artifact, and version.

What it does

Given a Maven package (groupId, artifactId, version), fetches its POM file from Maven Central and returns its dependencies as JSON.

Usage

Call with:

{
  "plugins": [
    {
      "name": "mvn_fetch_deps",
      "path": "oci://ghcr.io/hyper-mcp-rs/maven-plugin:latest",
      "runtime_config": {
        "allowed_hosts": ["repo1.maven.org"]
      }
    }
  ]
}

Example input

{
  "name": "mvn_fetch_deps",
  "arguments": {
    "group": "org.springframework.boot",
    "artifact": "spring-boot-starter-web",
    "version": "3.5.0"
  }
}

Example output

{
  "dependencies": [
    {
      "groupId": "org.springframework.boot",
      "artifactId": "spring-boot-starter",
      "version": "3.5.0",
      "scope": "compile"
    },
    {
      "groupId": "org.springframework.boot",
      "artifactId": "spring-boot-starter-json",
      "version": "3.5.0",
      "scope": "compile"
    }
    // ...
  ]
}

Return the list of dependencies of the given Maven package.

About

A plugin that fetches the dependencies of a Maven package (from Maven Central) given its group, artifact, and version.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages