nwn-dm-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NWN_ACCOUNT | No | Account name. Defaults to 'dm'. | dm |
| NWN_DM_HOST | No | Server host. No default. | |
| NWN_DM_PORT | No | Server port. Defaults to 5122; any port the operator configures. | 5122 |
| HYDROGEN_LIB | No | LibHydrogen pre-overhaul build (see Build note). | |
| NWN_MCP_BIND | No | HTTP bind address. Defaults to 127.0.0.1; private interface only. | 127.0.0.1 |
| NWN_MCP_PORT | No | HTTP port. Defaults to 8765. | 8765 |
| NWN_BRIDGE_DB | No | SQLite world DB for bridge tools. | |
| NWN_CDKEY_INI | No | CD key file. Defaults to ~/.local/share/Neverwinter Nights/cdkey.ini. | ~/.local/share/Neverwinter Nights/cdkey.ini |
| NWN_MCP_TOKEN | No | HTTP bearer token. Required for --http; never logged. | |
| NWN_PUBLIC_ID | No | Public CD key id. Public info (cleartext polls). | |
| NWN_FLOOD_FILE | No | Settings-flood file. Required: one-time capture of the real client's post-login settings-sync frames. | |
| NWN_DM_PASS_FILE | No | DM password file. Defaults to ~/.nwn-dm-pass; value never logged. | ~/.nwn-dm-pass |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| dm_connectB | Connect the DM session to a NWN:EE server and log in (fresh BNCS/BNVS), replay the settings flood, and hold the in-world session open. Credentials come from arguments or environment, never from the repo. |
| dm_disconnectA | Disconnect the DM session. The server reaps the vanished session after ~75-95 s. |
| dm_statusA | Report session state, uptime, server name/module, frame counters, and bridge configuration. |
| dm_whoB | Who is on the server: a fresh cleartext poll (server name, module, BNXR count byte) plus this DM session's own presence. A named player roster is not yet exposed by the reversed protocol surface. |
| dm_sayB | Send a DM chat message (wire message 9/14, per AUTH.md SS7). Note: server-side delivery of client chat is not yet witness-verified - the test server logs no client chat and key auth prevents a fabricated witness. |
| dm_jumpA | Queue a server-side bridge action: jump the DM/actor to a target_tag or a location 'area_tag:x:y:z'. Writes one 'pending' row to bridge_action_queue. |
| dm_spawnA | Queue a server-side bridge action: spawn a template resref (optionally at a location, with a tag). Writes one 'pending' row to bridge_action_queue. |
| dm_freezeB | Queue a server-side bridge action: freeze the creature with target_tag (param may carry a duration). Writes one 'pending' row to bridge_action_queue. |
| dm_inspectB | Queue a server-side bridge action: inspect the object with target_tag; the consumer records what it finds in the row's result. Writes one 'pending' row to bridge_action_queue. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool maps to a distinct action (connect, disconnect, say, jump, spawn, freeze, inspect), and the four bridge-queue tools are differentiated by their action payloads. The only mild overlap is dm_status vs dm_who, since both report server/session information, though the descriptions clarify that one is session state and the other is a presence poll.
All nine tools use the same dm_ prefix followed by a single lowercase snake_case verb/noun, giving a fully predictable pattern. Query-style names (dm_status, dm_who) sit naturally alongside action names without breaking the convention.
Nine tools is well within the sweet spot and each one earns its place: session lifecycle, queries, chat, and four distinct bridge actions. Nothing appears redundant or padded.
Session lifecycle and basic DM actions are covered, but the bridge-queue tools are write-only — there is no tool to read the queue, poll a pending action's result (dm_inspect explicitly writes results to a row the agent cannot fetch), or cancel an action. Common DM operations like kick/kill, give item, or possess target are also absent.