Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

platform-lsp-integrate

Skill by forcedotcom

Explains how to use the Salesforce LSP MCP tools in the salesforce-development plugin. It covers what each tool does, how to read its output, and what each error code means.

  • Score 79
  • 1.2k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install platform-lsp-integrate

Built from the published package, never by AI.

git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sf-skills/plugins/builder/salesforce-development/skills/platform-lsp-integrate ~/.claude/skills/platform-lsp-integrate

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install platform-lsp-integrate in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a reference for the salesforce-lsp MCP server, which runs Salesforce Language Server children and exposes their capabilities as MCP tools. It documents the Apex tools (diagnostics, hover, document symbols, completion), the SOQL tools (validation, schema-aware completion, extraction from Apex, selectivity checks, schema refresh) and the lsp.health status tool. It also sets out a call and fallback contract for other skills, with a fallback path when the host is absent.

The skill explains the error codes lsp_disabled, spawn_timeout, circuit_open, no_apex_workspace and no_org_connected. It describes debugging with lsp.health, the lsp-doctor CLI and the SFDX_LSP kill switch. It is aimed at users asking how the Salesforce LSP works and at developers writing skills that call its tools. The source states that this build vendors only Apex and SOQL, and the LWC server is not included.

Written from the project's SKILL.md and checked against it.

What it can do

  • apex.diagnosticsCompile-checks a .cls or .trigger file and returns errors and warnings with positions.
  • apex.hoverReturns type and signature information at a given position in an Apex file.
  • apex.documentSymbolReturns an outline of the symbols in an Apex file.
  • apex.completionReturns code-completion items at a given position in an Apex file.
  • validate_soqlParses a SOQL string and reports syntax errors with line and column.
  • complete_soqlGives schema-aware SOQL completion for SObjects, fields and picklist values resolved against the org.
  • extract_soql_from_apexStatically pulls every inline SELECT query out of Apex code without spawning a server.
  • check_soql_selectivityRuns selectivity heuristics on SOQL, with an optional org LIMIT-0 probe.
  • refresh_org_schemaClears the cached org describe so completion re-fetches the schema after a deploy.
  • lsp.healthRead-only status view of kill-switch mode, workspace, server state and circuit breaker. Never spawns.

What you need

  • Salesforce CLI (sf) version 2.0.0 or later
  • The salesforce-development plugin with its bundled salesforce-lsp host

Try asking

  • Run lsp.health and tell me why the LSP is not responding
  • Use validate_soql to check this SOQL query for syntax errors
  • Why did my Apex tool return lsp_disabled and how do I fix it?

Good to know

  • The LWC language server is not bundled, so lwc.* tools always return unavailable.
  • validate_soql diagnostic positions are relative to the query string, not a file.
  • Spawning is lazy, so the first Apex call has a cold start of a few seconds.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/builder/salesforce-development/skills/platform-lsp-integrate/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Bash Read mcp__plugin_salesforce-development_salesforce-lsp__lsp_health

Alternatives to platform-lsp-integrate

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

platform-lsp-integrate: common questions

What does the SFDX_LSP environment variable do?

It controls which language servers may spawn. Setting it to disabled stops all LSP spawns, and apex-only allows only the Apex server.

Why does a freshly deployed field not resolve in SOQL?

The cached org describe may be stale. The source says to call refresh_org_schema, then re-run the check.

What should I do when an LSP tool returns an error?

Treat the error as unavailable, not as a passed check. Record the error code, then continue with the documented fallback, such as the sf CLI or reading the source directly.

How do I install platform-lsp-integrate?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is platform-lsp-integrate free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is platform-lsp-integrate safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to platform-lsp-integrate?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

platform-lsp-integrate Install

Add to stack

Loading.