Skip to main content
Glama

Hotkeyless AHK MCP 与技能

License: MIT AHK Version MCP Claude Support OpenCode Support Github Copilot Support

本仓库提供:

  • 一个封装了 Hotkeyless AHK HTTP API 的 TypeScript MCP 服务器。

  • 适用于 OpenCode、Claude 和通用智能体运行时的可重用技能文档。

  • 桌面自动化场景的实用示例。

工作区布局

packages/
  mcp-server/   # Node MCP server package
  skills/       # Agent skill documents
examples/       # End-to-end usage examples

  1. MCP 服务器

  1. 智能体技能


Related MCP server: helix-pilot

MCP 服务器

快速入门

OpenCode

opencode.json:

{
  ...
  "mcp": {
    ...
    "hotkeyless-ahk": {
      "type": "local",
      "command": ["npx", "-y", "@tim0_12432/hotkeyless-ahk-mcp-server"],
      "enabled": true,
      "environment": {
          "BLACKLIST": "shutdown,restart,kill"
          ...
      }
    }
  },
  ...
}

ClaudeCode

.mcp.json:

{
  "mcpServers": {
    ...
    "hotkeyless-ahk": {
      "command": "npx",
      "args": ["-y", "@tim0_12432/hotkeyless-ahk-mcp-server"],
      "env": {
        "BLACKLIST": "shutdown,restart,kill"
        ...
      }
    }
  }
}

Github Copilot

mcp-config.json:

{
  ...
  "mcpServers": {
    ...
    "hotkeyless-ahk": {
      "type": "local",
      "command": "npx",
      "args": ["-y", "@tim0_12432/hotkeyless-ahk-mcp-server"],
      "env": {
        "BLACKLIST": "shutdown,restart,kill"
          ...
      },
      "tools": ["*"]
    }
  },
  ...
}

从源码构建

1. 构建服务器

bun install
bun run build

npm 也应该可以正常工作!

2. 设置您的工具链

OpenCode

opencode.json:

{
  ...
  "mcp": {
    ...
    "hotkeyless-ahk": {
      "type": "local",
      "command": ["node", "<absolute path to the built files>/mcp-server/dist/index.js"],
      "enabled": true,
      "environment": {
          "BLACKLIST": "shutdown,restart,kill"
          ...
      }
    }
  },
  ...
}
ClaudeCode

.mcp.json:

{
  "mcpServers": {
    ...
    "hotkeyless-ahk": {
      "command": "node",
      "args": ["<absolute path to the built files>/mcp-server/dist/index.js"],
      "env": {
        "BLACKLIST": "shutdown,restart,kill"
        ...
      }
    }
  }
}
Github Copilot

mcp-config.json:

{
  ...
  "mcpServers": {
    ...
    "hotkeyless-ahk": {
      "type": "local",
      "command": "node",
      "args": ["<absolute path to the built files>/mcp-server/dist/index.js"],
      "env": {
        "BLACKLIST": "shutdown,restart,kill"
          ...
      },
      "tools": ["*"]
    }
  },
  ...
}

Hotkeyless AHK API 契约

  • GET /list 返回 { command: string, note: string } 的 JSON 数组

  • GET /send/<command> 接受查询参数

配置

默认配置位于 mcp-server/dist/infrastructure/config/config.ts

环境变量覆盖:

参数覆盖

作用

默认值

BASE_URL

Hotkeyless AHK 服务器地址

http://localhost:42800

TIMEOUT_MS

每次请求的超时毫秒数

4000

BLACKLIST

禁止调用的命令列表

[]

CACHE_TTL_MS

命令列表的缓存生存时间(毫秒)

5000

ENDPOINT_LIST

命令列表的端点地址

/list

ENDPOINT_TRIGGER

调用命令的端点地址

/send

智能体技能

快速入门

OpenCode

  1. ./skills/.opencode/... 文件夹复制到

  • .opencode/skills 用于项目特定的技能设置

  • %USERPROFILE%/.config/opencode/skills 用于全局设置

  1. 您可以调整 AGENTS.md、自定义子智能体或自定义命令来引用这些技能

  2. 重启您的 OpenCode(CLI 或桌面版)

  3. 当要求智能体使用“hotkeyless AHK skills”时,它现在应该会使用该技能指南

ClaudeCode

  1. ./skills/.claude/... 文件夹复制到

  • .claude/skills 用于项目特定的技能设置

  • %USERPROFILE%/.config/claude-code/skills 用于全局设置

  1. 您可以调整 CLAUDE.md、自定义子智能体或自定义命令来引用这些技能

  2. 重启您的 Claude Code

  3. 当要求智能体使用“hotkeyless AHK skills”时,它现在应该会使用该技能指南

Github Copilot

  1. ./skills/.claude/... 文件夹复制到

  • .claude/skills 用于项目特定的技能设置

  • %USERPROFILE%/.config/claude-code/skills 用于全局设置

  1. 您可以调整 AGENTS.md、自定义子智能体或自定义命令来引用这些技能

  2. 重启您的 Claude Code

  3. 当要求智能体使用“hotkeyless AHK skills”时,它现在应该会使用该技能指南


许可证

MIT

Install Server
A
license - permissive license
A
quality
A
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

  • MCP server for AI dialogue using various LLM models via AceDataCloud

  • Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tim0-12432/HotkeylessAHK-mcp-skill'

If you have feedback or need assistance with the MCP directory API, please join our Discord server