ToolTrust
C25/100
mksglu

context-mode

mcp1.0.169

@mksglu

Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.

By mksglu | 30 findings | Scanned 9/11/2026 | tooltrust-scanner/v0.3.19 | 22.0k

3 Critical6 Low21 Info

Risk Summary

Needs Approval

Dep Visibility plus Excessive Permissions raises enough risk that this tool should not be auto-trusted.

Potential impact: This finding indicates the tool should be reviewed before it is trusted.

Recommended action: Keep this tool behind manual approval and avoid unattended runs until the risky capabilities are narrowed or removed.

Suggested policy: keep this tool behind manual approval, do not allow unattended runs, and re-scan after narrowing risky permissions.

Security Findings (30)

  • CriticalAS-006

    💻Arbitrary Code Execution ×3

    heuristic signal

    tool name or description implies arbitrary script/code execution (evaluate_script, execute javascript, etc.)

    ctx_executectx_execute_filectx_batch_execute

    Fix: This tool can execute arbitrary code or shell commands on the host system. Remove it unless strictly required. If kept: (1) restrict access to trusted users/agents only, (2) require human approval before each invocation (Claude Desktop: set approval_required: true; other clients: enable equivalent confirmation), (3) use the most restrictive sandbox or read-only mode available, and (4) never expose this tool to untrusted input sources.

  • LowAS-011

    ℹ️Missing Rate-Limit / Timeout ×6

    tool performs network or execution operations but declares no rate-limit, timeout, or retry configuration

    ctx_indexctx_searchctx_fetch_and_indexctx_doctorctx_upgradectx_insight

    Fix: Declare explicit rate-limit, timeout, and retry configuration for all network and execution tools. Implement exponential back-off and surface resource state to the calling agent.

  • InfoAS-002

    ⚠️Excessive Permissions ×10

    declared capabilities: code/command execution, filesystem access, database access

    ctx_executectx_index

    declared capabilities: code/command execution, filesystem access, HTTP requests

    ctx_execute_file

    declared capabilities: code/command execution, network access, filesystem access, database access

    ctx_searchctx_batch_execute

    declared capabilities: network access, database access

    ctx_fetch_and_index

    declared capabilities: code/command execution

    ctx_doctor

    declared capabilities: code/command execution, HTTP requests

    ctx_upgrade

    declared capabilities: filesystem access

    ctx_purge

    declared capabilities: network access

    ctx_insight

    Fix: Tool requests broad permissions (exec/fs/network). Validate input parameters using Enums where possible, and restrict file system operations to explicit allowed directories.

  • InfoAS-014

    ℹ️Dependency Inventory Unavailable ×11

    No metadata.dependencies or repo_url were exposed by this MCP server, and no local project manifest could be inferred from the launch command.

    ctx_executectx_execute_filectx_indexctx_searchctx_fetch_and_indexctx_batch_executectx_statsctx_doctorctx_upgradectx_purgectx_insight

    Fix: Review and remediate the identified issue.

Scan this tool yourself

Reproduce this audit locally, integrate into CI, or let your agent audit its own tools.

Install once, then scan any MCP server:

$ curl -sfL https://raw.githubusercontent.com/AgentSafe-AI/tooltrust-scanner/main/install.sh | bash
$ tooltrust-scanner scan --server "npx -y context-mode"

Adjust the package name if your npm registry name differs from the tool ID. View source

Add badge to your README

Copy this Markdown to show your ToolTrust grade on GitHub.

[![ToolTrust Grade C](https://raw.githubusercontent.com/AgentSafe-AI/tooltrust-directory/main/docs/badges/grade-c.svg)](https://github.com/AgentSafe-AI/tooltrust-directory)