Skip to content

Introduce Authentication in Gateways #63

@g3force

Description

@g3force

Where do you need to authenticate?

  • MCP
    1. Authenticate / authorize at the tool server or gateway itself
      1. Which tool servers am I allowed to use
      2. Which tools of a tool server am I allowed to use (e.g. read-only vs read-write)
    2. Authenticate / authorize for the tool/API used by the MCP server
  • Agent (A2A, AG-UI, etc.)
    1. Authenticate / authorize at the Agent Gateway
      • Which agents am I allowed to use
    2. Authenticate / authorize for the MCP tools and sub-agents being used
  • AI Gateway / LLM Model
    1. Global API key
    2. Virtual API key for unique identification of agents (not users)
  • Frontend (own UI or something like LibreChat, n8n)
    1. Adopt the login context of the frontend for agents and tools
    2. User manually configures credentials for agents/MCP servers (API key, JWT token)
    3. User initiates OAuth flow and confirms consent form specifically for one or more tools/APIs

How do you need to be able to authenticate?

  • MCP
    • OAuth flow in the browser, if possible
    • Pass tokens through otherwise (e.g. when an agent calls an MCP tool)
    • MCP supports negotiating the authentication and can, for example, transmit the necessary metadata for an OAuth flow
  • A2A
    • Fundamentally similar to MCP. Available security schemes can also be communicated here.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions