New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

junit-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

junit-mcp-server

A Model Context Protocol (MCP) server for generating JUnit tests for Java classes.

latest
Source
npmnpm
Version
3.0.4
Version published
Maintainers
1
Created
Source

junit-mcp-server

This project is a Node.js server for generating JUnit tests for Java classes. It uses analyzers, generators, and utilities to process Java source files and generate corresponding JUnit test files.

Features

  • HTTP server for test generation
  • JUnit test generation for Java classes
  • Extensible analyzers and generators

Usage

  • Install dependencies:
    npm install
    
  • In VS Code:
    • Open the Command Palette (Ctrl+Shift+P) and run Tasks: Run Task.
    • Select Start MCP Server to launch the server.
    • To stop the server, run Tasks: Run Task and select Stop MCP Server.
  • Send a POST request to http://localhost:49152/generate-junit-test with a JSON body:
    {
      "javaSource": "<Java source code>",
      "className": "<ClassName>"
    }
    

Development

  • Source code is in the src/ directory.
  • Compiled output is in the build/ directory.
  • Server entry point: src/index.js.

License

MIT

Keywords

mcp

FAQs

Package last updated on 08 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts