Skip to content

[Bug]: Leaving Auth to None fails #232

@andrewmusselman

Description

@andrewmusselman

🐞 Bug Summary

Getting an error when not specifying any auth


🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - UI (admin panel)

🔁 Steps to Reproduce

  1. Leave Auth to None when making a new tool
  2. Test tool
  3. See error

🤔 Expected Behavior

Tool should run without Auth


📓 Logs / Error Output

{
  "jsonrpc": "2.0",
  "error": {
    "code": -32000,
    "message": "Internal error",
    "data": "Tool invocation failed: 'NoneType' object has no attribute 'auth_type'"
  },
  "id": 1751566298597
}

🧠 Environment Info

You can retrieve most of this from the /version endpoint.

Key Value
Version or commit e.g. v0.9.0 or main@a1b2c3d
Runtime e.g. Python 3.11, Gunicorn
Platform / OS e.g. Ubuntu 22.04, macOS
Container e.g. Docker, Podman, none

🧩 Additional Context (optional)

Add any configuration details, flags, or related issues.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageIssues / Features awaiting triage

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions