Legal Context — the complete, unedited output of the deterministic mcptrustchecker engine v1.13.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.13.0",
"methodologyVersion": "mcptrustchecker-1.13"
},
"target": {
"id": "@protomated/legal-context",
"source": {
"kind": "package",
"origin": "@protomated/legal-context"
},
"server": {
"name": "@protomated/legal-context"
}
},
"grade": "A",
"score": {
"score": 99,
"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": "minimal",
"label": "capability blast radius (minimal) — client exposure if the model is manipulated",
"appliedPenalty": 0
},
{
"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.13"
},
"capability": {
"level": "minimal",
"reasons": [],
"tags": []
},
"coverage": {
"level": "source",
"inputs": {
"toolSurface": true,
"implementationSource": true,
"packageMetadata": true,
"liveTransport": false
},
"caveats": [
"Tools were statically extracted from the published source (11 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-005",
"title": "Dynamic module load from a non-literal (bin/legal-context.js)",
"category": "permissions",
"severity": "medium",
"confidence": "heuristic",
"description": "In the server's implementation (`bin/legal-context.js:9`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. 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": "bin/legal-context.js"
},
"evidence": "ute the server with Bun import(serverPath).catch(err => { console.error('Error starting LegalContext:'); console.err",
"owasp": "LLM05:2025 Improper Output Handling",
"data": {
"rule": "MTC-SRC-005",
"file": "bin/legal-context.js",
"line": 9,
"nonRuntime": false
}
}
],
"toxicFlows": [],
"capabilities": [
{
"tool": "contract_risk_analysis",
"tags": [],
"reasons": {}
},
{
"tool": "document_summarization",
"tags": [],
"reasons": {}
},
{
"tool": "document_search",
"tags": [],
"reasons": {}
},
{
"tool": "document_metadata",
"tags": [],
"reasons": {}
},
{
"tool": "document_content",
"tags": [],
"reasons": {}
},
{
"tool": "semantic_document_search",
"tags": [],
"reasons": {}
},
{
"tool": "index_document",
"tags": [],
"reasons": {}
},
{
"tool": "legal_query",
"tags": [],
"reasons": {}
},
{
"tool": "case_law_search",
"tags": [],
"reasons": {}
},
{
"tool": "precedent_analysis",
"tags": [],
"reasons": {}
},
{
"tool": "rag_query",
"tags": [],
"reasons": {}
}
],
"surfaceDigest": "bda19fab0755ba6e321a27b83067b0b73d2a8e9374a8a8689c8d9748b11feeca",
"stats": {
"tools": 11,
"prompts": 0,
"resources": 0,
"findingsBySeverity": {
"critical": 0,
"high": 0,
"medium": 1,
"low": 0,
"info": 0
}
}
}