Connected Services Guide
The NowAIKit Main Panel shows two connected services: NowAIKit Builder (VS Code extension) and MCP Server. This guide explains what they are, how to connect them, and what you get when they're running.
What Are Connected Services?
| Service | What It Is | What It Enables |
|---|---|---|
| NowAIKit Builder | A VS Code extension for ServiceNow development — script explorer, table explorer, update set manager, and more. | Two-way script sync between browser and VS Code. Edit a Business Rule in ServiceNow and it appears in VS Code instantly. Edit in VS Code and it pushes back to the browser. |
| MCP Server | The NowAIKit MCP Server that connects AI tools (Claude, Cursor, etc.) to your ServiceNow instance with 450+ tools. | Enriched AI context for the Utils AI Assistant. Live table schemas, record metadata, and instance configuration flow into your chat for more accurate AI responses. |
How the Connection Works
NowAIKit Utils connects to Builder via a WebSocket bridge running on localhost:
Browser (NowAIKit Utils)
|
| WebSocket (ws://localhost:8765)
|
VS Code (NowAIKit Builder)
|
| REST API / OAuth
|
ServiceNow Instance
|
| MCP Protocol
|
AI Clients (Claude, Cursor, etc.)
- Utils auto-connects to Builder on every ServiceNow page load
- If Builder isn't running, Utils retries with exponential backoff (10s, 10s, 10s, then 30s)
- The connection is local only — no data leaves your machine
- Default port is 8765, configurable on both sides
Setting Up NowAIKit Builder
Follow these steps to connect NowAIKit Utils to NowAIKit Builder in VS Code.
Step 1: Install NowAIKit Builder in VS Code
Open VS Code and install the extension from the marketplace:
code --install-extension aartiq.nowaikit-builder
Or search for NowAIKit Builder in the VS Code Extensions view (Cmd+Shift+X / Ctrl+Shift+X).
Step 2: Connect to Your ServiceNow Instance
In VS Code, open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and run:
NowAIKit: Connect to Instance
You'll be prompted for:
- Instance URL — e.g.
https://dev12345.service-now.com - Authentication method — Basic Auth (username + password) or OAuth 2.0 (browser-based, supports MFA/SSO)
- Credentials — username/password for Basic Auth, or Client ID/Secret for OAuth
Once connected, you'll see the instance name in the VS Code status bar and the script/table explorers will populate.
Step 3: Start the Script Sync Bridge
The WebSocket bridge is what NowAIKit Utils connects to. Start it from the Command Palette:
NowAIKit: Start Script Sync
You'll see a sync icon in the VS Code status bar when the bridge is running.
"nowaikit-builder.syncAutoStart": true in VS Code settings to automatically start the bridge whenever you connect to an instance. This way you never have to run the command manually.
Step 4: Verify in the Browser
Open (or reload) any ServiceNow page in Chrome/Firefox. Open the NowAIKit Main Panel (Ctrl+Shift+P / Cmd+Shift+P). Under Connected Services, you should see:
- NowAIKit Builder — Connected (or your instance name)
- MCP Server — Available
Script edits now sync bidirectionally between browser and VS Code.
Setting Up the MCP Server
The MCP Server provides enriched AI context to the Utils AI Assistant. It connects through NowAIKit Builder's WebSocket bridge — Builder must be running first.
Step 1: Install the MCP Server
npx nowaikit@latest
This starts the interactive setup wizard. Follow the prompts to configure your ServiceNow instance URL and credentials.
Step 2: Configure Your AI Client
Add NowAIKit as an MCP server in your AI client's configuration. See the Client Setup Guide for detailed instructions for each client (Claude Desktop, Claude Code, Cursor, VS Code, etc.).
Step 3: Ensure Builder Is Running
The MCP Server's data flows through Builder's WebSocket bridge to the browser extension. Make sure:
- NowAIKit Builder is connected to your instance (Step 2 above)
- The Script Sync bridge is started (Step 3 above)
When both are running, the Main Panel shows MCP Server: Available.
NowAIKit: Start Script Sync first — the MCP status will update automatically.
Configuration Options
WebSocket Port
Both sides must use the same port. Default is 8765.
| Where | Setting | Default |
|---|---|---|
| VS Code (Builder) | nowaikit-builder.syncPort |
8765 |
| Browser (Utils) | bridgePort in chrome.storage.local |
8765 |
To change the port in VS Code, open Settings (Cmd+,) and search for nowaikit syncPort.
Auto-Start Sync
Enable "nowaikit-builder.syncAutoStart": true in VS Code settings to start the WebSocket bridge automatically whenever you connect to an instance.
Auto-Connect (Utils)
By default, Utils auto-connects to Builder on every page load. This can be toggled via enableBridgeAutoConnect in the extension's sync storage. When disabled, the bridge only connects when manually triggered.
What You Get When Connected
With Builder Connected
- Two-way script sync — Edit a script field in ServiceNow and it appears in VS Code. Save in VS Code and it pushes to the browser. Real-time, via WebSocket.
- Script Explorer — Browse all Business Rules, Script Includes, Client Scripts, UI Actions, etc. from VS Code's sidebar.
- Table Explorer — Browse table schemas, fields, and relationships in VS Code.
- Update Set Manager — View and switch update sets from VS Code.
- Instance Dashboard — Node status, version, stats in VS Code.
- Connected status in Main Panel — Green dot and instance name shown in the browser.
With MCP Server Connected
- Enriched AI Assistant — The Utils AI sidebar gets live table schemas, record data, and instance configuration for better AI responses.
- AI context bridge — Your AI client (Claude, Cursor, etc.) can query your instance through the MCP protocol, and that context flows into the browser extension.
- "Available" status in Main Panel — Confirms the AI context pipeline is active.
Troubleshooting
Builder shows "Not running"
- Open VS Code and check the status bar — is NowAIKit Builder connected to an instance?
- Run
NowAIKit: Start Script Syncfrom the Command Palette - Check the VS Code Output panel (select "NowAIKit" from the dropdown) for errors
- Reload the ServiceNow page in the browser
MCP Server shows "Not available"
- Builder must be running and connected first — fix the "Not running" issue above
- Make sure the MCP server is installed (
npx nowaikit@latest) and configured in your AI client - The MCP status updates automatically once Builder is connected
Connection drops / reconnects
- Utils auto-reconnects with exponential backoff (10s × 3, then 30s). No action needed.
- If VS Code restarts or the Builder extension reloads, Utils will reconnect on the next attempt.
- Check the browser DevTools console for
[NowAIKit]messages if connection keeps failing.
Port conflict
If port 8765 is already in use by another application:
- In VS Code Settings, change
nowaikit-builder.syncPortto another port (e.g. 8766) - The browser extension will detect the new port from Builder's response
- Restart the Script Sync bridge after changing the port
Firewall / Antivirus blocking
The WebSocket runs on localhost only — it never leaves your machine. If your firewall blocks local connections, add an exception for port 8765 (or your configured port) on 127.0.0.1.
Quick Reference
| Action | How |
|---|---|
| Install Builder | code --install-extension aartiq.nowaikit-builder |
| Connect to instance | VS Code: NowAIKit: Connect to Instance |
| Start bridge | VS Code: NowAIKit: Start Script Sync |
| Stop bridge | VS Code: NowAIKit: Stop Script Sync |
| Install MCP server | npx nowaikit@latest |
| Check status (browser) | Main Panel (Ctrl+Shift+P) → Connected Services |
| Change port | VS Code Settings → nowaikit-builder.syncPort |
| Enable auto-start | VS Code Settings → nowaikit-builder.syncAutoStart: true |



