TheEterna/api2mcp4j
Spring Boot Starter: Auto-convert existing REST APIs (@RestController) to MCP Server with zero/low-code. Expose controllers as MCP Tools instantly.
6e917fda0b62server2mcp-parent1.2.0 in pom.xmlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
Prompt Integrity is not analysed and has no number.
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety and Capability Exposure are shown as partly traced instead of a score: no finding there is not a clean result.
- Prompt Integrity: no tool description could be read from the code
- In 4 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 9 of 49 tools, prompts and resources could not be followed through the code
- 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
- 39 tools, prompts and resources registered only in the repository's tests are not counted on this page
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 4 resources, 3 prompts, 3 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
None of the tools reaches any of these in the code the scanner could trace.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (10: 4 resources, 3 prompts, 3 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
asyncMcpPromptMethodCallbackprompt
No description.
beanNameprompt
No description.
syncMcpPromptMethodCallbackprompt
No description.
(name computed at run time)resource
No description.
beanNameresource
No description.
methodCallbackresource
No description.
methodCallbackresource
No description.
methodCallbacktool
No description.
methodCallbacktool
No description.
toolRegisterDefinitiontool
No description.
Text the model reads (10)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
methodCallback tool
methodCallback tool
toolRegisterDefinition tool
asyncMcpPromptMethodCallback prompt
syncMcpPromptMethodCallback prompt
beanName prompt
(name computed at run time) resource
methodCallback resource
methodCallback resource
beanName resource
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 10 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 10 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 10 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 10 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 10 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 10 capabilities; 1 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 10 capabilities; 1 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 10 capabilities; 1 more call code the scanner could not follow, where it may happen
Where the code is: 10 handlers in 7 files at commit 6e917fda0b62
server2mcp-common/src/main/java/com/ai/plug/common/utils/ConvertUtil.java(name computed at run time)server2mcp-core/src/main/java/com/ai/plug/core/provider/McpPromptProvider.javaasyncMcpPromptMethodCallback, syncMcpPromptMethodCallbackserver2mcp-core/src/main/java/com/ai/plug/core/provider/McpResourceProvider.javamethodCallback, methodCallbackserver2mcp-core/src/main/java/com/ai/plug/core/provider/McpToolProvider.javamethodCallback, methodCallbackserver2mcp-core/src/main/java/com/ai/plug/core/register/prompt/ClassPathPromptScanner.javabeanNameserver2mcp-core/src/main/java/com/ai/plug/core/register/resource/ClassPathResourceScanner.javabeanNameserver2mcp-core/src/main/java/com/ai/plug/core/register/tool/ClassPathToolScanner.javatoolRegisterDefinition
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityNot checked: no tool description could be read from the code
- Dependency manifests8 manifests: docs-site/package.json, pom.xml, server2mcp-autoconfigure/pom.xml, server2mcp-common/pom.xml, server2mcp-core/pom.xml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependencies8 packages with advisories used only for development, tests or examples; an install of the server leaves them out
- MCP SDK versionio.modelcontextprotocol.sdk:mcp , io.modelcontextprotocol.sdk:mcp-test ${mcp-sdk.version}
- 2 checks: undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Credential harvestingNot checked: no tool description could be read from the code
- Tools that read credentialsNot seen in the traced code of 10 capabilities; 1 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (35 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
No known vulnerabilities in the production dependencies that could be checked.
8 vulnerable packages outside the server itself (used only for development, tests or examples, not shipped)
vitenpm 5.4.21 HIGH 8 advisories 6.4.26.4.36.4.4+8 more
- HIGHGHSA-587h-7wmj-h5pm CVE-2026-112942launch-editor: `fs.existsSync()` existence check can be bypassed on Windows
- MEDIUMGHSA-v6wh-96g9-6wx3 CVE-2026-53632launch-editor: NTLMv2 hash disclosure via UNC path handling on Windows
- MEDIUMGHSA-r825-w8mm-5pxw CVE-2026-112944launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors
- MEDIUMGHSA-698v-4r3x-3vcv CVE-2026-112943launch-editor: escapeCmdArgs() omits % escaping on Windows
- MEDIUMGHSA-rq7h-c2jc-7f22 CVE-2026-112946Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine
- MEDIUMGHSA-4w7w-66w2-5vf9 CVE-2026-39365Vite Vulnerable to Path Traversal in Optimized Deps `.map` Handling
- MEDIUMGHSA-fx2h-pf6j-xcff CVE-2026-53571vite: `server.fs.deny` bypass on Windows alternate paths
- LOWGHSA-9jrq-w75r-8gcw CVE-2026-112945Vite: Cross origin script execution through Vite custom middleware
@vue/server-renderernpm 3.5.40 HIGH 1 advisory 3.5.423.6.0-rc.6
- HIGHGHSA-g2v6-rqmx-r4w6@vue/server-renderer: XSS via missing CR in attribute-name blacklist
nanoidnpm 3.3.17 HIGH 1 advisory 3.3.185.1.6
- HIGHGHSA-2v37-7h3g-55p8 CVE-2026-67213nanoid: custom generators can loop indefinitely when size is zero
source-map-jsnpm 1.2.1 HIGH 1 advisory 1.2.2
- HIGHGHSA-68fv-2mgg-jv7q CVE-2026-93749source-map-js allows event-loop denial of service through indexed source-map section offsets
mermaidnpm 11.16.0 MEDIUM 5 advisories 10.9.811.16.1
- MEDIUMGHSA-rhh3-jpg6-66xh CVE-2026-71439Mermaid radar diagrams are vulnerable to DoS
- MEDIUMGHSA-6x64-9x62-f2gx CVE-2026-50159Mermaid allows CSS injection applying to sibling elements of the diagram
- MEDIUMGHSA-2v8p-3f2j-5mp7 CVE-2026-71436Mermaid XY Charts are vulnerable to an infinite loop DoS
- MEDIUMGHSA-3rrr-jr9j-h3q3 CVE-2026-71437Mermaid Architecture diagrams are vulnerable to prototype pollution
- LOWGHSA-c4c3-pg64-4m4v CVE-2026-71438Mermaid configuration APIs allow prototype pollution
esbuildnpm 0.21.5 MEDIUM 1 advisory 0.25.0
- MEDIUMGHSA-67mh-4wv8-2f99esbuild enables any website to send any requests to the development server and read the response
dompurifynpm 3.4.13 LOW 5 advisories 3.4.163.4.17
- LOWGHSA-cg2g-xh64-v4q7 CVE-2026-116804DOMPurify SAFE_FOR_TEMPLATES bypass: split template expressions survive in attached shadow root content on DOM output modes
- LOWGHSA-6688-9rhm-gjv2 CVE-2026-109345DOMPurify: IN_PLACE returns a force-removed rawtext root whose text carries attacker markup — pure HTML reparse executes
- LOWGHSA-mrv2-3pqr-j5jr CVE-2026-116803DOMPurify IN_PLACE: hook that removes a parent or sibling leaves the detached subtree's event handlers armed (incomplete fix for GHSA-p98j-92pf-mc4p)
- LOWGHSA-p98j-92pf-mc4p CVE-2026-109344DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves detached subtree event handlers armed, causing DOM XSS
- LOWGHSA-c6gr-qvv4-5v3f CVE-2026-116802DOMPurify: SMIL attributeName=href guard is skipped when PARSER_MEDIA_TYPE is application/xhtml+xml
katexnpm 0.16.47 LOW 1 advisory 0.18.2
- LOWGHSA-238p-pmpm-9mq7 CVE-2026-103923KaTeX: Existing prototype pollution can bypass trust restrictions
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | io.modelcontextprotocol.sdk:mcp ${mcp-sdk.version}, io.modelcontextprotocol.sdk:mcp , io.modelcontextprotocol.sdk:mcp-test ${mcp-sdk.version} |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-10-28 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | Apache-2.0 |
| Created | 2025-04-15 |
| Topics | agent ai framework java maven mcp mcp-server multi-agent-systems spring spring-ai |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.