No description
  • TypeScript 43.5%
  • Go Template 29.6%
  • JavaScript 19.9%
  • Rust 5.5%
  • Shell 1.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-05-21 22:33:13 -04:00
.claude chore(sync): cascade fleet template@9ff8d75 2026-05-18 17:15:42 -04:00
.config chore: remove vscode extension files 2026-05-21 21:29:49 -04:00
.git-hooks chore(sync): cascade fleet template@1c0e274 2026-05-18 11:24:33 -04:00
.github ci: use node 24 artifact upload 2026-05-21 21:20:14 -04:00
.husky chore(sync): cascade lint-rule + AI-fix updates from socket-repo-template 2026-05-09 15:50:50 -04:00
.vscode Support go (#16) 2023-08-18 13:59:50 -05:00
assets chore(sync): fleet scaffolding cascade — oxfmt/oxlint -c config + drift 2026-05-11 08:34:30 -04:00
docs/claude.md chore(sync): cascade fleet template@1198a48 2026-05-18 15:19:47 -04:00
scripts chore: remove vscode extension files 2026-05-21 21:29:49 -04:00
src feat: add cargo dependency scanning 2026-05-21 22:33:13 -04:00
test feat: add cargo dependency scanning 2026-05-21 22:33:13 -04:00
.gitattributes chore(sync): apply remaining canonical fleet drift fixes 2026-05-18 21:22:32 -04:00
.gitignore feat: package zed extension install 2026-05-20 18:23:25 -04:00
.vscodeignore 1.0.0 2023-01-31 11:51:44 -06:00
AGENTS.md docs: add agent instructions 2026-05-20 18:57:25 -04:00
Cargo.lock feat: migrate to zed mcp extension 2026-05-20 16:58:13 -04:00
Cargo.toml feat: migrate to zed mcp extension 2026-05-20 16:58:13 -04:00
CLAUDE.md chore(sync): apply remaining canonical fleet drift fixes 2026-05-18 21:22:32 -04:00
extension.toml feat: add cargo dependency scanning 2026-05-21 22:33:13 -04:00
LICENSE 1.0.0 2023-01-31 11:51:44 -06:00
logo-red.svg 1.0.0 2023-01-31 11:51:44 -06:00
logo-yellow.svg 1.0.0 2023-01-31 11:51:44 -06:00
package.json chore: remove vscode extension files 2026-05-21 21:29:49 -04:00
pnpm-lock.yaml chore: remove vscode extension files 2026-05-21 21:29:49 -04:00
pnpm-workspace.yaml chore: remove vscode extension files 2026-05-21 21:29:49 -04:00
README.md feat: add cargo dependency scanning 2026-05-21 22:33:13 -04:00
tsconfig.check.json chore: remove vscode extension files 2026-05-21 21:29:49 -04:00
tsconfig.json chore: remove vscode extension files 2026-05-21 21:29:49 -04:00
vitest.config.mts chore(test): wire vitest, fleet alignment + dep cleanup 2026-05-07 16:28:54 -07:00
zed-package feat: add cargo dependency scanning 2026-05-21 22:33:13 -04:00

Socket Security Zed Extension

This extension exposes the hosted Socket Security MCP server to Zed's Agent Panel.

Features

  • Registers a Socket Security context server in Zed.
  • Bridges Zed's stdio MCP extension interface to https://mcp.socket.dev/ with mcp-remote.
  • Starts a Socket Security language server for JavaScript, TypeScript, TSX, Python, Go, Rust, JSON, JSONC, TOML, and YAML files.
  • Reports package alerts as LSP diagnostics and renders Socket package data in hover markdown.
  • Scans package.json, requirements.txt, *-requirements.txt, pyproject.toml, go.mod, Cargo.toml, Cargo.lock, and source imports for npm, PyPI, Go, and Cargo package references.
  • Exposes a Zed Configure flow for socket_api_token.

Development

Install Rust with rustup, then build the Zed extension Wasm component with the same target Zed uses internally:

RUSTC="$(rustup which rustc --toolchain stable)" rustup run stable cargo build --target wasm32-wasip2 --release

Packaging

Build a non-dev Zed extension archive and manifest:

node zed-package

Install the precompiled extension into Zed's normal extension directory:

node zed-package --install

Restart Zed after installing so it reloads the extension index. This path installs a precompiled extension.wasm component and does not rely on Zed compiling the Rust extension.

The installer writes:

  • build/zed/dist/archive.tar.gz
  • build/zed/dist/manifest.json
  • build/zed/package/extension.wasm
  • ~/Library/Application Support/Zed/extensions/installed/socket-security
  • ~/Library/Application Support/Zed/extensions/work/socket-security/src/zed-lsp

Zed shows local non-registry extensions in the dev/local section of the Extensions view. The Rebuild button is not needed after this install path.

Configuration

Open the extension in Zed's Extensions view and choose Configure. Enter your Socket API token in socket_api_token.

The setting is stored under context_servers.socket-security.settings.socket_api_token in Zed settings. Package diagnostics also read that value, so the same token powers both the MCP server and LSP package analysis.

The language server still accepts SOCKET_API_TOKEN from the process environment. The legacy aliases api_token, SOCKET_API_KEY, SOCKET_SECURITY_API_TOKEN, and SOCKET_SECURITY_API_KEY are also accepted for one-cycle compatibility.

Testing

After node zed-package --install, restart Zed and open a project containing one of:

  • package.json
  • requirements.txt
  • pyproject.toml
  • go.mod
  • Cargo.toml
  • Cargo.lock
  • JavaScript, TypeScript, TSX, Python, Go, or Rust source imports

Hover a package name or import to see Socket package data. Packages with Socket alerts should also produce LSP diagnostics.

To debug loading issues, run zed: open log and search for socket-security, socket-security-lsp, or extension_host.