Skip to main content

Chapter 2 : EasyManage MCP Server

Setup & Use EasyManage MCP Server

  • Boost AI Based Development with EasyManage MCP Server
  • Server Transport : The server supports transport mode
    • STDIO Mode

Pre-requisites

How To Configure MCP Server in AI Editor

Cursor

Define Global MCP Servers

  • Create or Add to file:
  • C:\Users\<username>\.cursor\mcp.json
  • Open Cursor
  • Goto Settings : Tools & Integrations : MCP Tools
    • Click Add Custom MCP

em-mcp-add

  • mcp.json opened in editor

em-mcp-json-new.png

  • mcp.json fill out step

EasyManage MCP Server sample json configuration file:

{
"mcpServers": {
"easymanage": {
"command": "C:/ProgFiles/Java/jdk-17/bin/java.exe",
"args":
["-jar",
"path_to_jar/em-mcp-server-1.0.jar",
"--em.mcp.locdir=path_to_dir"
]
}
}
}

NOTE:

  • For "command" : Give full path, Use Java 17+
  • --em.mcp.locdir : Specify EasyManage code generated, downloaded & extracted dir.
  • e.g. "--em.mcp.locdir=C:/Downloads/EmGenDir_JohnDoe_WS_50191"
  • You can set a new location lateron using Tool Command setDownloadLocation
  • mcp.json filled out correctly

em-mcp-json-filled.png

  • Save mcp.json and close

    - EasyManage MCP Server will be invoked and started

    em-mcp-activated-json-saved.png

  • See log for EasyManage MCP Server

    • Goto View : Output and Select "MCP Logs" in dropdown

em-mcp-see-log.png

Other AI Editors

  • You may use Cline, Windsurf or other AI Editor

Available Tools in MCP

    @Tool(description = "Set location downloaded extracted dir for further interactions")
public boolean setDownloadLocation(String locDir)

@Tool(description = "Get project list")
public List<String[]> getProjectList()

@Tool(description = "Set project for further interactions")
public boolean setProject(String projectType)

@Tool(description = "List project files for the given project")
public List<String> listProjectFiles(String projectType)

@Tool(description = "Get all project files for the given project")
public List<String> getProjectFiles(String projectType)

Use MCP with Cursor Chat

  • Ask Questions and seek assistance on EasyManage code

Run Sample Chat Questions in Cursor

  • New Chat : Give Input
  • list projects from easymanage

em-mcp-new-chat-ask.png

  • Chat Processing : Generating

em-mcp-new-chat-gen.png

  • Need to Approve : All Prompts : Waiting for approval : Click Accept
    • Please follow whenever asked

em-mcp-chat-approve.png

  • After Accept : View Response For Chat Input

em-mcp-chat-response.png

Run More Input Questions in Chat

  • Run yourself below inputs and questions

General, Backend

list projects from easymanage
or
get project list from easymanage


set project spring-java
or
set project Backend Java Spring

list project files from easymanage

copy all these files to my workspace in subdirectory spring-java
or
copy all these files to my workspace in root

To Set New Download Location

set location "C:/Downloads/EmGenDir_MYTEMP01_WS_51083"

list projects

Frontend

set project Frontend Flutter

list project files from easymanage