Rails Ast — 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": "rails-ast-mcp-server",
"source": {
"kind": "package",
"origin": "rails-ast-mcp-server"
},
"server": {
"name": "rails-ast-mcp-server"
}
},
"grade": "A",
"score": {
"score": 92,
"threatScore": 99,
"grade": "A",
"band": "A",
"categorySubtotals": {
"injection": 0,
"exfiltration": 0,
"permissions": 0,
"supply-chain": 1.2,
"network": 0,
"hygiene": 0
},
"vector": [
{
"kind": "threat",
"ruleId": "MTC-SUP-010",
"category": "supply-chain",
"severity": "low",
"confidence": "heuristic",
"rawWeight": 3,
"confidenceMult": 0.4,
"diminishingFactor": 1,
"appliedPenalty": 1.2
},
{
"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 (16 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-SRC-002",
"title": "Shell/command execution in server code (dist/ruby-parser-native.js)",
"category": "permissions",
"severity": "high",
"confidence": "strong",
"description": "In the server's implementation (`dist/ruby-parser-native.js:5`): 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": "dist/ruby-parser-native.js"
},
"evidence": ", execSync } from 'node:child_process'; import { fileURLToPath } from 'node:url'; import { dirname, join } from 'node:pa",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "dist/ruby-parser-native.js",
"line": 5,
"nonRuntime": false
}
},
{
"ruleId": "MTC-SRC-002",
"title": "Shell/command execution in packaging/dev tooling (scripts/postinstall-check.js)",
"category": "permissions",
"severity": "low",
"confidence": "heuristic",
"description": "In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/postinstall-check.js:3`): 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": "scripts/postinstall-check.js"
},
"evidence": "{ execSync } from 'node:child_process'; import { existsSync } from 'node:fs'; import { join, dirname } from 'node:path';",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-002",
"file": "scripts/postinstall-check.js",
"line": 3,
"nonRuntime": true
}
},
{
"ruleId": "MTC-SUP-010",
"title": "Package runs install-time scripts (postinstall)",
"category": "supply-chain",
"severity": "low",
"confidence": "heuristic",
"description": "\"rails-ast-mcp-server\" executes postinstall script(s) at install time. An install hook runs at install time; most are routine build/setup, but review what it does before trusting it.",
"remediation": "Review the scripts; install with --ignore-scripts where possible and vet what they do.",
"location": {
"kind": "package",
"name": "rails-ast-mcp-server"
},
"evidence": "node scripts/postinstall-check.js",
"owasp": "LLM03:2025 Supply Chain",
"references": [
"https://github.com/ossf/package-analysis",
"https://owasp.org/www-project-top-10-ci-cd-security-risks/"
],
"data": {
"scripts": [
"postinstall"
]
}
}
],
"toxicFlows": [],
"capabilities": [
{
"tool": "search_symbols",
"tags": [],
"reasons": {}
},
{
"tool": "get_snippet",
"tags": [],
"reasons": {}
},
{
"tool": "call_graph",
"tags": [],
"reasons": {}
},
{
"tool": "find_similar",
"tags": [],
"reasons": {}
},
{
"tool": "find_tests",
"tags": [],
"reasons": {}
},
{
"tool": "reindex",
"tags": [],
"reasons": {}
},
{
"tool": "get_index_status",
"tags": [],
"reasons": {}
},
{
"tool": "db_tables",
"tags": [],
"reasons": {}
},
{
"tool": "db_table",
"tags": [],
"reasons": {}
},
{
"tool": "db_table_relations",
"tags": [],
"reasons": {}
},
{
"tool": "db_suggest_associations",
"tags": [],
"reasons": {}
},
{
"tool": "graph_find_nodes",
"tags": [],
"reasons": {}
},
{
"tool": "graph_neighbors",
"tags": [],
"reasons": {}
},
{
"tool": "graph_explain",
"tags": [],
"reasons": {}
},
{
"tool": "get_definition",
"tags": [],
"reasons": {}
},
{
"tool": "list_rails",
"tags": [],
"reasons": {}
}
],
"surfaceDigest": "f2653cb0d5e79e91f75e4184bd75beca41428be1dec6e1b49a7a178935d329c2",
"stats": {
"tools": 16,
"prompts": 0,
"resources": 0,
"findingsBySeverity": {
"critical": 0,
"high": 1,
"medium": 0,
"low": 2,
"info": 0
}
}
}