Connect VS Code
Use datacub in GitHub Copilot Chat in VS Code, in agent mode. Answers about numbers come with a chart in the chat.
Connect
- In datacub, open Settings, Connect and AI, pick VS Code, press Add datacub to VS Code and accept the install.
- When it asks you to sign in, sign in to datacub and press Allow.
- Open Copilot Chat in Agent mode and ask.
Or install it from a terminal:
code --add-mcp '{"name":"datacub","type":"http","url":"https://datacub.to/mcp"}'Good to know
- datacub's tools show in Copilot Chat's tools list only in agent mode.
- To install datacub in your code, ask: "Add datacub to this app." Copilot calls
get_sdk_setup, follows the steps, then checks withget_integration_status. - To keep the connection read only, use
https://datacub.to/mcp?readonly=1as the address.
Try asking
- "Using datacub, how many people used the new search this week?"
- "Is identify called after login in this app? Check datacub too."
- "Show retention for the last 8 weeks."
More in Use cases.