VS Code - Connect the MCP
Register the server in mcp.json with type http and use it through Copilot Chat in agent mode.
In VS Code, MCP servers are used by GitHub Copilot Chat in agent mode. NicoChat goes into mcp.json as a server of type http; on startup, VS Code detects the OAuth and asks you to authorize in the browser.
- Server URL:
https://mcp.nicochat.com/mcp. It is the only information the client asks for; there is no API key to copy. - A NicoChat account with a workspace on a paid or trial plan, and you as its owner or admin.
- VS Code up to date with the GitHub Copilot Chat extension and a Copilot subscription.
- In organizations, the GitHub admin needs to have the MCP server policy enabled.
nicochat..vscode/mcp.json, a file that can go into the repository.mcp.json file, click Start above the server. VS Code shows that the server requires authentication and opens the browser on the NicoChat authorization. Log in, choose permissions and validity and confirm.If you prefer to write the file by hand, this is the content of .vscode/mcp.json. Note that the key is servers and the type field is required:
{
"servers": {
"nicochat": {
"type": "http",
"url": "https://mcp.nicochat.com/mcp"
}
}
}Whatever the client, authorization happens in the browser, on the NicoChat page. You log in, choose the permissions (read and analytics is always granted; configuration, contacts, integrations and campaigns are optional) and the validity of the connection: 1, 7, 30 or 90 days, or no expiration. The tools the assistant sees depend on what you checked here — to expand later, just reconnect.
With the connection in place, ask Copilot in natural language. Some examples that use read only:
- "List my workspaces and the channels in each one."
- "How many contacts entered the WhatsApp channel in the last 7 days and what is the average first response time?"
- "Summarize the structure of channel X: flows, triggers, AI agents and kanban boards."
- "Which keywords are configured in channel X and where does each one lead?"
If you granted configuration, the assistant also creates flows, triggers, tags and AI agents. Everything it creates inside a flow stays as a draft until you publish it in NicoChat.
- In the client: run MCP: List Servers, choose nicochat and Uninstall, or delete the block from
mcp.json. - In NicoChat: in Account Settings, revoke the authorization. The effect is immediate, even if the server is still registered in the client.
mcp.json needs "type": "http" or "type": "stdio". Without the field, VS Code rejects the block.
