# mcprism for VS Code Run a static MCP server source scan from VS Code and review file findings in the Problems panel. mcprism detects tool-controlled input reaching supported command, network and filesystem sinks, and checks source files for hardcoded secrets. Findings link back to the relevant code. - Scans run only when you invoke **mcprism: Scan Workspace**. - The extension calls the locally installed `mcprism` CLI; it does not bundle the scanner, launch MCP servers, or upload workspace source. - Multi-root workspaces are scanned folder by folder. Long scans can be cancelled, and results from completed folders remain visible. Requires VS Code 1.85 or later and the `mcprism` CLI. Install the CLI using the [main installation guide](../../README.md#install) before running a scan. ## Install from GitHub Releases New CLI releases include a matching `mcprism-vscode-.vsix` asset on the project's [GitHub Releases](https://github.com/HUA503/mcprism/releases) page. In VS Code, run **Extensions: Install from VSIX...** and select the downloaded file. Its SHA-256 checksum is included in the release's `checksums.txt` file. Older releases may not have a VSIX asset; use the source packaging instructions below for those versions. Marketplace publishing is prepared but disabled until the `hua503` publisher configures Trusted Publishing for `.github/workflows/release.yml` and the repository variable `VSCODE_MARKETPLACE_PUBLISH=true`. After that one-time setup, new CLI releases also publish the matching extension to the Marketplace. Until then, install the VSIX from GitHub Releases manually. Trusted Publishing setup is documented by [VS Code](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#publish-with-github-actions-and-trusted-publishing). Create a policy for GitHub owner `HUA503`, repository `mcprism`, workflow `release.yml`, with no environment, then set the repository Actions variable under **Settings → Secrets and variables → Actions → Variables**. The `hua503` Marketplace publisher must exist and be managed by the project owner before turning on the variable; tagged releases then publish the matching version. For local development, package the extension from this directory with `npx @vscode/vsce package`. ## Use Open an MCP server source workspace, then run **mcprism: Scan Workspace** from the Command Palette. In a multi-root workspace, each folder is scanned in turn. Findings with source locations appear in Problems; other findings and scan details appear in the mcprism output channel. The progress notification can cancel a running scan; findings from completed folders remain in Problems. If the CLI is not on `PATH`, set `mcprism.executablePath` in VS Code settings to its full path. If a scan cannot find the CLI, the extension offers shortcuts to the install guide and this setting. Static findings are best-effort security signals, not proof that a server is safe. ## Develop Open this directory in VS Code and press **F5** to launch an Extension Development Host. Install the CLI separately and open a supported source tree in the development host before running the command.