Skip to content

MCP Tool Authorization Field for Responses API #3252

@iamemilio

Description

@iamemilio

🚀 Describe the new functionality needed

OpenAI Responses API Spec for MCP Tools has a field authorization which can pass an authentication token to an MCP server. This is a critical piece of security infrastructure, and needs to be implemented in llama stack. It's defined as follows in openai_python:

class Mcp(BaseModel):
    authorization: Optional[str] = None
    """
    An OAuth access token that can be used with a remote MCP server, either with a
    custom MCP server URL or a service connector. Your application must handle the
    OAuth authorization flow and provide the token here.
    """

Please add it to the MCP tool object in llama stack responses API.

💡 Why is this needed? What if we don't build it?

This simplifies passing auth tokens through responses API.

Other thoughts

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions