Frontmatter
| id | 9561 |
| title | Add Functional Tests for MCP Authorization and Refine Error Handling |
| state | Closed |
| labels | enhancementaitesting |
| assignees | tobiu |
| createdAt | Mar 26, 2026, 3:24 PM |
| updatedAt | Mar 26, 2026, 3:25 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9561 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 26, 2026, 3:25 PM |

Add functional Playwright tests to verify the OIDC/OAuth 2.1 authorization implementation for Neo.mjs MCP servers.
Scope:
test/playwright/unit/ai/mcp/Authorization.spec.mjswhich mocks an OIDC provider and verifies the MCP server's response to valid/invalid tokens and CORS requests.Server.mjsto use the SDK'sInvalidTokenErrorfor consistent 401 status codes.