Python Lsp — the complete, unedited output of the deterministic mcptrustchecker engine v1.9.0, scanned . Every finding, capability tag and score component below is exactly what the engine produced — no AI, no post-processing.
{
"tool": {
"name": "mcptrustchecker",
"version": "1.9.0",
"methodologyVersion": "mcptrustchecker-1.9"
},
"target": {
"id": "python-lsp-mcp",
"source": {
"kind": "package",
"origin": "python-lsp-mcp"
},
"server": {
"name": "python-lsp-mcp"
}
},
"grade": "A",
"score": {
"score": 93,
"threatScore": 100,
"grade": "A",
"band": "A",
"categorySubtotals": {
"injection": 0,
"exfiltration": 0,
"permissions": 0,
"supply-chain": 0,
"network": 0,
"hygiene": 0
},
"vector": [
{
"kind": "client",
"term": "capability-exposure",
"level": "high",
"label": "capability blast radius (high) — client exposure if the model is manipulated",
"appliedPenalty": 6
},
{
"kind": "client",
"term": "verification-discount",
"level": "repo",
"label": "publisher verification (public source) — no provenance, but the source is public and inspectable",
"appliedPenalty": 1
},
{
"kind": "client",
"term": "coverage-honesty",
"level": "source",
"label": "inspection depth (source) — how much of the target the scan could see",
"appliedPenalty": 0
}
],
"gatesFired": [],
"methodologyVersion": "mcptrustchecker-1.9"
},
"capability": {
"level": "high",
"reasons": [
"can execute shell commands or code"
],
"tags": [
"code-exec"
]
},
"coverage": {
"level": "source",
"inputs": {
"toolSurface": true,
"implementationSource": true,
"packageMetadata": true,
"liveTransport": false
},
"caveats": [
"Tools were statically extracted from the published source (21 recovered), not enumerated from a running server. Tool-poisoning, Unicode-smuggling, capability and toxic-flow analysis ran on this inferred surface, but a mis-parsed registration could be missed or mis-attributed, so tool-derived findings are capped below “confirmed”. To grade the real runtime surface, scan the running server: --command \"npx -y <package>\"."
]
},
"findings": [
{
"ruleId": "MTC-CAP-001",
"title": "Tool \"run_code_action\" exposes command/code execution",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "Tool \"run_code_action\" appears to run shell commands or evaluate code (keyword \"run_code\" in tool name). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.",
"remediation": "Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.",
"location": {
"kind": "tool",
"name": "run_code_action"
},
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"tags": [
"code-exec"
]
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/rope_mcp/lsp/client.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/rope_mcp/lsp/client.py:37`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
"remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
"location": {
"kind": "server",
"name": "src/rope_mcp/lsp/client.py"
},
"evidence": "self._process = subprocess.Popen( [\"pyright-langserver\", \"--stdio\"], stdin=subpr",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/rope_mcp/lsp/client.py",
"line": 37,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/rope_mcp/pyright_client.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/rope_mcp/pyright_client.py:19`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
"remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
"location": {
"kind": "server",
"name": "src/rope_mcp/pyright_client.py"
},
"evidence": "y: result = subprocess.run( [\"pyright\", \"--version\"], capture_output=True,",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/rope_mcp/pyright_client.py",
"line": 19,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/rope_mcp/rope_client.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/rope_mcp/rope_client.py:28`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
"remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
"location": {
"kind": "server",
"name": "src/rope_mcp/rope_client.py"
},
"evidence": "try: result = subprocess.run( [ python_executable, \"-c\",",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/rope_mcp/rope_client.py",
"line": 28,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in server code (src/rope_mcp/tools/search.py)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`src/rope_mcp/tools/search.py:47`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
"remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
"location": {
"kind": "server",
"name": "src/rope_mcp/tools/search.py"
},
"evidence": "try: result = subprocess.run( rg_args, capture_output=True, text=True,",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "src/rope_mcp/tools/search.py",
"line": 47,
"nonRuntime": false
}
},
{
"ruleId": "MTC-CAP-005",
"title": "Mutating tool \"run_code_action\" declares no destructiveHint",
"category": "hygiene",
"severity": "low",
"confidence": "heuristic",
"description": "Tool \"run_code_action\" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.",
"remediation": "Declare accurate annotations, and gate destructive tools on user confirmation regardless.",
"location": {
"kind": "tool",
"name": "run_code_action"
},
"data": {
"tags": [
"code-exec"
]
}
},
{
"ruleId": "MTC-SUP-012",
"title": "Package has no license",
"category": "hygiene",
"severity": "info",
"confidence": "strong",
"description": "\"python-lsp-mcp\" has no declared license. This is a legal/reuse concern, not a security finding.",
"location": {
"kind": "package",
"name": "python-lsp-mcp"
}
}
],
"toxicFlows": [],
"capabilities": [
{
"tool": "switch_workspace",
"tags": [],
"reasons": {}
},
{
"tool": "hover",
"tags": [],
"reasons": {}
},
{
"tool": "definition",
"tags": [],
"reasons": {}
},
{
"tool": "references",
"tags": [],
"reasons": {}
},
{
"tool": "completions",
"tags": [],
"reasons": {}
},
{
"tool": "symbols",
"tags": [],
"reasons": {}
},
{
"tool": "rename",
"tags": [],
"reasons": {}
},
{
"tool": "move",
"tags": [],
"reasons": {}
},
{
"tool": "change_signature",
"tags": [],
"reasons": {}
},
{
"tool": "function_signature",
"tags": [],
"reasons": {}
},
{
"tool": "diagnostics",
"tags": [],
"reasons": {}
},
{
"tool": "signature_help",
"tags": [],
"reasons": {}
},
{
"tool": "update_document",
"tags": [],
"reasons": {}
},
{
"tool": "inlay_hints",
"tags": [],
"reasons": {}
},
{
"tool": "code_action",
"tags": [],
"reasons": {}
},
{
"tool": "run_code_action",
"tags": [
"code-exec"
],
"reasons": {
"code-exec": [
"keyword \"run_code\" in tool name"
]
}
},
{
"tool": "search",
"tags": [],
"reasons": {}
},
{
"tool": "set_backend",
"tags": [],
"reasons": {}
},
{
"tool": "set_python_path",
"tags": [],
"reasons": {}
},
{
"tool": "status",
"tags": [],
"reasons": {}
},
{
"tool": "reload_modules",
"tags": [],
"reasons": {}
}
],
"surfaceDigest": "d9041735c69c4da0cb2ed78fc346544be3a4cfc7e6614a7d2d49995f9f4f85d4",
"stats": {
"tools": 21,
"prompts": 0,
"resources": 0,
"findingsBySeverity": {
"critical": 0,
"high": 5,
"medium": 0,
"low": 1,
"info": 1
}
}
}