SharpNinja.McpServer.Director 0.6.29

dotnet tool install --global SharpNinja.McpServer.Director --version 0.6.29
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local SharpNinja.McpServer.Director --version 0.6.29
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SharpNinja.McpServer.Director&version=0.6.29
                    
nuke :add-package SharpNinja.McpServer.Director --version 0.6.29
                    

McpServer Director (director)

director is the .NET global tool for administering an QBrain.AI instance.

The package contains a portable launcher plus Windows x64 and Linux x64 Director executables. The launcher selects the matching packaged executable for the current platform and forwards command-line arguments unchanged.

Change log: 2026-11-16 — FR-DIRECTOR-001, TR-DIRECTOR-TOOL-001, and TEST-DIRECTOR-001 added the dual-runtime package and portable launcher so a single tool install works on supported Windows and Linux x64 hosts.

It provides:

  • CLI commands for health, workspaces, agents, sync, TODOs, and session logs
  • OIDC login/logout (director login, whoami)
  • exec for running MVVM/CQRS ViewModel commands
  • Interactive TUI (director ui)

Command-line parser

director references System.CommandLine 2.0.12. Commands use SetAction and ParseResult.GetValue. The publish guard rejects a System.CommandLine assembly older than 2.0.3, or one that does not declare SetAction, so a stale 2.0.0-beta4 DLL cannot be packed again.

director config stores defaults in %USERPROFILE%\.mcpserver\director.config.json. Set DIRECTOR_CLI_CONFIG to use a different file for one process.

Install

dotnet tool install --global SharpNinja.McpServer.Director

Development/local package install:

dotnet tool install --global SharpNinja.McpServer.Director --add-source <path-to-nupkg-folder> --ignore-failed-sources

Connecting To QBrain.AI

Preferred (workspace marker)

Run director inside a workspace that contains AGENTS-README-FIRST.yaml, or pass --workspace <path>.

The marker provides:

  • MCP base URL
  • workspace API key
  • workspace path context

Default URL (new system / outside a workspace)

Set a default MCP server URL once:

director config set-default-url http://localhost:7147
director config show

Use a loopback URL for default-key access. When a control-plane command needs credentials and none are available, Director calls GET /api-key on the configured QBrain server. It keeps the key in memory for the current invocation. director --help works offline.

Register a workspace

With Director 0.6.28 or later and a QBrain server that supports default-key registration, run from the directory you want to register.

director add-workspace --server http://localhost:7147

--server defaults to http://localhost:7147. Use --workspace <path> to select another directory and --name <name> to override the directory name. If the invocation directory belongs to a workspace on the selected server, Director uses that workspace's marker credential. If the target already has a marker, Director verifies it.

When Director starts without a suitable marker, it obtains a key from the selected QBrain server and sends it in X-Api-Key with the target path, name, and enabled state. On success, it verifies the signature and health nonce of the new AGENTS-README-FIRST.yaml.

Workspace-scoped commands, such as TODO operations, still require workspace context.

Common Commands

director health
director list
director agents defs
director agents ws --workspace E:\github\MyRepo
director sync status
director ui

Auth Commands

director login
director whoami
director logout

MVVM/CQRS Exec Mode

Discover available ViewModels/aliases:

director list-viewmodels
director list-viewmodels --filter todo

Run a ViewModel command:

director exec list-todos -i "{\"Section\":\"mvp-mcp\"}"
director exec get-workspace -i "{\"WorkspacePath\":\"E:\\github\\FunWasHad\"}"

Interactive TUI

Launch the Terminal UI:

director ui

Current UI includes role-filtered tabs and auto-refresh on tab entry for supported tabs.

Viewer Memory sits immediately after Sessions. It surfaces workspace Memory list/get/add/update/remove. Version is display-only (D11); updates do not send expectedVersion. There is no Operator Memory role.

Headless lab path (box): Application.Init(new FakeDriver()), construct MemoryScreen, walk View.Subviews for Refresh/Add/Edit/Remove/Filter, then run MCP five-verb awaits after Application.Shutdown(). Receipt: docs/receipts/PLAN-MANAGER-MEMORY-UI-001/lab-smoke-director-box-20260920T001521Z.md.

Troubleshooting

  • No marker found: set a default URL with director config set-default-url <url> or run inside a workspace.
  • add-workspace returns HTTP 403 from /mcpserver/workspace: use a loopback --server URL and confirm that QBrain supports default-key workspace registration.
  • Permission denied for workspace/policy tabs: re-login and confirm your token has the admin role.
  • Expired token: run director login again.

Repository

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.6.29 119 11/27/2026
0.6.28 119 11/27/2026
0.6.27 130 11/16/2026
0.6.26 170 10/14/2026