W3 MCP LSP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PROJECT_ROOT | No | Root directory of your project. Defaults to current directory. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| lsp_goto_definitionA | Jump to symbol definition location. š“ CRITICAL: Line and character are STRICTLY 0-INDEXED (0, 1, 2...), NOT 1-indexed! ā WRONG (what editor displays): Editor shows: "Ln 5, Col 10" ā DON'T use: {"line": 5, "character": 10} ā CORRECT (0-indexed): ā DO use: {"line": 4, "character": 9} Formula: lsp_value = editor_value - 1 CHARACTER COUNTING (0-indexed from start of line): Line: "const greeting = "Hello";" Index: 0123456789... ⢠'c' in const ā character: 0 ⢠'o' in const ā character: 1 ⢠'g' in greeting ā character: 6 ⢠'H' in string ā character: 18 Args: params (LSPInput): Must provide line and character as 0-indexed values Returns: str: "file:line:column" or "Definition not found" Example: ā {"file_path": "src/app.ts", "line": 4, "character": 9} ā "/path/src/app.ts:15:5" |
| lsp_hoverA | Get type information and documentation for symbol at position. š“ CRITICAL: Line and character are STRICTLY 0-INDEXED (0, 1, 2...), NOT 1-indexed! ā WRONG (what editor displays): Editor shows: "Ln 5, Col 10" ā DON'T use: {"line": 5, "character": 10} ā CORRECT (0-indexed): ā DO use: {"line": 4, "character": 9} Formula: lsp_value = editor_value - 1 CHARACTER COUNTING (0-indexed from start of line): Line: "const greeting = "Hello";" Index: 0123456789... ⢠'c' in const ā character: 0 ⢠'o' in const ā character: 1 ⢠'g' in greeting ā character: 6 ⢠'H' in string ā character: 18 Args: params (LSPInput): Must provide line and character as 0-indexed values Returns: str: Type signature like "(parameter) name: string" or "No info available" Example: ā {"file_path": "src/app.ts", "line": 4, "character": 9} ā "(parameter) greeting: string" |
| lsp_find_referencesA | Find all usages/references of symbol at position. file:line:column ..." or "No references found" /path/src/app.ts:5:9 /path/src/utils.ts:10:2" |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/famtong8-dev/w3-mcp-server-lsp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server