MCP Server Builder
anthropics/skills
Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.
Wrap any code edit with before/after diagnostic comparison. An agent skill from blackwell-systems/agent-lsp.
$ npx skills add blackwell-systems/agent-lsp --skill lsp-safe-edit -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install blackwell-systems/agent-lsp lsp-safe-edit --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/blackwell-systems/agent-lsp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/lsp-safe-edit .claude/skills/lsp-safe-edit && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "lsp-safe-edit" agent skill from https://github.com/blackwell-systems/agent-lsp/tree/main/skills/lsp-safe-edit into .claude/skills/lsp-safe-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lsp-safe-edit", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/blackwell-systems/agent-lsp/tree/main/skills/lsp-safe-editType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add blackwell-systems/agent-lsp --skill lsp-safe-edit -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install blackwell-systems/agent-lsp lsp-safe-edit --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/blackwell-systems/agent-lsp.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/lsp-safe-edit .agents/skills/lsp-safe-edit && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "lsp-safe-edit" agent skill from https://github.com/blackwell-systems/agent-lsp/tree/main/skills/lsp-safe-edit into .agents/skills/lsp-safe-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lsp-safe-edit", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add blackwell-systems/agent-lsp --skill lsp-safe-edit -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install blackwell-systems/agent-lsp lsp-safe-edit --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/blackwell-systems/agent-lsp.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/lsp-safe-edit .cursor/skills/lsp-safe-edit && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "lsp-safe-edit" agent skill from https://github.com/blackwell-systems/agent-lsp/tree/main/skills/lsp-safe-edit into .cursor/skills/lsp-safe-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lsp-safe-edit", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/blackwell-systems/agent-lsp.git --path skills/lsp-safe-edit--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add blackwell-systems/agent-lsp --skill lsp-safe-edit -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install blackwell-systems/agent-lsp lsp-safe-edit --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/blackwell-systems/agent-lsp.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/lsp-safe-edit .gemini/skills/lsp-safe-edit && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "lsp-safe-edit" agent skill from https://github.com/blackwell-systems/agent-lsp/tree/main/skills/lsp-safe-edit into .gemini/skills/lsp-safe-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lsp-safe-edit", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install blackwell-systems/agent-lsp lsp-safe-editInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add blackwell-systems/agent-lsp --skill lsp-safe-edit -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/blackwell-systems/agent-lsp.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/lsp-safe-edit .github/skills/lsp-safe-edit && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "lsp-safe-edit" agent skill from https://github.com/blackwell-systems/agent-lsp/tree/main/skills/lsp-safe-edit into .github/skills/lsp-safe-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lsp-safe-edit", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add blackwell-systems/agent-lsp --skill lsp-safe-edit -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install blackwell-systems/agent-lsp lsp-safe-edit --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/blackwell-systems/agent-lsp.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/lsp-safe-edit .opencode/skills/lsp-safe-edit && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "lsp-safe-edit" agent skill from https://github.com/blackwell-systems/agent-lsp/tree/main/skills/lsp-safe-edit into .opencode/skills/lsp-safe-edit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lsp-safe-edit", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
lsp-safe-editWrap any code edit with before/after diagnostic comparison. An agent skill from blackwell-systems/agent-lsp.
Lsp Safe Edit is an agent skill from blackwell-systems/agent-lsp. Wrap any code edit with before/after diagnostic comparison. Speculatively previews the change first (previewedit), then applies to disk only if the error delta is acceptable. If post-edit errors appear, surfaces code actions for quick fixes. Handles single and multi-file edits.
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/patterns.md`). Compatibility notes: Requires the agent-lsp MCP server (github.com/blackwell-systems/agent-lsp)
It sits in Agent Workflows. It works with Model Context Protocol. The repository describes itself as: MCP server that orchestrates language servers into agent-native workflows. 65 tools, 30 CI-verified languages. The licence is MIT.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 38ca488. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
mcp__lsp__start_lspmcp__lsp__open_documentmcp__lsp__get_diagnosticsmcp__lsp__preview_editmcp__lsp__simulate_chainmcp__lsp__suggest_fixesmcp__lsp__format_documentmcp__lsp__apply_editEditWrite…and 1 more on the same allowed-tools line.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Requires the agent-lsp MCP server (github.com/blackwell-systems/agent-lsp)
From compatibility in the SKILL.md frontmatter.
Lsp Safe Edit loads about 2.5k tokens when it runs, and up to ~3k if it reads all its reference files. Until then it costs about 73 tokens; SKILL.md has 852 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: mcp__lsp__start_lsp, mcp__lsp__open_document, mcp__lsp__get_diagnostics, mcp__lsp__preview_edit, mcpAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from blackwell-systems/agent-lsp at commit 38ca488, republished under its MIT licence (© blackwell-systems). 852 words, ~2,467 tokens.
.claude/skills/lsp-safe-edit/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Requires the agent-lsp MCP server.
Wrap any code edit with a before/after diagnostic comparison. Speculatively previews the change in-memory before touching disk, then diffs errors introduced vs. resolved after applying. If errors appear, surfaces code actions to fix them.
LSP must be running for the target workspace. If not yet initialized, call
mcp__lsp__start_lsp with the workspace root before proceeding.
Auto-init note: agent-lsp supports workspace auto-inference from file paths.
Explicit start_lsp is only needed when switching workspace roots.
Call mcp__lsp__open_document for each file that will be edited:
mcp__lsp__open_document(file_path: "/abs/path/to/file.go", language_id: "go")Call mcp__lsp__get_diagnostics for each target file. Store as BEFORE.
For multi-file edits, collect diagnostics for all files involved.
BEFORE = mcp__lsp__get_diagnostics(file_path: "/abs/path/to/file.go")If the server returns an empty list immediately after open, wait briefly and retry — LSP analysis is async.
Before touching disk, call mcp__lsp__preview_edit to preview the
error delta of the intended change:
mcp__lsp__preview_edit(
file_path: "/abs/path/to/file.go",
start_line: <N>,
start_column: <col>,
end_line: <N>,
end_column: <col>,
new_text: "<replacement text>"
)Returns net_delta (new errors introduced minus errors resolved) without
writing to disk.
Decision:
net_delta | Action |
|---|---|
| ≤ 0 | Proceed — edit improves or does not worsen error state |
| > 0 | Pause. Report introduced errors to user and ask: "Proceed anyway? [y/n]" |
If net_delta > 0 and user says "n", stop. Do not apply the edit.
Multi-file edits: preview_edit covers one file at a time. For
edits spanning multiple files, run it for each file independently and sum the
deltas. If any file shows net_delta > 0, pause before continuing.
When to skip Step 3: If the intended change is a new file (Write), there is no existing file to simulate against. Skip to Step 4.
Use this step instead of or after Step 3 when the change is a rename, signature change, or any edit with dependent follow-on edits (e.g., updating all call sites after adding a parameter).
simulate_chain applies a sequence of speculative edits in-memory and reports
whether the cumulative change is safe — without touching disk:
mcp__lsp__simulate_chain({
"workspace_root": "/abs/path/to/workspace",
"language": "go",
"edits": [
{
"file_path": "/abs/path/to/file.go",
"start_line": <N>, "start_column": <col>,
"end_line": <N>, "end_column": <col>,
"new_text": "<replacement>"
},
// additional dependent edits (e.g. call site updates) ...
]
})Returns:
cumulative_delta — net error change across all stepssafe_to_apply_through_step — how many steps are safe to apply in sequenceDecision:
cumulative_delta | safe_to_apply_through_step | Action |
|---|---|---|
| ≤ 0 | = total steps | All steps safe. Proceed to Step 4. |
| ≤ 0 | < total steps | Safe up to that step. Review remaining steps. |
| > 0 | any | Net regression. Report to user before proceeding. |
When to use Step 3b:
When to skip Step 3b:
Apply the change using the Edit or Write tool:
Edit for targeted replacements in an existing file.Write only when creating a new file or doing a full rewrite.Edit(file_path: "/abs/path/to/file.go", old_string: "...", new_string: "...")For multi-file edits, apply each file's changes before collecting post-edit diagnostics (Step 5). If any individual edit fails, stop and report before applying remaining files.
Call mcp__lsp__get_diagnostics again for each edited file. Store as AFTER.
AFTER = mcp__lsp__get_diagnostics(file_path: "/abs/path/to/file.go")For multi-file edits, collect diagnostics for all files and merge the results.
Compare BEFORE and AFTER:
Match by (file, line, message) tuple to handle line-number shifts. Treat
error and warning severity separately.
If any new error-severity diagnostics appear, call mcp__lsp__suggest_fixes
at each error location to surface quick fixes:
mcp__lsp__suggest_fixes(
file_path: "<file>",
start_line: <error line>,
start_column: 1,
end_line: <error line>,
end_column: 999
)Report available code actions to the user:
Errors introduced (2):
file.go:34 — undefined: MyType
→ Code action: Import "mypackage" (quickfix)
file.go:51 — cannot use int as string
→ No code actions available
Apply code actions? [y/n/select]If the user accepts, apply the code action's WorkspaceEdit via
mcp__lsp__apply_edit, then re-collect diagnostics and re-diff.
If the diagnostic diff is clean (net change ≤ 0), offer to format the edited file via the language server:
mcp__lsp__format_document({ "file_path": "/abs/path/to/file" })Returns TextEdit[]. If non-empty, apply immediately:
mcp__lsp__apply_edit({ "workspace_edit": <TextEdit[]> })Skip if the user did not ask for formatting, or if there are unresolved errors (fix errors before formatting).
Output the final summary:
## Edit Summary
Files changed: N
Errors introduced: A → Errors resolved: B (net: A-B)
Warnings introduced: C → Warnings resolved: D
### Introduced errors
- file.go:34 — undefined: MyType
### Resolved errors
- file.go:12 — unused variable: x| Net change | Action |
|---|---|
| 0 | Safe. No new errors. |
| Negative | Net improvement — errors resolved. Safe. |
| Positive (after code actions) | Do NOT commit. Offer to revert. |
When net change > 0 after code actions:
old_string in a follow-up Edit call.Do not commit or stage files when net change > 0.
For edits spanning multiple files (e.g., changing a function signature and all its call sites):
net_delta values.Report the combined diagnostic diff across all files in the final summary.
© blackwell-systems, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/lsp-safe-edit of blackwell-systems/agent-lsp.
Open the folder on GitHubat commit 38ca488
Lsp Safe Edit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Lsp Safe Edit this skillblackwell-systems/agent-lsp | 160 | — | ~2.5k | Automated safety check: Notes | MIT | |
| MCP Server Builderanthropics/skills | 180k | 63 repos | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| MCP Server BuildershareAI-lab/learn-claude-code | 78k | 4 repos | ~1.2k | Automated safety check: Pass | MIT | |
| MCP Integration for Pluginsanthropics/claude-plugins-official | 38k | 11 repos | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| MemPalace Memory SearchMemPalace/mempalace | 59k | — | ~1.4k | Automated safety check: Pass | MIT | |
| Crush Configurationcharmbracelet/crush | 29k | — | ~3.7k | Automated safety check: Pass | Custom licence |
anthropics/skills
Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.
shareAI-lab/learn-claude-code
Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.
anthropics/claude-plugins-official
Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.
MemPalace/mempalace
Mines project files and conversation exports into a local, searchable memory palace and recalls past work by semantic search through the mempalace CLI.
charmbracelet/crush
Explains how to configure the Crush coding agent with crushrc or crush.json, covering providers, models, LSPs, MCP servers, hooks, permissions and config precedence.
mksglu/context-mode
Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.
blackwell-systems/agent-lsp
Enumerate exported symbols in a file and surface those with zero references across the workspace.
blackwell-systems/agent-lsp
Safe workflow for editing exported symbols or public APIs. An agent skill from blackwell-systems/agent-lsp.
blackwell-systems/agent-lsp
Apply available quick-fix code actions for all current diagnostics in a file, one at a time with re-collection between each fix.
blackwell-systems/agent-lsp
Trigger language server code generation — implement interface stubs, generate test skeletons, add missing methods, generate mock types.
blackwell-systems/agent-lsp
Blast-radius analysis for a symbol or file — shows all callers, type supertypes/subtypes, and reference count before you change it.
blackwell-systems/agent-lsp
Two-phase safe rename across the entire workspace. An agent skill from blackwell-systems/agent-lsp.
Works with
Categories
Wrap any code edit with before/after diagnostic comparison. An agent skill from blackwell-systems/agent-lsp. Lsp Safe Edit is an agent skill from blackwell-systems/agent-lsp. Wrap any code edit with before/after diagnostic comparison.
Lsp Safe Edit fits situations like: agent Workflows work in your project.
Run `npx skills add blackwell-systems/agent-lsp --skill lsp-safe-edit -a claude-code`. Or copy the skill folder (skills/lsp-safe-edit in blackwell-systems/agent-lsp) into .claude/skills/lsp-safe-edit in your project. Claude Code loads it when a task matches its description.
Run `npx skills add blackwell-systems/agent-lsp --skill lsp-safe-edit -a codex`. Or copy the skill folder (skills/lsp-safe-edit in blackwell-systems/agent-lsp) into .agents/skills/lsp-safe-edit in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add blackwell-systems/agent-lsp --skill lsp-safe-edit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lsp-safe-edit, .gemini/skills/lsp-safe-edit, .github/skills/lsp-safe-edit and .opencode/skills/lsp-safe-edit in your project.
SKILL.md names no scripts, command-line tools or credentials: Lsp Safe Edit is instructions for the agent only. Its frontmatter pre-approves these tools: mcp__lsp__start_lsp, mcp__lsp__open_document, mcp__lsp__get_diagnostics, mcp__lsp__preview_edit, mcp__lsp__simulate_chain, mcp__lsp__suggest_fixes, mcp__lsp__format_document, mcp__lsp__apply_edit, Edit, Write, Bash. Compatibility (from SKILL.md): Requires the agent-lsp MCP server (github.com/blackwell-systems/agent-lsp).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Lsp Safe Edit is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 9.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 499 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Lsp Safe Edit: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), MCP Integration for Plugins (anthropics/claude-plugins-official, 38k stars) and MemPalace Memory Search (MemPalace/mempalace, 59k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
blackwell-systems (a GitHub user) maintains it in blackwell-systems/agent-lsp, which has 160 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 10, 2026.
Source: blackwell-systems/agent-lsp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.