second-desk-trust
OfficialSecond Desk Trust
Check a tool before you trust it: verify the package, audit the config, scan the code, then decide.
I build and run MCP servers for a living, and I kept hitting the same problem from the other side. Someone hands my assistant a new server, a config file tells it to run a command I have never seen, and nothing anywhere stops to ask whether any of it is safe. So I built the check I wanted. This server answers the questions I now ask before anything new gets near my machine. Is this MCP server safe to install? Does the package do what its description claims? Is there a leaked API key sitting in the code? Does my MCP config hand a server my whole drive? It runs six tools, every audit is read only, and it never prints a secret value. A finding names the key or the kind of secret and stops there.
The capsule half grows out of CapsuleKit, my own earlier build. A capsule is a package that seals itself: a manifest that says exactly what the thing is and does, a hash for every file, and proof checks bundled inside. This server inspects and verifies capsules, and the same folder carries the newer audits for everything that is not sealed, which today is most things.
Tools
Tool | What it returns |
| A capsule's self description in one read: identity, exact does and does not purpose statements, capabilities, requirements, provenance including whether a human confirmed the claims, its bundled proof checks, and its file inventory. Runs nothing. |
| The verdict on a capsule: VERIFIED, FAILED, or INVALID, after validating the manifest, recomputing every file hash and the manifest digest, and, in full mode, re running its bundled proof checks in separate processes. Static mode runs no code. |
| A per server report on an MCP client config: commands that do not resolve, argument paths that do not exist, secrets stored as plain text, entries that start through a shell, and arguments that hand over the whole drive or home folder. |
| A scan of a local folder before you install it: executable files, install and setup scripts including npm install hooks, code that opens network connections with file and line for each hit, and secret shaped strings reported by kind and location, never by value. |
| One light check of a website you own or are authorized to test: security headers present and missing, TLS certificate facts, server and generator version signals, and status codes for /.env, /.git/HEAD, /.git/config, and /wp-config.php.bak. A handful of requests, status codes and header facts only. |
| One verdict on a folder: the package audit, plus the capsule inspection and a static verification when the folder holds a capsule manifest, grouped into a headline and its concerns. |
Related MCP server: mcpgawk
Setup
Clone this repo.
Install the one dependency, the MCP SDK:
pip install -r requirements.txtRun it:
python mcp_server.pyfor stdio, orpython mcp_server.py --transport streamable-http --port 8796for HTTP. The HTTP transport also answersGET /health.Point your MCP client at it. There is no key, no account, and no configuration of its own. Every tool takes the path or the URL you pass it.
Run the tests with python -m unittest discover -s tests -v. Sixteen tests, all passing. One of them takes about a minute because it runs the demo capsule's own bundled test suite inside a full verification, which is the point of the exercise.
Examples
These are real outputs from my own test runs. The full record is in TEST-EVIDENCE.md.
capsule_verify on SealPath, a capsule I sealed with CapsuleKit, full mode. Verdict VERIFIED. Digest ok, hashes 32 of 32 ok, and all three bundled proof checks pass: imports, bundled-tests, engine-smoke. Change one byte in one file and the same call comes back FAILED with that file named. I know because that tamper case is one of the tests.
capsule_inspect on the same capsule, for the quick read before the deep one: identity seconddesk/sealpath, 32 files, 227,646 bytes, no structure errors.
mcp_config_audit on a config I wrote for the test fixture, with one planted problem of each kind across five server entries. It found all of them: 3 high findings (a command that does not resolve, a token stored as plain text with the key named and the value never shown, and an argument that hands over the whole drive) and 3 medium (a missing argument path, and a shell entry flagged for both the shell command and its -c argument).
package_audit on a fixture folder with planted problems: 1 executable (run.sh), 1 install script (setup.py), 3 places where code opens network connections (net.py, lines 3, 7, and 12), and 2 secret shaped strings (secret.py line 7 shaped like a GitHub token, line 8 a password assignment). Kinds and locations only. The planted values appear nowhere in the report.
site_security_check on my own site, seconddesk.onrender.com. Status 200. All six standard security headers present, none missing. The Server header says cloudflare. All four exposure paths answered 404. TLS 1.3, certificate issued by Google Trust Services, valid through February 17, 2027. Five requests total, which is all this check ever makes.
trust_report on the fixture folder: headline "Concerns found. Read the findings before use." followed by the three grouped concerns, one each for the secrets, the install script, and the network code.
Limits
The config audit checks commands and paths against the machine this server runs on. Run it where your MCP client runs, or the answers describe the wrong machine.
The package audit reads code as text and matches the patterns it knows. A clean scan means nothing it knows about was found. It is not proof a package is safe. The walk caps at 5,000 files and skips .git, node_modules, and virtual environment folders.
The site check is a light defensive check, not a penetration test. It sends a handful of requests and records headers and status codes. A clean result means these specific things looked right and nothing more. Only use it on sites you own or are authorized to test.
Full mode capsule verification runs the capsule's own proof checks in separate processes with a scrubbed environment. That is process isolation, not a sandbox. For a capsule from a source you do not trust yet, use static mode, or inspect first and decide.
Secret findings are pattern matches. A hit can turn out to be a fake or a test value, and a miss is not a guarantee. Either way, the value itself is never read out, here or anywhere else in these tools.
License
MIT. See LICENSE.
Available Tools
6 toolscapsule_inspectA
Read a capsule's self description in one call: identity, exact purpose statements (does and does_not), capabilities with typed inputs and outputs, interfaces, requirements, provenance (including whether a human confirmed the claims), the proof checks it bundles, and its file inventory. Executes nothing and hashes nothing. Use it to decide whether a sealed package is relevant before trusting it.
Inputs: path (required).
capsule_verifyA
Verify a capsule: validate its manifest structure, recompute its content hashes and manifest digest, and in full mode re run its bundled proof checks in separate processes. Returns the verdict object: VERIFIED, FAILED, or INVALID, with per file and per check detail. Use static mode when the capsule comes from an untrusted source and its checks should not execute.
Inputs: path (required), mode.
mcp_config_auditA
Audit an MCP client config file before you rely on it. Give the path to the JSON config. For every server entry the report flags: a command that does not resolve on this machine, argument paths that do not exist, env values that look like secrets stored as plain text (the key is named, the value is never shown), entries that start through a shell, and arguments that hand a server the whole drive or the whole home folder. Nothing named in the config is run.
Inputs: path (required).
package_auditA
Scan a local folder before you install or run what is in it. Give the folder path. The report lists executable files, install and setup scripts (including npm install hooks), code that opens network connections with the file and line for each hit, and secret shaped strings with the kind of secret and where it sits. The values of secrets are never read out. Nothing in the folder is executed.
Inputs: path (required).
site_security_checkA
One light security check of a website you own or are authorized to test. Give the full URL. The check makes a handful of requests with an honest user agent and reports: which standard security headers are present and which are missing, the TLS certificate facts on https sites, server and generator version signals, and the status codes of a small fixed list of well known exposure paths such as /.env and /.git/HEAD. Status codes and header facts only. No payloads, no credential attempts, no exploitation, nothing beyond those few requests. Only use it on sites you own or are authorized to test.
Inputs: url (required).
trust_reportA
One verdict on a folder. Give the folder path. Runs the package audit, and when the folder holds a capsule manifest, adds the capsule inspection and a static verification (structure, digest, and hashes; the bundled proof checks are not run inside a combined report). Returns a headline, the grouped concerns, and the full findings behind them.
Inputs: path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The three capsule/folder tools have real conceptual overlap, but the descriptions draw clean lines: capsule_inspect only reads, capsule_verify verifies (with an explicit static/full mode), and trust_report is transparently a composite that defers to the others and explicitly notes proof checks are not run. mcp_config_audit, package_audit, and site_security_check target clearly different artifacts (config file, local folder, remote URL). The only residual risk is an agent choosing trust_report vs. calling package_audit plus capsule_verify directly.
All names are snake_case with a consistent subject_action shape, and the capsule_* pair is prefixed cleanly. Minor deviation: trust_report lacks the artifact prefix that the other five tools carry (package_, capsule_, mcp_config_, site_), so its scope is less self-evident from the name alone.
Six tools is well within the sweet spot, and each covers a distinct artifact class or abstraction level (folder verdict, folder scan, capsule read, capsule verify, MCP config, website). No filler tools and no obvious area over-served.
The audit lifecycle is covered for all four artifact types with sensible safe-by-default modes (nothing is executed unless asked). Gaps are minor: there is no way to seal or build a capsule, no schema/shape reference for the return objects, and no combined report path for MCP configs or sites equivalent to trust_report, but agents can compose the existing calls.
Maintenance
Related MCP Connectors
Audit your MCP servers for poisoned tools and leaked secrets, and check AI-generated code for flaws.
Scan any MCP server for tool-poisoning, security, auth & license. Trust score before install.
Scan AI agent skills, MCP server packages and MCP configs before you install them. Static analysis.
Pre-install security scans for npm packages, MCP servers, and AI agents with cited verdict evidence.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP security server for AI coding agents. 12 tools: pre-install guardian, vulnerability audit, supply-chain attack detection via static code analysis, and CycloneDX 1.6 SBOM generation. Zero runtime dependencies.1578 npm15Apache 2.0
- AlicenseNot gradedqualityBmaintenanceThis MCP server lets agents inspect every Model Context Protocol server on the machine, verify tools by running them in a sandbox, and check each call against a human-approved baseline so that changed or newly appeared tools are blocked before they execute. It also surfaces token cost, capability facts, and drift history for each tool entirely locally, without uploading inventory or requiring an account.1Apache 2.0
- AlicenseNot gradedqualityCmaintenanceAn MCP server that audits voice-assistant tools for prompt injection, tool poisoning, privacy leaks and speech-unfriendly answers. It exposes scanning, PII/link checks, voice rewriting and server-audit tools so users can test whether MCP tools are safe and voice-ready.MIT
- AlicenseNot gradedqualityCmaintenanceEnables developers to audit local MCP server code for prompt injection surfaces, unconstrained shell execution, hardcoded secrets, and JSON-RPC schema issues, and to fuzz system prompts against jailbreak payloads. It also generates Shields.io-compatible verification badges for embedding in repository READMEs.27 npmApache 2.0