For the complete documentation index, see llms.txt. This page is also available as Markdown.

iai connectors create

Create a connector

Synopsis

Register an MCP server as a connector, verified against the live server on save. If the server cannot be reached or rejects the credential, creation fails and nothing is stored.

Pass --catalog-id to connect a catalog entry (the endpoint and transport come from the catalog; see 'iai connectors catalog'). Otherwise the connector is custom and --endpoint-url is required.

iai connectors create <connector_name> [flags]

Examples

  iai connectors create github \
    --catalog-id github --auth-type bearer --credential "$GITHUB_TOKEN"
  iai connectors create my-server \
    --endpoint-url https://mcp.example.com/mcp --auth-type none
  iai connectors create github \
    --endpoint-url https://api.githubcopilot.com/mcp \
    --auth-type bearer --credential-stdin < token.txt
  iai connectors create internal \
    --endpoint-url https://mcp.internal/sse --transport sse \
    --auth-type api_key --credential "$KEY" --header "X-Team=platform"

Options

Options inherited from parent commands

SEE ALSO

Last updated

Was this helpful?