Skip to main content
Connect Cursor to your organization’s gateway. The wizard configures its MCP servers and Skills, and prints the values to enter for the model connection.

Run setup

With Cursor installed, install the setup tool, then run:
Sign in to your organization, choose any MCP servers and Skills you need, then review the proposed changes and confirm once to apply them. You can skip MCP servers and Skills. See the overview for the shared wizard walkthrough. Cursor has no model-selection step in the wizard. After choosing MCP servers and Skills, choose Review changes.
Cursor setup step showing MCP servers, Agent Skills, and Review changes

Choose the MCP servers and Skills to configure for Cursor, then review the changes.

Connect models in Cursor

The wizard configures MCP servers and Skills. Complete the model connection inside Cursor:
  1. Run tfy-local-ai-setup token in your terminal to retrieve your TrueFoundry token.
  2. Open Cursor Settings → Models → API Keys. Enter the token as the OpenAI API Key and turn its toggle on.
  3. Set Override OpenAI Base URL to your gateway’s /cursor/v1 endpoint. The completion summary prints the exact URL, for example https://gateway.example.com/cursor/v1.
  4. Under Models, choose Add Custom Model, enter a Cursor-compatible Virtual Model slug from your administrator, then select it in a new chat.
The slug must not contain anthropic, claude, openai, gpt, gemini, or vertex. Ask your administrator for a compatible slug; see Cursor model naming rules.

Optional: authorize MCP servers

Authorize any selected servers that require sign-in inside Cursor. See Connect MCP from your IDE.

Verify the connection

Select your configured model in a new conversation and ask: Reply exactly TFY-CHAT-OK. Do not use tools. Confirm that a response arrives without an authentication or model error. Then verify the request in the gateway. For manual configuration and advanced options, see the Cursor integration guide.