Skip to content

[1c] MCP entrypoint + identity resolution #7

@andrmaz

Description

@andrmaz

What to build

Stand up the /mcp entrypoint. Authenticated MCP calls are accepted, the token is validated, and the request is enriched with resolved org + department identity context. Unauthorized or invalid tokens are rejected with structured error responses. At this stage the response is an identity-scoped stub (no retrieval yet) — this slice proves MCP-first integration and auth plumbing end-to-end.

Acceptance criteria

  • An authenticated MCP client can call /mcp and receive a valid stub response.
  • The response payload includes resolved organization and department scope.
  • Requests with missing, invalid, or expired tokens are rejected with a clear error.
  • Integration test covers the authenticated happy path and the rejection path.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmvpCortex MVP scope

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions