Skip to content

raia Command · Section

MCP Servers

Expose data rooms read-only to external AI tools over API key or OAuth 2.1.

An MCP server in Command lets external AI tools — Claude Desktop, ChatGPT, Cursor, n8n — search the documents in the projects you choose, read-only, over the Model Context Protocol. Each server has its own endpoint, its own key, and its own list of allowed projects.

In this section

  • Create a server, scope it to projects, and copy the key (shown once).
  • Connect a tool with a Bearer API key or OAuth 2.1 discovery.
  • Understand the four read-only tools and their filters.
  • Rotate or revoke access when a tool or teammate changes.
01

What's inside

  1. 01

    Creating a server

    Open your avatar → Settings and check its organization selector. Open MCP Servers → New server, enter Name and optional Description, and select only the Knowledge projects you authorize. Select Create server. In Save your API key, copy the key to private secure storage before closing; copy your own Endpoint URL, then select I've saved it. Never share the key or reuse the demo endpoint shown below. Only org owners and admins can create, edit, rotate, or delete servers.

    Worked example

    The examples use fictional data. Follow the same checks with approved, non-sensitive information for your own task.

    Open your avatar menu → Settings. Settings has its own organization selector, so confirm it shows the organization you intend before you continue. Open MCP Servers → New server, enter a Name and, optionally, a Description. This example used the fictional name Acme docs search.

    Enter Name and an optional Description for the new MCP server.
    1. Highlight 1: Name
    2. Highlight 2: Description (optional)

    Select only the Knowledge projects this server may search, then Create server. Confirm the organization and selected projects first; this choice grants access to their content. The form shows the selection before creation.

    Review the selected Knowledge before Create server.
    1. Highlight 1: Selected Knowledge project
    2. Highlight 2: Create server

    After Create server, the key is shown once. Copy it to a private secret store before selecting I've saved it. Share it only with authorized clients, never in screenshots or chat.

    Masked one-time API key and save confirmation.
    1. Highlight 1: API key / Copy
    2. Highlight 2: Endpoint URL / Copy
    3. Highlight 3: I've saved it
  2. 02

    Connecting a tool

    In Connection, copy your own Endpoint URL (Streamable HTTP) as the connector URL. For static key access, send Authorization: Bearer <key> using your private key. Use OAuth metadata (not the MCP endpoint) only in a separate discovery field explicitly provided by your client. Check which authentication method your client supports, complete its connection prompts, and inspect an authorized request before relying on access.

    Worked example

    The examples use fictional data. Follow the same checks with approved, non-sensitive information for your own task.

    Use Endpoint URL as the MCP connection address. OAuth metadata is a separate discovery field, not the endpoint. Copy values from your own enabled server; do not reuse the disabled demo’s connection details.

    Connection endpoint and separate OAuth metadata.
    1. Highlight 1: Endpoint URL (Streamable HTTP)
    2. Highlight 2: OAuth metadata (not the MCP endpoint)
  3. 03

    Filters

    Both search tools accept optional project_ids, folder_ids, labels, and label_match ('any' by default, 'all' to require every label). Filters only narrow results inside the projects the server may already read.

  4. 04

    Prompting tips

    For a permitted read-only check, open the server test and choose Raw API call. Enter your own key in API key (Bearer), select search_files, and enter a known term in Prompt / search query. Select Send request, then verify both the HTTP status and the returned file content and project. Scroll to Send request if needed. For external agents, explicitly request the appropriate discovered tool and cite the returned file_id and project id.

    Worked example

    The examples use fictional data. Follow the same checks with approved, non-sensitive information for your own task.

    For a first check, use Raw API call with search_files and a keyword you know appears in an allowed document, such as Aurora. Inspect the returned filenames and content against the selected Knowledge projects. HTTP 200 means the request returned; it does not establish an agent answer or completed training.

    Compare the search_files result with a known document in the allowed Knowledge.
    1. Highlight 1: search_files
    2. Highlight 2: Prompt / search query: Aurora
    3. Highlight 3: HTTP 200
  5. 05

    Rotating and revoking

    To disable a server, switch its row toggle off, reload Settings → MCP Servers, and confirm disabled and the off switch remain. When authorized, check that a subsequent request is refused; the disabled setting and request result are separate checks. Use Rotate to replace a key or delete the server when intended; update approved clients and verify access. Do not assume instant revocation, cancellation of running calls or deletion of previously returned data.

    Worked example

    The examples use fictional data. Follow the same checks with approved, non-sensitive information for your own task.

    To stop clients using this server, switch it off and reopen the page to check disabled. Check that an authorized client’s next request is refused. Review active requests separately before relying on the change for sensitive access.

    Check disabled after switching the server off.
    1. Highlight 1: disabled
    2. Highlight 2: Off switch
02

At a glance

ToolWhat it returnsBest for
get_project_informationAllowed projects with id, name, description, timestamps, file count, and direct URL.Resolving which project the user means
list_filesFiles in one or more allowed projects, optionally by folder.Seeing what exists before searching
search_metadataKeyword search over title, filename, summary, context, and labels.Finding a named file or tagged set
search_filesKeyword search over full Markdown text with a snippet around the best hit.Content questions across documents

Read-only

MCP servers cannot upload, modify, or delete anything in Command. They only read the projects on their allow-list.
03

Related