Fluent MCP Server
An MCP server and AI skill suite that brings ServiceNow Fluent SDK (@servicenow/sdk) capabilities, API specifications, code snippets, and security reviews to AI-assisted development environments.
Built for @servicenow/[email protected].
Key Features
- 16 MCP Tools — 14 ServiceNow SDK CLI command tools (
sdk_info, init, build, deploy, transform, dependencies, download, clean, pack, explain, query, cicd_fluent_app, cicd_fluent_test, fluent_exec_script) plus 2 knowledge/auth tools (get_fluent_knowledge, check_auth_status).
- 76 ServiceNow Metadata Types — Packaged API specs (
sn-spec://), authoring instructions (sn-instruct://), runnable snippets (sn-snippet://), and workflow prompts (coding_in_fluent, create_custom_ui).
- AI Agent Skills — Built-in skills (
fluent-cli, fluent-security-review, fluent-general-review, fluent-perf-review, and fluent-domain-separation-review) installable as a plugin for Claude Code, Codex, Copilot, and other skill-enabled agents.
- Lazy Auto-Authentication — Resolves and caches an SDK auth profile matching
SN_INSTANCE_URL on first use.
- Explicit Working Directory Resolution — Resolves project paths in strict order:
workingDirectory argument → session (init_fluent_app) → FLUENT_MCP_WORKING_DIR → actionable error. Never guesses from process.cwd().
- Dual-Era MCP Protocol — Serves both current and legacy MCP protocol revisions over stdio from a single handler set, with zero server-initiated requests.
MCP Setup
Requirements: Node.js >=22.23.2 and npm >=10.9.8.
Add @modesty/fluent-mcp to your MCP client configuration:
{
"mcpServers": {
"fluent-mcp": {
"command": "npx",
"args": ["-y", "@modesty/fluent-mcp"],
"env": {
"FLUENT_MCP_WORKING_DIR": "/absolute/path/to/your/fluent-project",
"SN_INSTANCE_URL": "https://your-instance.service-now.com",
"SN_AUTH_TYPE": "oauth"
}
}
}
}
Client Config Locations:
- Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.json
- Claude Code CLI:
claude mcp add fluent-mcp -- npx -y @modesty/fluent-mcp
- VS Code Copilot:
.vscode/mcp.json (uses "mcp": { "servers": { ... } } instead of "mcpServers")
- Cursor / Windsurf / Gemini CLI: Add under
mcpServers in your client's MCP settings file
Environment Variables
| Variable | Description | Default |
|---|
FLUENT_MCP_WORKING_DIR | Fallback absolute path to your Fluent project | — |
SN_INSTANCE_URL | ServiceNow instance URL for automatic auth profile lookup. A matching profile is passed per call and never made your CLI default; the server never adds, deletes or selects a profile | — |
SN_AUTH_TYPE | oauth or basic | oauth |
FLUENT_MCP_LOG_LEVEL | Minimum stderr log level (debug, info, notice, warning or warn, error; case-insensitive, an unknown value falls back to info with a warning) | info |
FLUENT_MCP_COMMAND_TIMEOUT_MS | Operator override for CLI command timeout, in ms, digits only, at most 2147483647 (1e6, 1.5, 300000ms or a longer value are ignored) | Per-tool |
NO_TELEMETRY | Set to 1 to disable @servicenow/sdk CLI telemetry | — |
NODE_USE_ENV_PROXY | Set to 1 to route the SDK CLI's instance requests through HTTPS_PROXY / HTTP_PROXY, bypassing it for hosts in NO_PROXY. Download and transform honor it on any Node version (SDK v4.14.3+); deploy, query, cicd and exec only on Node 24+ or 22.21+ (the Node that runs this server). A generated init_fluent_app command takes these from the terminal that runs it. If connecting through the proxy takes longer than 10 s, raise connectTimeoutSeconds | — |
SN_SDK_CREDENTIALS_DIR | Directory of the SDK's encrypted profile store credentials.enc (SDK v4.14.0+; an empty value is treated as unset) | ~/.now-sdk |
SN_SDK_KEY_SOURCE | Where the SDK gets the credentials.enc encryption key: keyring or env (SDK v4.14.2+; any other value is an error). Use env in containers, CI, or where the Linux keyring corrupts the key (KWallet) | keyring |
SN_SDK_ENCRYPTION_KEY | With SN_SDK_KEY_SOURCE=env: a base64-encoded 32-byte key that you generate and keep in your secret store. The SDK never generates or stores it, and this server never reads it (it reaches the CLI only through the inherited environment) | — |