Token导航 LogoToken导航TokenDH.com
sdef MCP logo
运维云端未说明官方级别未说明来源级核验

sdef MCP

MCP Server

提供对macOS AppleScript字典的细粒度访问,允许客户端按需浏览套件、查找命令和类,以便正确编写AppleScript。

工具数

7

提示词数

0

GitHub Stars

0

资源数

0
TypeScriptClaude云端部署Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

benlenarts

提供方

benlenarts

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

sdef mcp

MCP服务器,允许任何MCP客户端细粒度访问macOS AppleScript字典(SDEF)。客户端可以逐步深入到它需要的套件、命令、类和属性,而不是将整个应用程序字典转储到上下文中。

为什么

大多数macOS桌面应用程序都可以通过AppleScript编写脚本,但LLM不知道它们的API。此MCP允许任何客户端高效地发现Mac上任何应用程序的脚本功能——浏览套件、按需查找命令和类——因此它可以编写正确的AppleScript而无需猜测。

需求

  • macOS(使用 sdef 命令和 mdfind)
  • Node.js 18+

设置

克劳德代码

cd /path/to/sdef-mcp
npm install && npm run build
claude mcp add sdef-reader -- node /path/to/sdef-mcp/dist/bundle.cjs

克劳德桌面

构建 .mcpb bundle,然后将其拖放到Claude Desktop设置中的Extensions部分:

npm run pack

工具

工具目的代币成本
list_scriptable_apps在系统上查找可编写脚本的应用程序
get_app_suites套房名称+描述+数量
get_suite_detail套件中的所有命令/类/枚举中等
get_command完整命令签名+参数+类型
get_class属性、元素、继承Low Med
get_enumeration枚举类型的所有值
search_dictionary所有内容的关键字搜索各不相同

典型流量

1. get_app_suites("Mail")
   → see suites: Standard Suite, Mail Suite, ...

2. get_suite_detail("Mail", "Mail Suite")
   → see all commands and classes at a glance

3. get_class("Mail", "message")
   → full property list, elements, what commands it responds to

4. get_command("Mail", "send")
   → exact parameter signature

输出格式

紧凑的纯文本,针对LLM消费进行了优化。例子:

COMMAND: make  [Standard Suite]
  Create a new object
  Direct param: type [class name]
  Params:
    new: type — the class of the new object
    at: location specifier [optional] — the location at which to insert
    with data: any [optional] — the initial data
    with properties: record [optional] — the initial property values
  Returns: specifier — to the new object
CLASS: tab  [Safari Suite]
  Inherits: item
  Plural: tabs
  A tab in a window
  Properties:
    source: text — the URL of the page currently loaded
    URL: text — the URL of the page currently loaded
    index: integer [r] — the index of the tab
    text: text [r] — the text of the page currently loaded
    visible: boolean [r] — whether the tab is currently visible
    name: text [r] — the name of the tab
  Elements: (none)
  Responds to: close, print, save

目录标签

目录标签

TypeScriptClaude云端部署macOS开发本地部署AppleScript自动化工具脚本编写API发现

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

7

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP