Skip to main content
Glama
nwn-dm-mcp
by tim4net

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NWN_ACCOUNTNoAccount name. Defaults to 'dm'.dm
NWN_DM_HOSTNoServer host. No default.
NWN_DM_PORTNoServer port. Defaults to 5122; any port the operator configures.5122
HYDROGEN_LIBNoLibHydrogen pre-overhaul build (see Build note).
NWN_MCP_BINDNoHTTP bind address. Defaults to 127.0.0.1; private interface only.127.0.0.1
NWN_MCP_PORTNoHTTP port. Defaults to 8765.8765
NWN_BRIDGE_DBNoSQLite world DB for bridge tools.
NWN_CDKEY_ININoCD key file. Defaults to ~/.local/share/Neverwinter Nights/cdkey.ini.~/.local/share/Neverwinter Nights/cdkey.ini
NWN_MCP_TOKENNoHTTP bearer token. Required for --http; never logged.
NWN_PUBLIC_IDNoPublic CD key id. Public info (cleartext polls).
NWN_FLOOD_FILENoSettings-flood file. Required: one-time capture of the real client's post-login settings-sync frames.
NWN_DM_PASS_FILENoDM 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

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 9 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness3/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues