Connect VS Code and Cursor to SNG MCP
A dedicated IDE guide for choosing your platform, copying generated setup, and securing the access token
The SNG panel generates configuration for your editor and operating system. Choose VS Code or Cursor, then Windows, macOS, or Linux; the file format and path update automatically, so you do not write the setup from scratch.
An API token is secret and is shown in full once. Never paste it into chat or commit it to Git or a public project.
- 1Step 1
Choose your IDE and platform
Open Settings → API & MCP in SNG. Select VS Code or Cursor, then Windows, macOS, or Linux. The panel displays the correct path and generated connection automatically.
- 2Step 2
Create a token for this device
Create an API token with a clear name such as Office-VSCode, a suitable expiry, and only the required scopes. Start read-only and add more scopes later.
NoteUse a different token per device so one device can be revoked safely.
- 3Step 3
Copy the generated setup
Press Copy next to the generated setup, create the file at the displayed path, and paste it. VS Code uses a project file while Cursor uses a user-level file.
- 4Step 4
Add the token without publishing it
VS Code prompts for the secret when connecting. In Cursor, replace YOUR_SNG_PERSONAL_TOKEN only in a local untracked file and keep it out of Git.
NoteFor shared projects, never place the token in a file available to teammates or CI logs.
- 5Step 5
Restart the IDE and test
Restart the editor or reload its window, open MCP tools, and confirm SNG is connected. Start with: “Only list my services.”
Configuration paths
| IDE | Windows | macOS | Linux |
|---|---|---|---|
| VS Code | <project>\.vscode\mcp.json | <project>/.vscode/mcp.json | <project>/.vscode/mcp.json |
| Cursor | %USERPROFILE%\.cursor\mcp.json | /Users/<username>/.cursor/mcp.json | /home/<username>/.cursor/mcp.json |
Quick troubleshooting
- 401: the token is wrong or expired; revoke it and create a replacement.
- 403: the token lacks the required scope or the resource does not belong to the account.
- SNG is missing: verify the file name and path, then reload the IDE window.
- Connected but empty: grant resources:read and confirm the account.
Choose the guide for your client
Each client has its own steps, so you only read the setup that applies to you.
Steps didn't work for you? Our support team is available around the clock.
