Everything you need to run AI on ServiceNow
Install the toolkit, connect your AI client, set the guardrails, and start building. Fifteen guides and a complete reference on this page cover every step, every tool, and every configuration flag.
npx nowaikit --setup
Four steps from zero to production build
Each step maps to a group of guides below. Follow them in order for a first setup, or jump straight to the topic you need.
Fifteen guides, grouped by task
Every guide keeps its full detail: commands, tables, configuration examples, and troubleshooting. The sidebar below reaches every topic on this page too.
Multi-instance setup
Role-based tool packages
Connected services
SDK quickstart
SDK API reference
SDK and Fluent query
Reporting and analytics
ATF testing
Scripting management
Free for individuals, Enterprise for teams
Everything documented here works on the free tier unless marked Enterprise. Details are in the pricing section of the reference below.
The complete reference, on one page
Search the sidebar or jump to any topic: installation, client configs, authentication, permission tiers, all tool categories, apps, examples, release notes, and troubleshooting.
NowAIKit Documentation
NowAIKit is the most comprehensive, production-ready AI toolkit for ServiceNow — and the only one that truly does it all. With 400+ tools, a built-in WebUI, and a dedicated desktop app, you can manage incidents, query CMDB, deploy scripts, and automate workflows — all through natural language.
How it works
Claude, Cursor, ChatGPT…
400+ tools
Your instance
Prerequisites
Before installing NowAIKit, make sure you have the following:
Check with node --version. Download from nodejs.org.
Included with Node.js. Check with npm --version.
Developer, sandbox, or production. You'll need the instance URL and credentials.
Claude Desktop, Cursor, VS Code, ChatGPT, Gemini, or any other supported AI tool.
Installation
Install NowAIKit globally using npm:
$ npm install -g nowaikit
Or use it without installing via npx (recommended for AI client configs):
$ npx -y nowaikit
Verify the installation:
$ nowaikit --version
3.0.0
Two Ways to Run
NowAIKit supports two execution modes — choose the one that fits your workflow:
| Mode | Command | What It Does |
|---|---|---|
| MCP Server | npx -y nowaikit |
Runs as an MCP server. Connect Claude, ChatGPT, Gemini, Cursor, or any MCP-compatible AI client. 400+ tools, fluent query, batch API, execute script — the full toolkit. |
| Direct CLI (BYOK) | nowaikit run <capability> |
Run any of the 26 AI capabilities directly from your terminal without an AI client. Bring Your Own Key — supports Anthropic, OpenAI, and Ollama. |
MCP Mode — Connect Any AI Client
This is the primary mode. Start NowAIKit as an MCP server and point your AI client at it. All 400+ tools including fluent_query, batch_request, and execute_script are available to the AI automatically.
# Start the MCP server (used in AI client configs)
$ npx -y nowaikit
# With write operations enabled
$ npx -y nowaikit --allow-write
Once running, your AI can use power tools like:
- fluent_query — GlideQuery-style chained queries with
where,select,aggregate,groupBy - batch_request — bundle up to 50 operations in a single call, 50-70% fewer round-trips
- execute_script — run GlideRecord, GlideQuery, and server-side APIs directly on the instance
See Client Setup below for config examples for Claude, Cursor, VS Code, and more.
Direct CLI Mode — No AI Client Needed
Run the 26 built-in AI capabilities (scan, review, build, ops, docs) directly from your terminal. You provide your own API key — no MCP client required.
# List all 26 capabilities
$ nowaikit capabilities
# Run a capability with Anthropic
$ nowaikit run scan-health --provider anthropic
# Run with OpenAI
$ nowaikit run review-code --provider openai
# Run with local Ollama (air-gapped)
$ nowaikit run build-business-rule --provider ollama
Interactive Setup Wizard
The fastest way to get started. NowAIKit includes a guided setup wizard that walks you through connecting your instance, choosing authentication, and configuring your AI client.
$ npx nowaikit --setup
The wizard will prompt you for your instance URL, credentials, authentication method (Basic or OAuth), and generate the correct config for your chosen AI client.
Read full installation guide →Claude Desktop
Edit your Claude Desktop configuration file to add NowAIKit.
Config file location
| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
Basic Auth config
{
"mcpServers": {
"nowaikit": {
"command": "npx",
"args": ["-y", "nowaikit"],
"env": {
"SN_INSTANCE_URL": "https://your-instance.service-now.com",
"SN_USERNAME": "your-username",
"SN_PASSWORD": "your-password"
}
}
}
}
With write permissions enabled
{
"mcpServers": {
"nowaikit": {
"command": "npx",
"args": [
"-y", "nowaikit",
"--allow-write",
"--allow-cmdb"
],
"env": {
"SN_INSTANCE_URL": "https://your-instance.service-now.com",
"SN_USERNAME": "your-username",
"SN_PASSWORD": "your-password"
}
}
}
}
Restart Claude Desktop after saving the config file.
Claude Code (CLI)
Claude Code is Anthropic's CLI tool for developers. Configure NowAIKit in your .claude/config.json or pass it as a command-line flag:
$ claude --mcp-server nowaikit='npx -y nowaikit'
Or add to your project's .mcp.json for persistent configuration — same format as Claude Desktop.
Cursor
Create or edit .cursor/mcp.json in your project root:
{
"mcpServers": {
"nowaikit": {
"command": "npx",
"args": ["-y", "nowaikit"],
"env": {
"SN_INSTANCE_URL": "https://your-instance.service-now.com",
"SN_USERNAME": "your-username",
"SN_PASSWORD": "your-password"
}
}
}
}
Alternatively, add it globally via Cursor Settings → MCP → Add new global server.
VS Code & Cline
Install the Cline extension from the VS Code Marketplace, then configure NowAIKit in Cline's MCP settings:
"nowaikit": {
"command": "npx",
"args": ["-y", "nowaikit"],
"env": {
"SN_INSTANCE_URL": "https://your-instance.service-now.com",
"SN_USERNAME": "your-username",
"SN_PASSWORD": "your-password"
}
}
ChatGPT / OpenAI
Use NowAIKit with OpenAI's ecosystem including ChatGPT and Codex. The integration uses a Python wrapper that translates tool schemas to OpenAI function definitions.
Supports the latest models: GPT-4.1, o3, o4-mini, and all OpenAI function-calling models.
Read full setup guide →Google Gemini
Connect NowAIKit to Google Gemini and Vertex AI. The integration converts tool schemas to Gemini function declarations, supporting Gemini 2.5 Pro, Gemini 2.5 Flash, and all Gemini models with function calling.
Google's free-tier Gemini models are a great option for teams looking to reduce AI costs while maintaining full ServiceNow coverage.
Read full setup guide →Other Clients
Any client that supports MCP follows the same pattern. Use the npx -y nowaikit command with your credentials as environment variables.
| Client | Config file / location |
|---|---|
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| Continue.dev | ~/.continue/config.json → mcpServers |
| JetBrains | Settings → Tools → AI Assistant → Servers |
| Amazon Q | ~/.aws/amazonq/mcp.json |
| Zed | ~/.config/zed/settings.json → context_servers |
| GitHub Copilot | .github/copilot-instructions.md + MCP extension |
Environment Variables
NowAIKit is configured via environment variables. Create a .env file in your project directory or set them in your AI client's config.
| Variable | Required | Description |
|---|---|---|
SN_INSTANCE_URL |
Required | Full URL of your ServiceNow instance, e.g. https://dev12345.service-now.com |
SN_USERNAME |
Basic Auth | ServiceNow username for Basic Authentication |
SN_PASSWORD |
Basic Auth | ServiceNow password for Basic Authentication |
SN_OAUTH_CLIENT_ID |
OAuth | OAuth 2.0 client ID |
SN_OAUTH_CLIENT_SECRET |
OAuth | OAuth 2.0 client secret |
SN_OAUTH_TOKEN_URL |
OAuth | OAuth token endpoint, typically /oauth_token.do |
SN_PERSONA |
Optional | Role-based package to activate, e.g. developer, architect |
Basic Authentication
The simplest way to connect. Use a dedicated ServiceNow service account rather than a personal account.
SN_INSTANCE_URL=https://your-instance.service-now.com
SN_USERNAME=your-service-account
SN_PASSWORD=your-password
.env file. Add it to .gitignore. Use a dedicated service account with the minimum required ServiceNow roles.
OAuth 2.0
Recommended for production environments. Requires an OAuth application registered in your ServiceNow instance.
Step 1 — Create an OAuth application in ServiceNow
- Navigate to System OAuth › Application Registry
- Click New → Create an OAuth API endpoint for external clients
- Set a name, note the Client ID and Client Secret
- Set the Token Lifespan and Refresh Token Lifespan as needed
Step 2 — Configure NowAIKit
SN_INSTANCE_URL=https://your-instance.service-now.com
SN_OAUTH_CLIENT_ID=your-client-id
SN_OAUTH_CLIENT_SECRET=your-client-secret
SN_OAUTH_TOKEN_URL=https://your-instance.service-now.com/oauth_token.do
SN_USERNAME=your-username
SN_PASSWORD=your-password
SSO / OIDC (Enterprise)
Enterprise tier supports single sign-on via industry-standard protocols. Connect NowAIKit to your organisation's identity provider for seamless, secure authentication.
| Provider | Protocol | Status |
|---|---|---|
| Okta | OIDC / SAML 2.0 | Supported |
| Microsoft Entra ID (Azure AD) | OIDC | Supported |
| Ping Identity | OIDC | Supported |
| Any OIDC Provider | OIDC | Compatible |
Multi-Instance Setup
NowAIKit supports connecting to multiple ServiceNow instances simultaneously. Use numbered environment variables to define each instance:
# Primary instance (default)
SN_INSTANCE_URL=https://prod.service-now.com
SN_USERNAME=svc-account
SN_PASSWORD=prod-password
# Secondary instance
SN_INSTANCE_2_URL=https://dev12345.service-now.com
SN_INSTANCE_2_USERNAME=svc-account
SN_INSTANCE_2_PASSWORD=dev-password
SN_INSTANCE_2_NAME=Development
Then ask your AI to switch instances by name: "Switch to the Development instance" or "Connect to my staging environment."
Permission Tiers
NowAIKit uses a five-tier security model. Tier 0 is always active. All higher tiers require explicit flags.
default--allow-write--allow-cmdb--allow-scripting--allow-agenticEnabling Permissions
Pass permission flags as arguments in your AI client's MCP config:
"args": [
"-y", "nowaikit",
"--allow-write",
"--allow-cmdb",
"--allow-scripting",
"--allow-agentic"
]
--allow-scripting on development or test instances. Deploying to production should go through your normal change management process.
Persona Packages
Persona packages pre-configure the tools exposed to your AI based on your role. Set one via the SN_PERSONA environment variable.
| Package name | Role | Focus areas |
|---|---|---|
developer | ServiceNow Developer | Scripts, update sets, ATF, Flow Designer, APIs |
architect | Solution Architect | Full platform access, multi-instance, governance |
service-desk | Service Desk Agent | Incidents, requests, knowledge, approvals |
admin | System Administrator | Platform config, user management, security |
msp | Managed Service Provider | Multi-tenant, customer instances, reporting |
itom | IT Operations Manager | Events, alerts, CMDB discovery, monitoring |
hrsd | HR Specialist | HR cases, employee journeys, knowledge |
csm | Customer Service Manager | Cases, accounts, entitlements, SLAs |
security | Security Analyst | SecOps, vulnerabilities, threat intelligence |
grc | GRC Specialist | Risks, controls, audits, compliance |
itam | Asset Manager | Hardware/software assets, contracts, lifecycle |
pa | Performance Analyst | Dashboards, indicators, targets, breakdowns |
flow | Flow Designer Specialist | Flows, subflows, actions, triggers |
readonly | Read-Only User | Query and report only — no write access |
SN_PERSONA=developer
400+ Tools Across 32 Categories
Every tool is production-ready, tested, and works autonomously. Here's what's included in each module.
Incident Management
7 tools
- create_incident
- get_incident
- update_incident
- resolve_incident
- close_incident
- add_work_note
- add_comment
Problem Management
4 tools
- create_problem
- get_problem
- update_problem
- resolve_problem
Change Management
5 tools
- get_change_request
- list_change_requests
- update_change_request
- submit_change_for_approval
- close_change_request
Task Management
4 tools
- get_task
- list_my_tasks
- update_task
- complete_task
Core & CMDB
15+ tools
- Record query & schema
- CMDB CI management
- ITOM Discovery
- MID Server
- CI relationships
Knowledge Base
6 tools
- list_knowledge_bases
- search_knowledge
- get_knowledge_article
- create_knowledge_article
- update_knowledge_article
- publish_knowledge_article
User & Group Management
8 tools
- list_users
- create_user
- update_user
- list_groups
- create_group
- update_group
- add_user_to_group
- remove_user_from_group
Service Catalog
8+ tools
- Catalog browsing & ordering
- Item create/update
- Approval workflows
- SLA tracking
HRSD
12 tools
- create_hr_case
- get_hr_case
- update_hr_case
- close_hr_case
- list_hr_services
- get_hr_profile
- list_hr_tasks
- create_hr_task
CSM
11 tools
- create_csm_case
- get_csm_case
- update_csm_case
- close_csm_case
- get_csm_account
- list_csm_accounts
- get_csm_case_sla
Now Assist & AI
10+ tools
- nlq_query
- ai_search
- generate_summary
- suggest_resolution
- categorize_incident
- trigger_agentic_playbook
- generate_work_notes
Scripting
16+ tools
- Business rules CRUD
- Script includes CRUD
- Client scripts CRUD
- UI Policies
- UI Actions
- ACL management
- Changesets
Flow Designer
10 tools
- list_flows
- get_flow
- trigger_flow
- get_flow_execution
- list_subflows
- get_subflow
- Process Automation
ATF Testing
9 tools
- list_atf_suites
- run_atf_suite
- list_atf_tests
- run_atf_test
- get_atf_suite_result
- get_atf_failure_insight
Security Ops & GRC
11 tools
- create_security_incident
- list_vulnerabilities
- get_vulnerability
- list_grc_risks
- list_grc_controls
- get_threat_intelligence
Reporting & Performance Analytics
21+ tools
- Aggregate queries
- Trend analysis
- Create/update reports
- PA indicators
- Dashboards
- Data quality checks
Service Portal & UIB
14+ tools
- Portal/page creation
- Widget create/deploy
- Portal themes
- Next Experience apps
- UI Components
Integration Hub
19+ tools
- REST Messages CRUD
- Transform Maps
- Import Sets
- Event Registry
- OAuth apps
- Credential aliases
Notifications
12 tools
- Email notifications CRUD
- Email logs
- File attachments
- Templates
- Subscriptions
Agile & Scrum
9 tools
- Stories CRUD
- Epics
- Sprints
- Scrum tasks
Virtual Agent
7 tools
- Topic authoring
- Conversation history
- Categories
- Topic listing
IT Asset Management
8 tools
- Assets CRUD
- Software licenses
- Contracts
- Compliance reporting
DevOps & Pipelines
7 tools
- list_devops_pipelines
- list_deployments
- create_devops_change
- track_deployment
- get_devops_insights
System Properties
12 tools
- get_system_property
- set_system_property
- list_system_properties
- Bulk operations
- Export/import
Update Sets
8 tools
- get_current_update_set
- create_update_set
- switch_update_set
- complete_update_set
- preview_update_set
- export_update_set
App Studio
4 tools
- list_scoped_apps
- get_scoped_app
- create_scoped_app
- update_scoped_app
Machine Learning
5+ tools
- Predictive Intelligence
- Model management
- Predictions
Documentation Hub
Deep-dive guides for every aspect of NowAIKit. Click any card to read the full documentation.
ITSM
IT Service Management tools cover the full incident lifecycle, change management, problem management, and service requests.
- Create, update, resolve, close incidents
- Set priority, category, assignment group
- Add work notes and comments
- Manage SLAs and escalations
- Query by any field with full filtering
- Create normal, standard, and emergency changes
- Submit for CAB review and approval
- Manage risk assessments
- Schedule and implement changes
- Track implementation tasks
- Create and manage problem records
- Link incidents to problems
- Create service catalog requests
- Handle request items and approvals
- Manage request fulfilment tasks
ITOM & CMDB
IT Operations Management and Configuration Management Database tools for infrastructure visibility and operations.
- Query and update Configuration Items
- Manage CI relationships
- Create and update CI classes
- Run discovery queries
- Health scoring and compliance
- Query and manage events and alerts
- Correlate events to CIs
- Create incidents from alerts
- Manage alert rules
HRSD & CSM
- Create and manage HR cases
- Handle employee journeys and onboarding
- Manage HR knowledge articles
- Track HR tasks and approvals
- Manage customer cases and accounts
- Handle entitlements and contracts
- Customer SLA management
- Case escalation and routing
Development Tools
- Create and update Script Includes
- Manage Business Rules and UI Policies
- Create and deploy update sets
- Manage transform maps and integrations
- REST API builder
- Create and run test cases
- Manage test suites
- Schedule automated test runs
- View test results and logs
- Create and trigger flows
- Manage subflows and actions
- Debug flow execution
- Integration Hub connections
Platform & Admin
- Create and publish knowledge articles
- Manage knowledge bases
- Handle article workflows and approvals
- Query indicators and breakdowns
- Manage dashboards and widgets
- Schedule data collections
- Manage users, groups, and roles
- Handle group membership
- On-call rotation management
SecOps & GRC
- Manage security incidents and vulnerabilities
- Threat intelligence integration
- Security incident response workflows
- Vulnerability tracking and remediation
- Risk assessment and management
- Policy and control monitoring
- Audit management and tracking
- Compliance reporting
Agile & Scrum
- Stories, epics, sprints, and scrum tasks — full CRUD
- Sprint planning and backlog management
- Story point tracking and velocity
- Scrum board management
Virtual Agent
- Topic authoring and management
- Conversation history and analytics
- Category management
- Topic listing and deployment
IT Asset Management
- Hardware and software asset CRUD
- Software license management
- Contract tracking
- Compliance reporting and audits
DevOps & Pipelines
- Pipeline listing and management
- Deployment tracking and history
- DevOps change creation
- DORA metrics and insights
Notifications & Attachments
- Email notification CRUD and templates
- Email logs and audit trails
- File attachment upload, list, and delete
- Notification subscriptions
- Binary file support (base64 upload)
System Properties & Update Sets
- Get, set, list, delete, and search properties
- Bulk operations and validation
- Export/import and audit history
- Create, list, switch, and complete update sets
- Preview and export update sets
- Ensure active update set before changes
Machine Learning & App Studio
- Predictive Intelligence predictions
- Model management and training
- List, get, create, and update scoped applications
- Scoped app management
Desktop App
NowAIKit includes a native desktop application built with Electron, available for macOS, Windows, and Linux. Features include:
- System tray integration with quick access
- Multi-window support for parallel workflows
- Slash-command tool picker — type
/to browse all 400+ tools @context references for quick navigation- Multi-provider AI chat built-in
- Keyboard shortcuts and hotkeys
- Automatic updates
Web Dashboard & AI Chat
Access NowAIKit from any browser with the built-in web dashboard. Includes multi-provider AI chat supporting:
- Claude Opus 4.6 / Sonnet 4.6
- Claude Haiku 4.5
- + all latest Claude models
- GPT-4.1 / GPT-4.1 mini
- o3 / o4-mini
- All function-calling models
- Gemini 2.5 Pro
- Gemini 2.5 Flash
- Vertex AI integration
- Groq (ultra-fast inference)
- OpenRouter (100+ models)
- Bring your own API key
Running out of credits with one provider? Switch to another instantly — no coding, no config changes, just click.
HTTP API Server
NowAIKit includes a REST API wrapper that exposes all 400+ tools as HTTP endpoints. Perfect for web apps, dashboards, and custom integrations.
$ npm run serve
# or
$ node dist/http-server.js
Build custom apps with Lovable, v0, Bolt, or any web framework — connect to ServiceNow through NowAIKit's REST API.
Slash Commands
Type / in the chat input to open a floating picker over all 400+ ServiceNow tools. Browse by category, search by name, and insert any tool directly into your conversation.
Use @ to reference context — mention instances, tables, records, or recent results for faster workflows.
Now Assist (AI)
10 AI-native tools that integrate with ServiceNow's Now Assist platform features:
| Tool | Description |
|---|---|
now_assist_nlq | Natural Language Query — ask questions in plain English, get structured results |
now_assist_ai_search | AI-powered semantic search across your instance |
now_assist_summarize | Generate summaries of records, incidents, or changes |
now_assist_suggest_resolution | Get AI-powered resolution suggestions for incidents |
now_assist_categorize | Predictive intelligence for auto-categorization |
now_assist_playbook | Agentic playbooks for multi-step orchestration |
Reporting & Analytics
13 tools for querying data, building Performance Analytics dashboards, scheduling reports, and exporting results. Ask your AI to generate reports in natural language.
Read full reporting guide →ATF Testing
9 tools for ServiceNow's Automated Test Framework. Run test suites, get failure insights, and manage test cases — all through natural language.
Read full ATF guide →Scripting & Code Management
27 tools across 7 domains: Business Rules, Script Includes, Client Scripts, UI Policies, UI Actions, ACLs, and Update Sets. Create, review, update, and deploy code — all from your AI chat.
--allow-scripting flag. Use on dev/test instances only.SDK & Fluent Query
Three power tools for advanced ServiceNow operations: fluent_query (GlideQuery-style chained queries), batch_request (multi-operation batching, 50-70% fewer round-trips), and execute_script (server-side Background Script execution).
fluent_query — GlideQuery-style queries
Build complex queries with familiar GlideQuery patterns: where, orWhere, select, aggregate (COUNT/AVG/SUM/MIN/MAX), groupBy, orderBy, and limit. Supports dot-walking and display values.
{
"table": "incident",
"where": [["active","=",true], ["priority","<",3]],
"select": ["number","short_description","caller_id.email"],
"orderBy": "-sys_created_on",
"limit": 10
}
batch_request — Multi-operation batching
Execute up to 50 REST operations in a single HTTP call. Reduces round-trips by 50-70%, ideal for dashboards and bulk operations.
{
"operations": [
{ "id": "inc", "method": "GET", "url": "/api/now/table/incident?sysparm_limit=5" },
{ "id": "chg", "method": "GET", "url": "/api/now/table/change_request?sysparm_limit=5" },
{ "id": "prb", "method": "GET", "url": "/api/now/table/problem?sysparm_limit=5" }
]
}
execute_script — Server-side scripting
Run GlideRecord, GlideQuery, GlideAggregate, and all server-side APIs directly on the instance. Requires --allow-write.
var gr = new GlideRecord('incident');
gr.addEncodedQuery('active=true^priority=1');
gr.query();
gs.print('P1 count: ' + gr.getRowCount());
Flow Designer
Create and manage flows, subflows, and actions through natural language. Integrates with Integration Hub for connecting to external systems.
- Create and trigger flows
- Manage subflows and reusable actions
- Debug flow execution and view logs
- Integration Hub connections to 3rd-party systems
Audit Logging
Enterprise tier includes comprehensive audit logging for compliance and security. Every tool execution is logged with user, timestamp, action, and result.
- JSONL format — machine-readable, easy to parse
- SIEM webhooks — stream to Splunk, Sentinel, or any SIEM
- Per-user context — track who did what, when, and on which instance
Pricing & Licensing
NowAIKit uses a two-tier licensing model:
| Feature | Free | Enterprise |
|---|---|---|
| Tools | All 400+ | All 400+ |
| Authentication | Basic, OAuth, SSO | Basic, OAuth, SSO |
| ServiceNow modules | All 31+ | All 31+ |
| AI client support | All | All |
| Instances | 1 | Unlimited |
| Desktop app | — | Yes |
| Web dashboard & AI chat | — | Yes |
| SSO / OIDC | — | Yes |
| Audit logging & SIEM | — | Yes |
Incidents & Changes
These are plain-language prompts you can give to your AI client. NowAIKit translates them to ServiceNow API calls.
Create a P1 incident for the payment gateway being down. Assign it to Platform Engineering and add a note that the DB team is investigating.
Created INC0045821 — "Payment Gateway Outage" · Priority 1 · Assigned to Platform Engineering · Work note added.
Show me all open P1 and P2 incidents assigned to my team that haven't been updated in the last 4 hours.
Found 3 incidents matching your criteria: INC0045820 (P1, 6h stale), INC0045815 (P2, 5h stale), INC0045802 (P2, 4.5h stale).
Create an emergency change for tonight's firewall update. Risk level high. Schedule for 11pm–1am.
Created CHG0032109 — Emergency Change · High risk · Scheduled 23:00–01:00 · Sent for CAB approval.
Scripting & Deployment
--allow-scripting flag. Use on dev/test instances.Write a Script Include that auto-assigns incidents to the on-call group based on category, then deploy it to the current update set.
Created Script Include IncidentAutoAssign · Added to update set DEV-Sprint-42 · Run ATF tests? (3 test cases available)
Run all ATF tests in the "Incident Management" suite and show me the results.
Test run complete · 12/12 passed · 0 failures · Duration: 47s. All tests green.
Reporting & Analytics
Give me a weekly summary of incident volumes by category and average resolution time for each.
This week: Network (34 incidents, avg 2.1h), Software (28, avg 4.3h), Hardware (15, avg 6.8h), Other (9, avg 3.2h).
Which CMDB configuration items have the most incidents linked to them this quarter?
Top 3: Payment Gateway API (47 incidents), Auth Service (31), Customer DB Primary (28). Shall I create problem records for these?
v4.0.0 Features in Action
Practical examples for the major v4.0.0 capabilities: HTTP transport, dynamic schema discovery, A2A protocol, and the REST API.
Running with HTTP Transport
Start NowAIKit as a Streamable HTTP server accessible to any HTTP client or agent framework.
# Start NowAIKit as an HTTP server on port 3000
$ TRANSPORT=http PORT=3000 npx nowaikit
# Output:
# NowAIKit v4.0.0 — Streamable HTTP on http://localhost:3000
# Dashboard: http://localhost:3000/
# MCP endpoint: http://localhost:3000/mcp
# REST API: http://localhost:3000/api/*
# A2A: http://localhost:3000/.well-known/agent.json
Dynamic Schema Discovery
Ask your AI to discover any ServiceNow table — including custom ones. NowAIKit reads the schema and auto-generates 5 typed CRUD tools.
Discover the u_custom_app table
Discovered u_custom_app (12 columns). Generated 5 tools:
u_custom_app_list · u_custom_app_get · u_custom_app_create · u_custom_app_update · u_custom_app_delete
All tools are now available for this session.
create, update, delete) require the --allow-write flag. Without it, only list and get are generated.A2A Agent Discovery
NowAIKit exposes a Google A2A agent card so other agents can discover its capabilities automatically.
$ curl http://localhost:3000/.well-known/agent.json
# Response (abbreviated):
{
"name": "NowAIKit",
"description": "400+ ServiceNow tools via MCP",
"url": "http://localhost:3000",
"capabilities": {
"streaming": true,
"pushNotifications": false
},
"skills": [
{ "id": "incident-management", "name": "Incident Management" },
{ "id": "change-management", "name": "Change Management" },
...
]
}
REST API Usage
Call NowAIKit tools directly via HTTP — no MCP client required. Useful for scripts, CI/CD pipelines, and custom integrations.
# List all available tools
$ curl -H "Authorization: Bearer $NOWAIKIT_API_KEY" http://localhost:3000/api/tools
# Call a tool directly
$ curl -X POST http://localhost:3000/api/tool \
-H "Authorization: Bearer $NOWAIKIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"get_incident","arguments":{"number":"INC0010001"}}'
# Response:
{
"result": {
"number": "INC0010001",
"short_description": "Email server unreachable",
"state": "In Progress",
"priority": "2 - High"
}
}
See the Transport Configuration section for full endpoint reference and authentication details.
What's New
Stay up to date with the latest NowAIKit releases, features, and improvements.
v4.1.0
Latest-
dry_runon every write — preview the resolved payload and a before→after diff without touching the instance - Structured JSONL audit log — who / instance / tool / table / sys_id / result on every mutating call
-
Write guardrails — config-driven table & field denylist plus scope confinement (e.g. write only
x_*) -
search_toolsdynamic tool discovery — lean core set that expands on demand (fixes 400-tool context bloat);MCP_TOOL_DISCOVERY=lean -
validate_query— check ServiceNow encoded queries before they run - MCP Elicitation — confirmation gate on destructive ops (delete / retire / publish / background script)
- Structured tool output (JSON Schema 2020-12) — typed objects for records and schemas
-
bulk_createwith a one-call rollback token;compare_instancesfor config / property / ACL / update-set deltas - Google Gemini provider in BYOK direct mode; cross-platform Agent Skills (incident triage, CMDB health audit, safe deployment)
NowAIKit Cloud 0.1
New- Hosted and self-hostable web app — sign in with GitHub, Google, or enterprise OIDC SSO
- Multi-instance connections — basic auth or automated OAuth provisioning (admin password used once, never stored)
- BYOK agentic AI assistant — Anthropic, OpenAI, OpenRouter, Groq, Gemini, Ollama, and Claude CLI
- AI Capabilities, KPI dashboard, sessions & history, and audit logs (optional Postgres persistence)
- Live at nowaikit-cloud.vercel.app · deploy your own with SSO & air-gap support
SDK v2.1.0
SDK-
Real schema via
sys_dictionary— type, mandatory, reference, choices, with inheritance (replaces sample-row inference) -
Auto-pagination —
iterateRecords()async iterator andgetAllRecords() - Full attachment API — list, download, and delete (not just upload)
- OAuth refresh-token, client-credentials, and JWT-bearer grants with a token-persistence callback
-
Request hooks (
onRequest/onResponse/onRetry) with secret redaction -
429 /
Retry-Afterhandling, batch auto-chunking, Import Set API, andgetInstanceStats() -
@nowaikit/sdk/mcpadapter — reuse the SDK as MCP tool handlers (shared core)
v4.0.0
April 2026- SSE & Streamable HTTP transport — run as a web server with dashboard, REST API, and auth
- Google A2A protocol — first ServiceNow toolkit with agent-to-agent interop
-
Dynamic schema discovery —
discover_tableauto-generates CRUD tools for any table - 15+ new tools — Now Assist skills, AI agents, CMDB reconciliation, orchestration, Fluent SDK
-
Web dashboard — dark-theme tool explorer at
/with search and stats -
REST API at
/api/*— HTTP endpoints for tools, resources, prompts, instances -
Encoded query syntax reference —
@query-syntaxresource for ServiceNow encoded queries - Build-ATF-Suite capability — guided 7-step prompt for generating ATF test suites
v3.0.0
- 26 AI capabilities merged into core: scan, review, build, ops, docs
- Direct execution mode (BYOK) — use your own API key with Anthropic, OpenAI, or Ollama
-
nowaikit run <capability>CLI command for standalone execution -
nowaikit capabilitiescommand to list all 26 AI capabilities - Lazy-loaded capability prompts — zero performance overhead for MCP clients
- Total: 400+ tools + 26 capabilities + direct mode
v2.6.0
-
Generic CRUD tools:
create_record,update_record,delete_recordfor any table -
Fluent Query (
fluent_query) — GlideQuery-style chained queries with where, select, aggregate, groupBy -
Batch API (
batch_request) — multi-operation batching, 50-70% fewer round-trips -
Server-side scripting (
execute_script) — run GlideRecord/GlideQuery on the instance - Fixed permission gating defect — Now Assist check no longer blocks unrelated tools
- 400+ total tools across 32 categories
v2.5.3
-
Published to MCP registry as
io.github.aartiq/nowaikit -
Architecture-specific installer filenames (
nowaikit-x64,nowaikit-arm64)
v2.5.0
-
nowaikit webcommand — launch web dashboard vianpx nowaikit web -
ESM compatibility fix (
serve.js→serve.cjs)
v2.0.0
Major- 365+ ServiceNow tools across all modules
- Support for ITSM, ITOM, CMDB, CSM, HR, Security, DevOps, and more
- Multi-instance management
-
5-tier permission model (
read_only→full_admin) - Natural language search and Now Assist integration
Coming Soon
Roadmap- ServiceNow Australia release compatibility testing
- OAuth Authorization Code flow for per-user delegated access
- AI agent marketplace — pre-built agent templates for common ServiceNow workflows
Detailed Release Notes
NowAIKit v4.0.0 Core · April 2026
Major release bringing multi-transport support, the A2A protocol, a full REST API, a web dashboard, dynamic schema discovery, and 15+ new tools.
Transport Layer
- SSE and Streamable HTTP transport — set
TRANSPORT=sseorTRANSPORT=http - Built-in HTTP server with CORS support and auth middleware via
NOWAIKIT_API_KEY - Health endpoint at
/healthfor monitoring and load-balancer probes
A2A Protocol (Agent-to-Agent)
- Agent card published at
/.well-known/agent.json - Task lifecycle: send, subscribe (SSE streaming), get, cancel
- Auto-maps all 400+ MCP tools to A2A skills, organized by ServiceNow domain
REST API & Dashboard
- Complete HTTP API under
/api/*for programmatic access - Dark-theme web dashboard at
/with tool explorer and full-text search - Stats cards showing tool counts, categories, and uptime
Dynamic Schema Discovery
discover_tableintrospects any ServiceNow table at runtime viasys_dictionary- Auto-generates 5 CRUD tools per discovered table
- TTL-cached schema with 10-minute default, configurable via
SCHEMA_CACHE_TTL
New Tools (15+)
- Now Assist Skills:
create_now_assist_skill,list_now_assist_skills,get_now_assist_skill,test_now_assist_skill - AI Agents:
create_ai_agent,list_ai_agents,get_ai_agent,create_agentic_workflow - CMDB Reconciliation: find duplicate, orphaned, and stale CIs with dry-run mode
- Orchestration: create, execute, and list orchestration playbooks
- Fluent SDK:
fluent_explain,fluent_init,fluent_build,fluent_validate - ML Enhanced: similar incident detection, auto-categorization with confidence thresholds
Other Additions
- Encoded Query Reference:
@query-syntaxresource for AI clients - Build-ATF-Suite: guided 7-step prompt for generating complete ATF test suites
NowAIKit SDK v2.0.0 SDK · April 2026
TypeScript/JavaScript SDK for building custom integrations on top of NowAIKit.
- A2A client — inter-agent communication via the Google A2A protocol
- OAuth PKCE authentication flow for browser-based and CLI clients
- Response streaming — subscribe to SSE streams for long-running tool executions
- Schema cache with TTL — local caching of table schemas to reduce API calls
- Now Assist skill client — invoke portable skills programmatically
- Fluent SDK type definitions — full TypeScript types for
@servicenow/sdkconstructs - 34 unit tests covering all client methods and edge cases
NowAIKit Builder v1.1.0 Extension · April 2026
VS Code extension for ServiceNow development with AI assistance.
- Fluent SDK panel and service — explore, scaffold, and build Fluent apps from the editor sidebar
- A2A agent discovery panel — browse and connect to A2A-compatible agents
- New GitHub Copilot agents —
@fluentand@a2aagents for Copilot Chat
NowAIKit Utils v1.2.0 Extension · April 2026
Browser extension for ServiceNow power users.
- A2A agent discovery panel — discover and interact with A2A agents from within the ServiceNow UI
- CMDB relationship visualizer — interactive graph view of CI relationships and dependencies
- Incident timeline view — chronological visualization of incident lifecycle events
- Fluent SDK detector — automatically detects Fluent-based components on the current page
Upgrade Notes v3.x → v4.0
- The default transport remains
stdio. SSE and HTTP transports are opt-in via theTRANSPORTenvironment variable. - If upgrading from v3.x, no breaking changes to existing tool names or parameters.
- A2A protocol features require
TRANSPORT=sseorTRANSPORT=httpto be active. - The
NOWAIKIT_API_KEYvariable is strongly recommended when using HTTP-based transports.
Troubleshooting
Connection refused / Cannot connect to instance
- Verify
SN_INSTANCE_URLincludeshttps://and no trailing slash - Check your network can reach the instance (try opening the URL in a browser)
- Ensure the instance is not hibernating (common on free developer instances)
Authentication failed (401)
- Double-check username and password (case-sensitive)
- Confirm the user account is active and not locked in ServiceNow
- If using OAuth, verify the client ID/secret and token URL are correct
- Ensure the service account has at least the
snc_read_onlyrole
Tools not appearing in AI client
- Restart your AI client after changing MCP config
- Check the MCP config JSON is valid (no trailing commas)
- Run
npx -y nowaikitdirectly in terminal to see startup errors - Verify Node.js 20+ is installed:
node --version
Write operations failing (403)
- Ensure
--allow-writeflag is in your MCP configargs - Verify the ServiceNow user has the required write roles for that table
- Check ServiceNow ACLs aren't blocking the operation for that user
Getting help
If your issue isn't listed above, open an issue on GitHub with the error message and your Node.js / NowAIKit version.
Ready to get started?
Install NowAIKit and connect your first AI assistant to ServiceNow in under 5 minutes.



