Skip to content

[Bug]: Fail to save MCP configuration as API key is too long #14674

Description

@ddwong1984

What happened?

Fail to save MCP configuration as it return API key is too long

Version Information

v0.8.7

Steps to Reproduce

  1. Click create new MCP in the WebUI
  2. Select API Key in Authentication
  3. Insert a long API Key
  4. Click Create

What browsers are you seeing the problem on?

No response

Relevant log output

2026-08-07 03:22:47 error: [ServerConfigsDB.encryptConfig] Failed to encrypt apiKey.key Invalid key length {"userId":"6a743afa96222d8c96288e07"}
2026-08-07 03:22:47 error: [updateMCPServer] Failed to encrypt MCP server configuration {"userId":"6a743afa96222d8c96288e07"}

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions