Documentation Index
Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Visual Studio Code supports MCP servers through the GitHub Copilot extension. With the Orq MCP integration, access the Orq.ai workspace directly from Copilot Chat and the editor environment.Prerequisites
- Visual Studio Code 1.99 or later
- GitHub Copilot extension installed and active
- Active Orq.ai account
- Orq.ai API key
Installation
Add MCP Server
- Open the Command Palette with
⌘⇧P(macOS) orCtrl+Shift+P(Windows/Linux) - Search for and select MCP: Add Server
- Select HTTP (HTTP or Server-Sent Events) as the server type
- Enter the server URL:
https://my.orq.ai/v2/mcp - Name the server
orqwhen prompted
.vscode/mcp.json file in the workspace root. Open it and replace the contents with:
Verify Installation
- Open Copilot Chat with
⌃⌘I(macOS) orCtrl+Alt+I(Windows/Linux) - Ask:
Available Commands
Use natural language to ask Copilot to perform these operations:Agents
Agents
create an agent with custom instructions and toolsget agent configuration for [agent-key]update agent [agent-key] with new instructions or modelconfigure agent with evaluators and guardrails
Analytics
Analytics
get analytics overview for my workspaceshow me workspace metrics for the last 7 daysquery analytics filtered by deployment ID
Datasets
Datasets
create a dataset called "customer-queries"list all datapoints in dataset [dataset-key]add datapoints to dataset [dataset-key]update datapoint [datapoint-id]delete specific datapoints in dataset [dataset-key]delete dataset [dataset-key]
Experiments
Experiments
create an experiment from dataset [dataset-key]list all experiment runsexport experiment run [run-id] as CSVrun experiment and auto-evaluate results
Evaluators
Evaluators
get evaluator configuration for [evaluator-key]create an LLM-as-a-Judge evaluator for tonecreate a Python evaluator to check response lengthadd evaluator to experiment [experiment-key]update evaluator [evaluator-key] with a new promptupdate Python evaluator [evaluator-key] with revised code
Traces
Traces
list traces from the last 24 hoursshow me traces with errorsget span details for trace [trace-id]find the slowest traces from todayshow all traces for thread [thread-id]
Models
Models
list all available chat modelslist all available embedding models
Registry
Registry
list registry keys for filtering traceslist top values for [attribute-key]
Search
Search
search for datasets named "customer"find experiments in project [project-id]list directories in project [project-id]
Documentation
Documentation
search the Orq.ai docs for [topic]
Managing Entities
Managing Entities
delete agent [agent-key]delete experiment [experiment-key]delete evaluator [evaluator-key]delete prompt [prompt-key]delete knowledge base [knowledge-base-key]
delete_dataset to delete a dataset along with all its datapoints.Usage Examples
Chat Panel Commands
Use natural language in Copilot Chat:- Generate 20 synthetic API request examples
- Use
create_datasetto create a new dataset named “API Tests” - Use
create_datapointsto add all examples to the dataset - Confirm creation with the dataset ID
- Calculate the time range for the last 24 hours
- Use
list_traceswith error status filter - Display trace IDs, error messages, and timestamps
- Provide a summary of error types and frequency
- Search for the “user-queries” dataset using
search_entities - Use
create_experimentwith two configurations (one for GPT-5.2, one for Claude Sonnet 4.6) - Run the experiment against all datapoints in the dataset
- Display the experiment ID and status
Inline Code Integration
Copilot can use Orq MCP context while coding:- Select code in the editor
- Open Copilot Chat (
⌃⌘I/Ctrl+Alt+I) - Ask about traces or analytics related to the code
- Extract the deployment key from the selected code
- Use
query_analyticswith the deployment filter - Set time range to the last 7 days
- Analyze performance metrics (requests, errors, latency, tokens)
- Provide insights and recommendations based on the data
Dataset Creation from Code
- Parse the JSON array from the editor
- Use
create_datasetto create a new dataset with an auto-generated name - Use
create_datapointsto add each entry as a datapoint - Confirm the dataset ID and number of datapoints added
Experiment Analysis
- Search for the “customer-feedback” dataset using
search_entities - Use
create_experimentwith two prompt variants (empathy-focused and brevity-focused) and auto-run enabled - Execute both variants against all datapoints automatically via the auto-run option
- Use
get_experiment_runto retrieve evaluation metrics - Compare the two variants and provide a summary of which performed better
Performance Investigation
- Use
list_traceswith today’s date filter - Sort traces by duration (descending)
- Retrieve the top 5 slowest traces
- Use
list_spansto fetch span information for each trace - Display latency breakdowns, bottlenecks, and performance insights
Synthetic Data Generation
- Generate 50 synthetic customer support questions and expected responses
- Use
create_datasetto create a dataset named “Support Training Data” - Use
create_datapointsto add all 50 examples to the dataset - Confirm creation with the dataset ID and sample of generated questions
Troubleshooting
Orq MCP Not Responding
Orq MCP Not Responding
- Open the Command Palette and run MCP: List Servers
- Select the
orqserver and choose Show Output to view logs - Restart VS Code and reconnect. VS Code will prompt for the API key again on first connection
Authentication Errors
Authentication Errors
- Confirm the API key is valid in Workspace Settings → API Keys
- Ensure the API key has the necessary permissions
- Try regenerating the API key, then restart VS Code so the input prompt appears again
Tools Not Available
Tools Not Available
- Run MCP: List Servers from the Command Palette and confirm the
orqserver status is active - Ensure GitHub Copilot is signed in and active
- Check network connectivity
- Review the server output log for error details