Skip to content

[ai-mcp] Invalid literal value, expected \"object\" #16615

Description

@fipro78

Bug Description:

I added the local server-filesystem mcp server via:

    "ai-features.mcp.mcpServers": {
      "filesystem": {
        "command": "npx",
        "args": [
          "-y",
          "@modelcontextprotocol/server-filesystem",
          "/home/test/temp"
        ],
        "autostart": false
      }
    },

On starting the mcp server, I see a lot of those messages:

2025-11-19T14:02:25.012Z root ERROR Error while trying to get tools: ZodError: [
  {
    "code": "invalid_literal",
    "expected": "object",
    "path": [
      "tools",
      0,
      "inputSchema",
      "type"
    ],
    "message": "Invalid literal value, expected \"object\""
  },

It seems to not happen for other mcp servers.

Steps to Reproduce:

  1. Checkout the Theia sources from Git
  2. Build and Start the browser app
  3. Add the server-filesystem mcp server as shown above
  4. Start the mcp server

Additional Information

Interestingly in my development environment for a Theia based application, based on Theia 1.66.2 this issue does not happen. But there I am in a devcontainer. The issue happens locally on Windows 11 directly or in a Windows Ubuntu WSL.

I already tried to update the @modelcontextprotocol/sdk version for verification, but with no effect.

  • Operating System: Windows 11 / Ubuntu 20.02 WSL
  • Theia Version: Current codebase

Metadata

Metadata

Assignees

Labels

bugbugs found in the applicationtheia-aiissues related to TheiaAI

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions