Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NODE_ENV | No | The environment mode, typically set to 'production' for normal use. | production |
| AHK_MCP_LOG_LEVEL | No | The logging level for the server. Possible values include 'debug', 'info', 'warn', and 'error'. | warn |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tasks | {
"list": {},
"cancel": {},
"requests": {
"tools": {
"call": {}
}
}
} |
| tools | {} |
| logging | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| AHK_Tools_Search | Efficiently discover available AHK tools without loading all 35+ tool definitions upfront. Progressive tool discovery reduces initial token usage from 17,500-70,000 tokens to 50-1,000 tokens based on detail level. Examples: • List all file tools: { category: "file", detailLevel: "names" } - Returns only tool names (~50 tokens) • Search for analysis tools: { category: "analysis", detailLevel: "summary" } - Returns names + brief descriptions (~200 tokens) • Find tools with keyword: { keyword: "edit", detailLevel: "summary" } - Returns matching tools • Get full details: { category: "file", detailLevel: "full" } - Returns complete tool definitions (~1000+ tokens) Categories:
Detail Levels:
Use Cases: • Initial exploration: Use "names" or "summary" to see what's available • Targeted search: Use keyword to find specific functionality • Full details: Use "full" only when you need complete parameter schemas See also: AHK_Config (system configuration), AHK_Analytics (usage analytics) |
| AHK_Workflow_Analyze_Fix_Run | Analyze→fix→verify→run workflow in one call. Fix types: syntax, style, performance, all. Use dryRun to preview, summaryOnly for minimal tokens. |
| AHK_Process_Request | Ahk process request Process user requests that contain file paths and instructions for AutoHotkey scripts |
| AHK_Smart_Orchestrator | Orchestrates AHK file operations with smart caching. Chains detect→analyze→view/edit. Operations: view, edit, analyze. |
| AHK_File_Active | Ahk file DETECT AND SET ACTIVE FILE FOR EDITING - Use this immediately when user mentions any .ahk file path. This enables all other editing tools to work on the specified file. Essential first step before any file modifications. 📎 Active File: Not set. Use AHK_File_Active to select a target. |
| AHK_File_View | View AHK files with structure analysis. Modes: structured (default), raw, summary, outline. Supports line ranges and syntax highlighting. 📎 Active File: Not set. Use AHK_File_Active to select a target. |
| AHK_File_List | List AHK files with optional name search. Use nameFilter with wildcards (e.g., "Hotstring") to find specific files. 📎 Active File: Not set. Use AHK_File_Active to select a target. |
| AHK_File_Detect | Ahk auto file Automatically detect and set active AutoHotkey file from user text 📎 Active File: Not set. Use AHK_File_Active to select a target. |
| AHK_File_Recent | Ahk recent scripts List the most recent AutoHotkey scripts from configured directories. Supports overriding A_ScriptDir. 📎 Active File: Not set. Use AHK_File_Active to select a target. |
| AHK_File_Edit_Advanced | Ahk file editor PRIMARY FILE EDITING TOOL - Use this IMMEDIATELY when user mentions a .ahk file path and wants to modify it. This tool automatically detects the file, sets it active, and helps determine the best editing approach. ALWAYS use this instead of generating code blocks when a file path is provided. 📎 Active File: Not set. Use AHK_File_Active to select a target. |
| AHK_File_Edit | Primary AutoHotkey file editor for direct on-disk modifications. Handles search/replace, line inserts, deletes, appends, prepends, and even new file creation. Supports regex, automatic backups, dry-run previews, and optional script execution after edits. Common Usage Batch Replace with Regex (Preview First) Shows a DRY RUN report instead of touching the file. Create New Script What to Avoid
See also: AHK_File_Edit_Advanced, AHK_File_Edit_Small, AHK_File_View, AHK_Smart_Orchestrator 📎 Active File: Not set. Use AHK_File_Active to select a target. |
| AHK_File_Create | Create a new AutoHotkey v2 script on disk with full path interception support. • Validates .ahk extension (case-insensitive) • Automatically creates parent directories (configurable) • Prevents accidental overwrite unless explicitly allowed • Supports dry-run previews and active file management 📎 Active File: Not set. Use AHK_File_Active to select a target. |
| AHK_File_Edit_Small | Token-efficient editor for small, targeted changes. Ideal when you need a lightweight replace or line edit without loading the full diff engine. Supports regex and literal replacements, multi-file batches, optional diff previews, and dry-run mode. Common Replace Insert Before a Line (Preview) Multi-File Regex Replace What to Avoid
See also: AHK_File_Edit (full-featured editor), AHK_File_Edit_Diff (complex diffs), AHK_File_Edit_Advanced 📎 Active File: Not set. Use AHK_File_Active to select a target. |
| AHK_Analyze | Ahk analyze Analyzes AutoHotkey v2 scripts and provides contextual information about functions, variables, classes, and other elements used in the code. Accepts direct code or a file path (falls back to active file). |
| AHK_Context_Injector | Ahk context injector Analyzes user prompts and LLM thinking to automatically inject relevant AutoHotkey v2 documentation context. |
| AHK_VSCode_Problems | Ahk vscode problems Reads a VS Code Problems list (from file or provided JSON) and summarizes AutoHotkey LSP diagnostics. |
| AHK_Lint | Lint AHK v2 scripts. Levels: fast (syntax), standard (default, +structure), thorough (+semantics). Supports autoFix with dryRun preview. |
| AHK_THQBY_Document_Symbols | Document symbols via THQBY AutoHotkey v2 LSP (vscode-autohotkey2-lsp). Returns classes, methods, functions, variables, hotkeys, and labels using the external LSP server. Accepts direct code or a file path (falls back to active file). |
| AHK_Prompts | AHK Prompts Returns a set of built-in AHK v2 prompt templates for code generation and learning. |
| AHK_Doc_Search | Ahk doc search Full-text search across AutoHotkey v2 docs using FlexSearch (functions, variables, classes, methods). |
| AHK_Debug_Agent | Ahk debug agent Starts a TCP listener for AutoHotkey /Debug and optionally proxies to a real debug adapter while capturing traffic. |
| AHK_Cloud_Validate | Validate AHK v2 code with optional watch mode for auto-validation on save. Modes:
Examples:
Error Patterns Detected:
|
| AHK_Debug_DBGp | AutoHotkey v2 debugger via DBGp protocol. Enables autonomous debugging: capture errors, analyze them, and auto-apply fixes. Actions:
|
| AHK_Config | Ahk config Get/Set MCP configuration for script directories, AutoHotkey executable path, and VS Code workspace. |
| AHK_VSCode_Open | Open the most recently edited AutoHotkey file (or a specified file) in VS Code. Defaults to the last edited file recorded by MCP and falls back to the active file. Supports WSL environments and can target a specific workspace window. |
| AHK_Settings | Ahk settings Manage tool settings and enable/disable features |
| AHK_LSP | Provides LSP-like analysis and auto-fixing for AutoHotkey v2 code. Accepts direct code or a file path (falls back to active file). |
| AHK_Analytics | View tool usage analytics and performance metrics. Track success rates, execution times, common errors, and usage patterns across all MCP tools. Actions: summary (overall stats), tool_stats (specific tool), recent (recent calls), export (JSON data), clear (reset). Use to diagnose tool issues or optimize workflows. |
| AHK_Library_List | List and search AutoHotkey libraries in the catalog. Search by query string or filter by category. Returns library names with descriptions. |
| AHK_Library_Info | Get detailed information about a specific AutoHotkey library. Returns metadata, documentation, classes, functions, and dependencies. |
| AHK_Library_Import | Generate #Include statements for importing a library. Resolves dependencies and provides correct import order. Supports different #Include formats (angle-brackets, relative, absolute). |
| AHK_Library_Search | Search for symbols (classes, methods, functions, properties) across all AutoHotkey libraries. Uses fuzzy matching to find symbols by partial name. Automatically scans standard AHK library paths: • ScriptDir\Lib (active file's directory) • Documents\AutoHotkey\Lib • Program Files\AutoHotkey\v2\Lib Examples: • Find clipboard utilities: { query: "clipboard" } • Find all classes: { query: "Manager", types: ["class"] } • Find methods by name: { query: "OnClick", types: ["method"] } • Show library locations: { query: "Gui", showPaths: true } |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| auto-context | AutoHotkey v2: Auto Context |
| clipboard-editor | AutoHotkey v2: Clipboard Editor |
| link-manager | AutoHotkey v2: Link Manager |
| snippet-manager | AutoHotkey v2: Snippet Manager |
| layout-debugger | AutoHotkey v2: Layout Debugger |
| debugging-assistant | AutoHotkey v2: AHK v2 Debug Assistant |
| ahk-gui-layout-ahk-router-module | AutoHotkey v2 module prompt from Module_GUI.md |
| autohotkey-agent-instruction-module-instructions-md-1 | AutoHotkey v2 module prompt from Module_Instructions.md |
| text-processing-meta-prompt-module-textprocessing-md-1 | AutoHotkey v2 module prompt from Module_TextProcessing.md |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| AutoHotkey Auto-Context | Automatically provides relevant AutoHotkey documentation based on detected keywords |
| AutoHotkey Functions Reference | Complete reference of AutoHotkey v2 built-in functions |
| AutoHotkey Variables Reference | Complete reference of AutoHotkey v2 built-in variables |
| AutoHotkey Classes Reference | Complete reference of AutoHotkey v2 built-in classes |
| AutoHotkey Methods Reference | Complete reference of AutoHotkey v2 built-in methods |
| File System Watcher Template | AutoHotkey v2 script template for monitoring file system changes |
| Clipboard Manager Template | AutoHotkey v2 script template for clipboard management |
| CPU Monitor Template | AutoHotkey v2 script template for system monitoring |
| Hotkey Toggle Template | AutoHotkey v2 script template for hotkey management |
| Live Clipboard Content | Real-time clipboard content (read-only) |
| System Information | Current system information and AutoHotkey environment |
| MCP Server Discovery | MCP 2025 server metadata for discovery (.well-known/mcp.json equivalent) |