Trek_CN/server/tests/unit/mcp
jubnl 535c06bb3f
feat(mcp): granular OAuth scopes and per-client rate limiting
- Split `media:read` into `geo:read` and `weather:read` scopes
- Add dedicated `atlas:read/write` scopes (previously under `places`)
- Add dedicated `todos:read/write` scopes (previously under `collab`)
- Rate limiting now keyed by userId+clientId instead of userId alone
- Bind MCP sessions to the OAuth client that created them
- Log MCP tool calls to audit log with clientId
- Invalidate all MCP sessions on addon state change
- Reduce session sweep interval from 10min to 1min
- Update all translations with new scope labels
2026-04-11 02:06:32 +02:00
..
resources.test.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00
scopes.test.ts feat(mcp): granular OAuth scopes and per-client rate limiting 2026-04-11 02:06:32 +02:00
tools-addon-gating.test.ts test(mcp): add tests for OAuth 2.1, addon gating, and budget reorder 2026-04-09 23:12:59 +02:00
tools-assignments-reservations-extra.test.ts refactor(mcp): extract all MCP tools into dedicated modules and add shared helpers 2026-04-09 18:09:33 +02:00
tools-assignments.test.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00
tools-atlas-expanded.test.ts refactor(mcp): extract all MCP tools into dedicated modules and add shared helpers 2026-04-09 18:09:33 +02:00
tools-atlas.test.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00
tools-budget-advanced.test.ts refactor(mcp): extract all MCP tools into dedicated modules and add shared helpers 2026-04-09 18:09:33 +02:00
tools-budget.test.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00
tools-collab-polls-chat.test.ts refactor(mcp): extract all MCP tools into dedicated modules and add shared helpers 2026-04-09 18:09:33 +02:00
tools-days-accommodations.test.ts feat(mcp): granular OAuth scopes and per-client rate limiting 2026-04-11 02:06:32 +02:00
tools-days.test.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00
tools-notes.test.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00
tools-notifications.test.ts fix(mcp): remove all file tools and remove ability to delete notifications 2026-04-09 18:17:31 +02:00
tools-packing-advanced.test.ts refactor(mcp): extract all MCP tools into dedicated modules and add shared helpers 2026-04-09 18:09:33 +02:00
tools-packing.test.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00
tools-places.test.ts feat(mcp): add list_places assignment filter for orphan activities 2026-04-09 12:45:09 +02:00
tools-prompts.test.ts test(mcp): add tests for OAuth 2.1, addon gating, and budget reorder 2026-04-09 23:12:59 +02:00
tools-reservations.test.ts refactor(mcp): replace direct DB access with service layer calls 2026-04-04 18:12:53 +02:00
tools-tags-maps-weather.test.ts refactor(mcp): extract all MCP tools into dedicated modules and add shared helpers 2026-04-09 18:09:33 +02:00
tools-todos.test.ts refactor(mcp): extract all MCP tools into dedicated modules and add shared helpers 2026-04-09 18:09:33 +02:00
tools-trip-members.test.ts refactor(mcp): extract all MCP tools into dedicated modules and add shared helpers 2026-04-09 18:09:33 +02:00
tools-trips.test.ts test(mcp): add tests for OAuth 2.1, addon gating, and budget reorder 2026-04-09 23:12:59 +02:00
tools-vacay.test.ts refactor(mcp): extract all MCP tools into dedicated modules and add shared helpers 2026-04-09 18:09:33 +02:00