Chapter 6. Testing with model context protocol (MCP) servers


Authorize and interact with connected MCP servers to use their integrated tools directly from the playground chat.

Prerequisites

  • You have deployed a model with tool-calling capabilities enabled in your project.
  • You have configured a playground instance for your project.
  • A cluster administrator has configured an MCP server, and the server is listed and available in the MCP servers section of your playground.

Procedure

  1. In the MCP servers section, select the checkbox for the server that you want to use.
  2. Click the Auth icon next to the server name.

    The Authorize MCP server dialog opens.

  3. If the server requires a token, enter the token in the Access token field and click Authorize.

    A Connection successful message appears.

    Note

    Authorization tokens for MCP servers are stored only for the current browser session. If you close your browser, you must re-authorize the server.

  4. Click Close.
  5. Click the View tools (wrench) icon for the same MCP server.

    A modal appears, listing all available tools for that server. You can copy a tool name to use in the chat.

  6. In the chat input field, type a query that uses one of the available tools.
  7. Click the Send button or press Enter.

    NOTE: After you send a prompt, the Send button in the chat input field changes to a Stop button. Click it if you want to interrupt the model’s response, for example, when the response takes longer than you anticipated or if you notice that you made an error in your prompt. The Bot posts “You stopped this message” to confirm your stop request.

Verification

  • The AI bot responds, indicating it is using the tool.
  • The bot provides the output from the tool.
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top