Skip to content

Errors with this config #3

@bogorad

Description

@bogorad

This config works great with Factory/Droid, but produces multiple errors with mcp-cli. Removing mcp-language-server helps, but it is the whole point :)

{
  "mcpServers": {
    "lsp-nix": {
      "command": "mcp-language-server",
      "args": [
        "--workspace=.",
        "--lsp=nil"
      ]
    },
    "lsp-biome": {
      "command": "mcp-language-server",
      "args": [
        "--workspace=.",
        "--lsp=biome",
        "--",
        "lsp-proxy"
      ]
    },
    "lsp-bash": {
      "command": "mcp-language-server",
      "args": [
        "--workspace=.",
        "--lsp=bash-language-server",
        "--",
        "start"
      ]
    },
    "lsp-yaml": {
      "command": "mcp-language-server",
      "args": [
        "--workspace=.",
        "--lsp=yaml-language-server",
        "--",
        "--stdio"
      ]
    },
    "lsp-lua": {
      "command": "mcp-language-server",
      "args": [
        "--workspace=.",
        "--lsp=lua-language-server"
      ]
    },
    "nixos-reference": {
      "command": "mcp-nixos",
      "args": []
    },
    "repomix": {
      "command": "repomix",
      "args": [
        "--mcp"
      ]
    }
  }
}

here:

 mcp-cli-dev
2026/01/10 19:32:38.879571 [INFO][core] MCP Language Server starting
2026/01/10 19:32:38.890821 [INFO][watcher] Initialized gitignore matcher for /home/chuck/git/mcp-cli
2026/01/10 19:32:38.893274 [INFO][core] MCP Language Server starting
2026/01/10 19:32:38.893865 [INFO][lsp] LSP connection closed (EOF)
2026/01/10 19:32:38.893915 [INFO][lsp-process] 2026-01-10T18:32:38.891073Z ERROR nil: Unexpected error: protocol error: Unexpected initialized notification on state Ready
2026/01/10 19:32:38.901436 [INFO][core] MCP Language Server starting
2026/01/10 19:32:38.902316 [INFO][core] MCP Language Server starting
2026/01/10 19:32:38.923486 [INFO][core] MCP Language Server starting
2026/01/10 19:32:39.016729 [INFO][watcher] Initialized gitignore matcher for /home/chuck/git/mcp-cli
2026/01/10 19:32:39.020106 [WARN][lsp] Method not found: client/unregisterCapability
2026/01/10 19:32:39.020200 [WARN][lsp] Method not found: client/unregisterCapability
2026/01/10 19:32:39.020955 [INFO][lsp] Registration received for method: workspace/didChangeWatchedFiles, id: biome_did_change_watched_files
2026/01/10 19:32:39.021263 [INFO][watcher] Added 4 file watcher registrations (id: biome_did_change_watched_files), total: 4
2026/01/10 19:32:39.021313 [INFO][lsp] Registration received for method: workspace/didChangeConfiguration, id: biome_did_change_extension_settings
2026/01/10 19:32:39.021383 [INFO][lsp] Registration received for method: workspace/didChangeWatchedFiles, id: biome_did_change_watched_files
2026/01/10 19:32:39.022128 [INFO][watcher] Added 4 file watcher registrations (id: biome_did_change_watched_files), total: 8
2026/01/10 19:32:39.022185 [INFO][lsp] Registration received for method: workspace/didChangeConfiguration, id: biome_did_change_extension_settings
2026/01/10 19:32:39.022361 [ERROR][watcher] Error parsing pattern: unknown BaseURI type: protocol.WorkspaceFolder
..........
2026/01/10 19:32:39.028643 [ERROR][watcher] Error parsing pattern: unknown BaseURI type: protocol.WorkspaceFolder
2026/01/10 19:32:39.029006 [INFO][watcher] Workspace scan complete: processed 31 files in 0.01 seconds
2026/01/10 19:32:39.029010 [ERROR][watcher] Error parsing pattern: unknown BaseURI type: protocol.WorkspaceFolder
..........
2026/01/10 19:32:39.032764 [ERROR][watcher] Error parsing pattern: unknown BaseURI type: protocol.WorkspaceFolder
2026/01/10 19:32:39.032799 [INFO][watcher] Workspace scan complete: processed 31 files in 0.01 seconds
2026/01/10 19:32:39.113663 [INFO][watcher] Initialized gitignore matcher for /home/chuck/git/mcp-cli
2026/01/10 19:32:39.435243 [INFO][watcher] Initialized gitignore matcher for /home/chuck/git/mcp-cli
2026/01/10 19:32:39.513811 [INFO][lsp] Registration received for method: workspace/didChangeConfiguration, id: workspace/didChangeConfiguration
2026/01/10 19:32:39.513995 [INFO][lsp] Registration received for method: workspace/didChangeConfiguration, id: workspace/didChangeConfiguration
2026/01/10 19:32:39.543893 [INFO][watcher] Initialized gitignore matcher for /home/chuck/git/mcp-cli
2026/01/10 19:32:39.545131 [INFO][lsp] Registration received for method: workspace/didChangeConfiguration, id: c9aa6244-73ef-473f-87bd-49f36616140e
2026/01/10 19:32:39.547100 [INFO][lsp] Registration received for method: workspace/didChangeConfiguration, id: 8892ced2-5067-476a-8c94-5cb2cfb872a8
2026/01/10 19:32:39.891335 [INFO][core] Successfully registered all MCP tools
2026/01/10 19:32:40.010022 [INFO][core] Successfully registered all MCP tools
2026/01/10 19:32:40.112355 [INFO][core] Successfully registered all MCP tools
2026/01/10 19:32:40.435135 [INFO][core] Successfully registered all MCP tools
2026/01/10 19:32:40.543003 [INFO][core] Successfully registered all MCP tools
2026/01/10 19:32:41.923966 [INFO][core] Received signal terminated in PID: 11338
2026/01/10 19:32:41.924016 [INFO][core] Cleanup initiated for PID: 11338
2026/01/10 19:32:41.924026 [INFO][core] Closing open files
2026/01/10 19:32:41.924062 [INFO][core] Sending shutdown request
2026/01/10 19:32:41.924162 [ERROR][core] Shutdown request failed: failed to send request: failed to write header: write |1: broken pipe
2026/01/10 19:32:41.924184 [INFO][core] Shutdown request completed
2026/01/10 19:32:41.924188 [INFO][core] Sending exit notification
2026/01/10 19:32:41.924206 [ERROR][core] Exit notification failed: failed to send notification: failed to write header: write |1: broken pipe
2026/01/10 19:32:41.924211 [INFO][core] Closing LSP client
2026/01/10 19:32:41.924287 [ERROR][core] Failed to close LSP client: exit status 101
2026/01/10 19:32:41.924294 [INFO][core] Cleanup completed for PID: 11338
2026/01/10 19:32:41.924303 [INFO][core] Server shutdown complete for PID: 11338
2026/01/10 19:32:42.018915 [INFO][core] Received signal terminated in PID: 11345
2026/01/10 19:32:42.018951 [INFO][core] Cleanup initiated for PID: 11345
2026/01/10 19:32:42.018974 [INFO][core] Closing open files
2026/01/10 19:32:42.018997 [INFO][core] Sending shutdown request
2026/01/10 19:32:42.019978 [INFO][core] Shutdown request completed
2026/01/10 19:32:42.019995 [INFO][core] Sending exit notification
2026/01/10 19:32:42.020016 [INFO][core] Closing LSP client
2026/01/10 19:32:42.028223 [INFO][lsp] LSP connection closed (EOF)
2026/01/10 19:32:42.028287 [INFO][core] Cleanup completed for PID: 11345
2026/01/10 19:32:42.028312 [INFO][core] Server shutdown complete for PID: 11345
2026/01/10 19:32:42.121558 [INFO][core] Received signal terminated in PID: 11377
2026/01/10 19:32:42.121587 [INFO][core] Cleanup initiated for PID: 11377
2026/01/10 19:32:42.121603 [INFO][core] Closing open files
2026/01/10 19:32:42.122036 [INFO][core] Sending shutdown request
2026/01/10 19:32:42.447738 [INFO][core] Received signal terminated in PID: 11356
2026/01/10 19:32:42.447777 [INFO][core] Cleanup initiated for PID: 11356
2026/01/10 19:32:42.447795 [INFO][core] Closing open files
2026/01/10 19:32:42.447822 [INFO][core] Sending shutdown request
2026/01/10 19:32:42.448982 [INFO][core] Shutdown request completed
2026/01/10 19:32:42.449015 [INFO][core] Sending exit notification
2026/01/10 19:32:42.449316 [INFO][core] Closing LSP client
2026/01/10 19:32:42.490407 [INFO][lsp] LSP connection closed (EOF)
2026/01/10 19:32:42.491822 [INFO][core] Cleanup completed for PID: 11356
2026/01/10 19:32:42.491857 [INFO][core] Server shutdown complete for PID: 11356
2026/01/10 19:32:42.559096 [INFO][core] Received signal terminated in PID: 11350
2026/01/10 19:32:42.559128 [INFO][core] Cleanup initiated for PID: 11350
2026/01/10 19:32:42.559142 [INFO][core] Closing open files
2026/01/10 19:32:42.559173 [INFO][core] Sending shutdown request
2026/01/10 19:32:42.561702 [INFO][core] Shutdown request completed
2026/01/10 19:32:42.561802 [INFO][core] Sending exit notification
2026/01/10 19:32:42.562042 [INFO][core] Closing LSP client
2026/01/10 19:32:42.980372 [INFO][lsp] LSP connection closed (EOF)
2026/01/10 19:32:42.981335 [INFO][core] Cleanup completed for PID: 11350
2026/01/10 19:32:42.981391 [INFO][core] Server shutdown complete for PID: 11350
2026/01/10 19:32:43.124422 [WARN][core] Shutdown request timed out, proceeding with exit
2026/01/10 19:32:43.124444 [INFO][core] Sending exit notification
2026/01/10 19:32:43.124512 [INFO][core] Closing LSP client


╭────────────────────────────────────────────────────────────────────────────╮
│                                                                            │
│        _ __ ___  _____           __  __  _____________    ____    ____     │
│       _ __ ___ .'____/___ ______/ /_/  |/  / ____/ __ \  |___ \  / __ \    │
│      _ __ ___ / /_  / __ `/ ___/ __/ /|_/ / /   / /_/ /  ___/ / / / / /    │
│     _ __ ___ / __/ / /_/ (__  ) /_/ /  / / /___/ ____/  /  __/_/ /_/ /     │
│    _ __ ___ /_/    \____/____/\__/_/  /_/\____/_/      /_____(*)____/      │
│                                                                            │
│                                                                            │
│                                FastMCP  2.0                                │
│                                                                            │
│                                                                            │
│                 🖥️  Server name:     mcp-nixos                              │
│                 📦 Transport:       STDIO                                  │
│                                                                            │
│                 🏎️  FastMCP version: 2.12.5                                 │
│                 🤝 MCP SDK version: 1.25.0                                 │
│                                                                            │
│                 📚 Docs:            https://gofastmcp.com                  │
│                 🚀 Deploy:          https://fastmcp.cloud                  │
│                                                                            │
╰────────────────────────────────────────────────────────────────────────────╯


[01/10/26 19:32:43] INFO     Starting MCP server 'mcp-nixos' with transport 'stdio'                                                                                             server.py:1502
lsp-bash
  • definition
  • diagnostics
  • edit_file
  • hover
  • references
  • rename_symbol

lsp-biome
  • definition
  • diagnostics
  • edit_file
  • hover
  • references
  • rename_symbol

lsp-lua
  • definition
  • diagnostics
  • edit_file
  • hover
  • references
  • rename_symbol

lsp-nix
  • definition
  • diagnostics
  • edit_file
  • hover
  • references
  • rename_symbol

lsp-yaml
  • definition
  • diagnostics
  • edit_file
  • hover
  • references
  • rename_symbol

nixos-reference
  • nix
  • nix_versions

repomix
  • pack_codebase
  • pack_remote_repository
  • generate_skill
  • attach_packed_output
  • read_repomix_output
  • grep_repomix_output
  • file_system_read_file
  • file_system_read_directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions