different-ai/openwork · error

MCP_INVALID_PARAMS

MCP_INVALID_PARAMS

Error message

MCP_INVALID_PARAMS

What it means

Error "MCP_INVALID_PARAMS" thrown in different-ai/openwork.

Source

Thrown at ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts:1245

  }

  const numericCode = numericErrorCode(error)
  if (numericCode === -32001) {
    if (!localRequestTimeout(error)) return providerDeclaredErrorClassification()
    return {
      phase: fallbackPhase,
      category: "request_timeout",
      code: "MCP_REQUEST_TIMEOUT",
      retryable: true,
      actionOwner: "provider_admin",
      operatorAction: "Check provider latency and retry after the current MCP request can complete within its bounded timeout.",
    }
  }
  if (numericCode === -32602 && fallbackPhase === "MCP_TOOL_EXECUTION") {
    return {
      phase: "MCP_TOOL_EXECUTION",
      category: "mcp_tool_input_invalid",
      code: "MCP_INVALID_PARAMS",
      retryable: false,
      actionOwner: "openwork",
      operatorAction: "Correct the tool arguments using the latest advertised input schema; do not retry the same arguments unchanged.",
    }
  }
  if (numericCode !== undefined) return providerDeclaredErrorClassification()

  const name = errorName(error)
  if (name === "InvalidClientError" || name === "UnauthorizedClientError" || name === "InvalidClientMetadataError") {
    return {
      phase: "AUTH_CLIENT_REGISTRATION",
      category: "oauth_client_registration",
      code: "MCP_OAUTH_CLIENT_REJECTED",
      retryable: false,
      actionOwner: "organization_admin",
      operatorAction: "Verify the client registration, redirect URI, client type, and token endpoint authentication method.",
    }
  }

View on GitHub (pinned to 2b7df46e8a)

When it happens

Trigger: Thrown at ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts:1245 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of different-ai/openwork@2b7df46e8a (2026-09-01). Data as JSON: /api/errors/92c4fd615b39897f. Report an issue: GitHub.