Skip to main content
Glama
default-language-servers.yaml5.53 kB
language-servers: typescript: # npm install -g typescript-language-server if you prefer to install globally # command: typescript-language-server --stdio command: npx -y typescript-language-server --stdio # This Language Server will be launched when at least one of the following files is detected in the working directory workspace_files: - 'package.json' - 'tsconfig.json' # In TS Language Server for the search functionality to work # at least one code file in the workspace needs to always be kept open # As a workaround we specify one file that would be kept open # Other files will be opened/closed as needed preload_files: - './src/index.ts' - './index.ts' - './src/main.ts' - './main.ts' diagnostics: # TS Language Server will push diagnostics once a file is updated # We open a file, wait and then return the collected diagnostics so diagnostics tool duration will include wait_timeout_ms # It's possible to try and decrease it for a faster response. strategy: 'push' wait_timeout_ms: 2000 pyright: # npm install -g pyright if you prefer to install globally # command: pyright-langserver --stdio command: npx -y -p pyright pyright-langserver --stdio workspace_files: - 'pyproject.toml' - 'requirements.txt' - 'setup.py' - 'Pipfile' diagnostics: strategy: 'pull' # go: # command: gopls # workspace_files: # - 'go.mod' # - 'go.work' # diagnostics: # strategy: 'push' # wait_timeout_ms: 2000 # environment: # # Adjust to your Go environment # GOPATH: '$HOME/go' # GOCACHE: '$HOME/.cache/go-build' # GOMODCACHE: '$HOME/go/pkg/mod' # rust: # command: 'rust-analyzer' # workspace_files: # - 'Cargo.toml' # - 'Cargo.lock' # diagnostics: # strategy: 'pull' # roslyn: # # Adjust command with path to LanguageServer.dll # # Don't break lines with \ like you would do in a shell # command: > # dotnet $SYMBOLS_ROSLYN_PATH/Microsoft.CodeAnalysis.LanguageServer.dll # --logLevel=Information # --extensionLogDirectory=$SYMBOLS_ROSLYN_PATH/logs # --stdio # workspace_loader: 'roslyn' # workspace_files: # - '*.sln' # - '*.csproj' # environment: # # Adjust these to your machine # # Env vars with the SYMBOLS_ prefix aren't propagated to LSP # SYMBOLS_ROSLYN_PATH: $HOME/.csharp-lsp # diagnostics: # strategy: 'pull' # java: # # Don't break lines with \ like you would do in a shell # # SYMBOLS_WORKSPACE_NAME is an env var containing the name of the workspace folder to create # # unique caches for each workspace # command: > # SYMBOLS_JDTLS_PATH/bin/jdtls # -configuration $HOME/.cache/jdtls/config # -data $HOME/.cache/jdtls/workspace/$SYMBOLS_WORKSPACE_NAME # --jvm-arg=-Dlog.protocol=true # --jvm-arg=-Dlog.level=ALL # workspace_files: # - 'build.gradle' # - 'gradlew' # environment: # # Adjust these to your machine # # Env vars with the SYMBOLS_ prefix aren't propagated to LSP # SYMBOLS_JDTLS_PATH: $HOME/.java-lsp/jdtls # diagnostics: # strategy: 'push' # wait_timeout_ms: 2000 # vscode-roslyn: # command: > # $VS_CODE_EXTENSIONS/ms-dotnettools.csharp-$MS_DOTNET_TOOLS_VERSION/.roslyn/Microsoft.CodeAnalysis.LanguageServer # --logLevel Information # --razorSourceGenerator $VS_CODE_EXTENSIONS/ms-dotnettools.csharp-$MS_DOTNET_TOOLS_VERSION/.razor/Microsoft.CodeAnalysis.Razor.Compiler.dll # --razorDesignTimePath $VS_CODE_EXTENSIONS/ms-dotnettools.csharp-$MS_DOTNET_TOOLS_VERSION/.razor/Targets/Microsoft.NET.Sdk.Razor.DesignTime.targets # --starredCompletionComponentPath $VS_CODE_EXTENSIONS/ms-dotnettools.vscodeintellicode-csharp-2.2.3-linux-x64/components/starred-suggestions/platforms/linux-x64/node_modules/@vsintellicode/starred-suggestions-csharp.linux-x64 # --devKitDependencyPath $VS_CODE_EXTENSIONS/ms-dotnettools.csharp-$MS_DOTNET_TOOLS_VERSION/.roslynDevKit/Microsoft.VisualStudio.LanguageServices.DevKit.dll # --extension $VS_CODE_EXTENSIONS/ms-dotnettools.csharp-$MS_DOTNET_TOOLS_VERSION/.razorExtension/Microsoft.VisualStudioCode.RazorExtension.dll # --extension $VS_CODE_EXTENSIONS/ms-dotnettools.csharp-$MS_DOTNET_TOOLS_VERSION/.xamlTools/Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll # --extension $VS_CODE_EXTENSIONS/ms-dotnettools.csharp-$MS_DOTNET_TOOLS_VERSION/.xamlTools/Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll # --extensionLogDirectory $ROSLYN_LOGS # --stdio # workspace_loader: 'roslyn' # workspace_files: # - '*.sln' # - '*.csproj' # diagnostics: # strategy: 'pull' # environment: # # Adjust these to your machine # VS_CODE_EXTENSIONS: $HOME/.vscode/extensions # # VS Code C# Dev Kit updates will remove previous versions # MS_DOTNET_TOOLS_VERSION: '2.93.22-linux-x64' # ROSLYN_LOGS: $HOME/.config/Code/logs/symbols-nodejs # clangd: # command: clangd # workspace_files: # - 'Makefile' # - 'CMakeLists.txt' # # Try to preload a file to trigger index creation and have search working # preload_files: # - './src/file.cpp' # diagnostics: # strategy: 'push' # wait_timeout_ms: 2000

Latest Blog Posts

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/p1va/symbols-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server