Requirements
Every person who wants to use the MCP Server must complete the setup. To do this, you’ll need:- For VS Code:
- To have the latest version of VS Code installed on your computer
- Access to Copilot, which VS Code uses to run its AI in Agent mode
- An Omni API key. Refer to the API documentation for more information.
Setup
1
Add the MCP Server
-
In VS Code, open the Command Palette (Mac -
⌘ + Shift + P, Windows -Ctrl + Shift + P). -
Search for
MCPand selectMCP: Add Server. -
Select
HTTP (HTTP or Server-Sent events)for the MCP Server type and press Enter. -
Paste your Omni instance URL and append it with
/mcp/https. For example:Press Enter. -
Enter a name for the MCP Server, such as
Omni MCP. Press Enter. -
Select
Workplace Settingsand press Enter.
2
Configure the MCP Server
A
.vscode/mcp.json file should have been created in your project.-
Open the file. At this point, it should look something like this:
Blank .vscode/mcp.json
-
Update your
mcp.jsonfile to include theinputsandheadersobjects:Example VS Code MCP configuration -
You’ll need to make a few changes to complete the setup. In the
mcp.json, fill in the following:-
<YOUR_OMNI_INSTANCE>- Required. The URL of your Omni instance, for example:https://blobsrus.omniapp.co. This will be appended with/mcp/https, which tells VS Code what type of MCP Server is being used. -
<OMNI_API_KEY>- Required. Your Omni API key. -
<OPTIONAL_OMNI_MODEL_ID>- Optional. The ID of the model to scope the MCP Server to. If not provided, the MCP Server will use thepickModeltool to dynamically select a model. You can retrieve a model ID by opening the model in Omni’s model IDE and looking at the URL. The string between/models/and/ide/is the model ID: -
<OPTIONAL_TOPIC_NAME>- Optional. If provided, the MCP Server will be scoped only to this topic. Remove this parameter to allow dynamic topic switching. -
<true/false>- Optional. If true, the MCP Server will require a User ID to execute queries with the permissions of the given user. Defaults to false. -
<USER_ID>- Optional. If provided, the MCP Server will be scoped to this User ID. IDs can be pulled using the List Users API.
-
- Save the file.
3
Start the MCP Server
Before you can use the server, you’ll need to start it:
- Open the Command Palette again (Mac -
⌘ + Shift + P, Windows -Ctrl + Shift + P). - Search for
MCPand selectMCP: List Servers. - The
Omniserver should display in the list of servers. Click the server. - A list of commands will display. Click
Start Server.
VS Code Copilot + MCP
Once the MCP Server is available, VS Code will automatically be able to use it in chat when it receives a relevant prompt. You can prompt VS Code to use Omni by referring to it by name or description.- Open the chat panel (Mac -
⌃ + ⌘ + I, Windows -Ctrl + Alt + P). - Select Agent mode.
- Enter a prompt, such as
Hey Omni, tell me how many users have been sourced by search and emailand submit it to the chat. - By default, when a tool is invoked, you need to confirm the action before VS Code will run it. Click Continue to proceed.
- The MCP Server will pick a model (if not configured) and topic, and then run a query to retrieve the data.