Back to Home
Mnehmos icon

trace-mcp

Verified Safe

by Mnehmos

Overview

Static analysis engine for detecting schema mismatches between data producers (MCP tools) and consumers (client code), offering code generation and continuous validation.

Installation

Run Command
node dist/index.js

Environment Variables

  • DEBUG_TRACE_MCP

Security Notes

The server performs extensive local file system operations (read/write) based on user-provided paths for `rootDir`, `filePath`, `producerDir`, `consumerDir`, and `projectDir`. While `path.resolve` is used for normalization, an attacker with local access and appropriate file system permissions could exploit path traversal vulnerabilities (e.g., using `../../`) to read or modify files outside the intended project directories, especially with `addContractComments` (which modifies source files) and `init_project` (which creates project structures). The `json_schema` parser reads arbitrary JSON files, which could lead to denial-of-service if extremely large or malformed JSON is supplied. Communication is via standard I/O (stdio), which limits direct network exposure, but careful handling of user input is critical if integrated into other services.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2025-12-11

Tags

Static AnalysisSchema ValidationCode QualityDeveloper ToolsCode Generation