Getting started: illustrated guide
Screenshots of the real console in French, captured in an isolated demonstration environment. Ports and paths are examples; no real account, personal file or secret is used.
Practical NeuroLatch guide: installation, connection, permissions and available tools. Planned features are identified.
Screenshots of the real console in French, captured in an isolated demonstration environment. Ports and paths are examples; no real account, personal file or secret is used.
If you have a Windows distribution, launch mcp-neurolatch-desktop.exe and choose your language. Otherwise build the authorized sources and run the engine in serve mode. Open local administration: 127.0.0.1:8878 by default. Check that the engine is active and that MCP uses a separate port (8877 by default).
mcp-neurolatch.exe serve
In AI Connections, choose the STDIO client, enter the absolute executable path and optionally the settings path. Generate and copy the configuration into the client's designated file without overwriting other servers. Restart the client and test neurolatch_ping. STDIO starts its own process and does not require the HTTP port. For local HTTP, use the MCP endpoint and active authentication mode.
In Settings, keep both scopes on Machine only. Use two different free ports, choose an absolute test folder and start read-only. Save and restart if needed. File tools require explicit local activation; on Windows, the native console may request that approval. Do not choose an entire drive. Commands, full unlocked access and remote access are unavailable.
In Logs, enable logging, select Engine, MCP requests, Authentication, Administration and Errors, then save. Debug adds processing times. Choose a UTC date and inspect recent events. Disable debug after diagnosis; never share a raw log without reviewing its contents.
Install stable Rust and your platform's native build tools. From the source directory:
cargo build --locked --release cargo test --locked cargo run --locked -- serve
VS Code: open the folder, install rust-analyzer and CodeLLDB, then use the supplied tasks and debugging profile.
Open http://127.0.0.1:8878. The MCP server listens at http://127.0.0.1:8877/mcp. Configure ports and theme in Settings, then restart after changing a port.
Settings are stored in .local/settings.json under the launch directory, or at the path supplied by serve --config. This file accepts no secrets.
Use the STDIO configuration generator in AI connections. The process is launched with --stdio, without an HTTP panel. Generic example:
{"mcpServers":{"neurolatch":{"command":"C:/Programmes/mcp-neurolatch.exe","args":["--stdio"]}}}
The client must support MCP STDIO and the selected configuration structure. Each product must be validated separately.
neurolatch_ping checks communication. neurolatch_capabilities reports enabled features. Neither tool accesses files, terminals or personal information.
After local activation, Build 30 also provides filename and content search, file information and exact SHA-256-checked copying. Availability depends on platform and permissions.
The HTTP server remains local. Build 42 was tested with an external private OpenAI STDIO tunnel; the tunnel is not built into the engine. OAuth introspection remains experimental. Never expose local ports or the administration panel.
If a port is busy, use a local configuration with two different ports. If the client cannot discover tools, check its transport and address. The server rejects non-local hosts and origins. Settings updates require a CSRF token. This does not protect against another local process running with your privileges.
Do not place keys or private configurations in the repository. No automatic updater is provided.
The script scripts/release.ps1 automatically increments the patch and build number after validation. The options -Bump minor,
-Bump major and -Bump none select the release type. Ordinary builds do not change these counters. The release folder contains the binary and its JSON manifest with SHA-256. A failed build restores the previous metadata.
powershell -NoProfile -File scripts/release.ps1 -Offline
On Windows, the numbered release remaps Rust source and MSVC linker paths, then checks both PE files before accepting the local distribution. The audit checks paths, email addresses and secret patterns in ASCII and UTF-16LE strings. Two reviewed public dependency contacts are permitted only by the local check. Strict mode rejects those too. Heuristics cannot guarantee the absence of hidden data; a locally qualified distribution is not automatically publishable.
See the validation and publication guide for MCP platforms, signing and privacy.
Choose Bearer in Settings, save and restart the engine. In AI connections, generate a token, then configure the HTTP client with Authorization: Bearer VOTRE_JETON. The token stays in memory; rotation revokes the previous token and restart renews it. Never publish it or expose the ports. STDIO remains independent. This is not OAuth and does not protect against a local process with the same privileges.
Administration saves the language choice in engine settings. Incomplete translations fall back to English, then French.
Prepare the OAuth profile under AI connections. The experimental validator is enabled only at explicit startup with --oauth and the NEUROLATCH_OAUTH_CLIENT_SECRET and NEUROLATCH_OAUTH_SUBJECT environment variables. Read the documentation before use.
Before startup, verify the issuer, HTTPS endpoint and resource in the saved profile. Supply the introspection secret and authorized subject locally through the environment variables below, without writing them to a file, command history or Git.
NEUROLATCH_OAUTH_CLIENT_SECRET NEUROLATCH_OAUTH_SUBJECT mcp-neurolatch serve --oauth
The provider must support RFC 7662 with client_secret_post and return active, iss, sub, aud, exp and scope. The subject must exactly match the authorized subject. Any error or invalid response is rejected. STDIO remains independent. Do not use this experimental mode for remote publication.
RFC 9728 metadata is served without a token on the MCP port, only when OAuth mode is explicitly enabled. It contains the HTTPS resource, issuer and required scope. The introspection ID and secret are not published.
An HTTP 401 denial advertises the canonical HTTPS metadata URL. The example below assumes a configured resource with the /mcp path. A future tunnel or proxy must forward the discovery path to the MCP port, never to administration. This release deploys no public endpoint and does not qualify the complete OAuth flow of a remote client.
GET /.well-known/oauth-protected-resource/mcp
Mixed mode allows only MCP negotiation, ping, the static catalog and neurolatch_ping without a token. All other calls require a valid OAuth token. An invalid supplied token is always rejected.
To enable mixed mode, use --oauth-mixed instead of --oauth, with the same profile and environment variables. Do not combine the two options.
mcp-neurolatch serve --oauth-mixed
The public catalog exposes tool names and descriptions, never private data. New calls are protected by default. Both modes remain experimental and limited to local transport.
To share logs and settings with the HTTP engine, start the STDIO client with the absolute path to the same configuration file. STDIO reloads settings for each message and never writes logs to stdout. Without the option, .local/settings.json is relative to the launch directory.
mcp-neurolatch --stdio --config <chemin-absolu>
In Logs, enable recording, select categories and save. Debug mode adds technical timings without recording tokens, secrets, headers or request contents. Disabling logging preserves existing files.
One JSONL file per UTC day, limited to 10 MiB. The viewer shows the latest 128 KiB of the selected day. Automatic deletion is optional.
Start mcp-neurolatch-desktop.exe to keep the engine running near the clock without a console window. Double-click to open administration. Right-click to view status or exit the engine. Closing the browser or status dialog does not stop the service.
By default, the desktop uses %LOCALAPPDATA%\MCP-NeuroLatch\settings.json. To share settings, use --config followed by the absolute path.
On first launch, the Windows desktop offers nine languages. The --lang option provides an initial choice; the saved language takes precedence. The choice can be changed in administration. The --oauth and --oauth-mixed options remain explicit and require the usual environment variables.
mcp-neurolatch-desktop.exe --config C:\NeuroLatch\settings.json --lang fr
Quick administration, notification menu and web administration.
Windows x64: 117 Rust tests passed, 6 ignored, no failures. Engine tested on Linux x64 WSL and Linux ARM64 QEMU; no native ARM64 or Unix desktop qualification. External OAuth provider and hosted tunnel not qualified. Only Windows x64 is distributed.
In administration, the engine remembers language and theme. The generator stores the selected client and entered paths in the browser. Forget client choices clears these preferences.
Create keys from the local console using the following commands, with the same settings file as the engine. Keys are displayed only once. Keep them in a password manager.
mcp-neurolatch key-create admin --config <chemin-absolu> mcp-neurolatch key-create mcp --config <chemin-absolu>
The administration key takes effect at the next startup. The browser asks for username neurolatch and the key as password. Remembering it depends on the browser. For MCP, choose Persistent MCP key in settings and restart.
Generated keys have 256 bits of randomness. Only their digest is stored in a separate local file; no key is saved in settings, logs or web storage. HTTP administration remains loopback only. Never forward this port to the internet.
In the Windows desktop application, the tray menu enables or disables file tools with an engine restart. Enabling requires local confirmation of the workspace and access profile for this session; --enable-files also opens the confirmation. For console and STDIO, set NEUROLATCH_ENABLE_FILES=1 at launch. HTTP requires MCP authentication and an administration key. Workspace and profile changes require a restart.
Paths are relative, separated by /, and text documents are limited to 1 MiB on disk, including BOM. A listing examines at most 256 entries. Symbolic links, junctions, multi-name hard links, dot-prefixed names and local keys are rejected. The directory must be separate from configuration and executables.
Reading detects UTF-8 without or with BOM and UTF-16 LE/BE with BOM. For Windows-1252, explicitly specify encoding: windows-1252, even for ASCII files. The response contains encoding and SHA-256 of the original bytes. Reuse both values to replace, move or delete. Replacement preserves encoding and BOM; supply the desired line endings in content. Unrepresentable characters, unknown formats or malformed text are rejected before writing. New files use UTF-8 without BOM. Legacy encodings are never guessed automatically; binary files are unsupported.
For a targeted edit, use old_text with neurolatch_replace_file: the nonempty fragment must match exactly one occurrence, including line endings. content contains only the new fragment (empty to remove it). Encoding, BOM and surrounding text stay unchanged; a missing, multiple or overlapping match, or a stale fingerprint, blocks writing. Without old_text, content still replaces the entire document.
$env:NEUROLATCH_ENABLE_FILES = "1" mcp-neurolatch serve --config <chemin-absolu>
Read-only mode denies writes and execution; read/write permits confined changes; full access is intended to support confined execution; full unlocked is intended to allow operations outside the root after explicit local approval. No profile grants administrator privileges.
File tools are restricted to the configured workspace. Read-only mode allows listing and reading; read/write and full modes also allow creating files and directories, and SHA-256 guarded text replacement and permanent deletion. On Windows, text file moves and renames require the SHA-256 fingerprint and never overwrite an existing destination. The file retains its identity and its own metadata. Replacement creates new file metadata. External concurrent changes are not isolated. Directory deletion, commands and unlocked mode remain unavailable.
The Windows tray menu registers or removes NeuroLatch from Windows sign-in startup after local confirmation. This option is restricted to the standard configuration without temporary OAuth. Automatic startup never re-enables file tools. Windows may disable a registered startup item in its own settings.
Windows startup is independent of the chosen language. Older entries generated by NeuroLatch are recognized for the same executable. General settings do not overwrite the language: use the dedicated language selector.
The local TLS check performs a TLS 1.3 handshake in memory and validates the DNS name or IP address, certificate trust chain and private key. Use tls-check with --name and --config; place tls-chain.pem, tls-key.pem and tls-ca.pem next to the configuration file. This check opens no port, does not validate certificate revocation and does not enable LAN or Internet scopes.
Network scopes are preparatory: no remote listener or firewall opening is enabled.