thymercli
配套应用程序 百里香 它提供了一个用于连接AI代理的MCP服务器和一个用于直接访问工作区的命令行界面。
看 thymer.com/mcp 获取完整文档、设置说明和下载。
特性
- MCP服务器 --通过以下方式将Thymer工作区暴露给AI代理(Claude Code、Cursor、Gemini CLI等) 模型上下文协议
- 命令行界面 --从终端管理工作区、收藏、页面、日志、插件、主题等
- 交互式REPL --MCP服务器在后台运行时以交互方式运行命令
- Markdown镜像 --将工作区作为markdown文件连续导出到本地目录进行greping和读取
运作原理
┌─────────────┐ HTTP/JSON-RPC ┌─────────────┐ WebSocket ┌─────────────┐
│ AI Agent │ ◄─────────────────────────►│ thymercli │◄────────────────────►│ Thymer │
│ (Claude) │ MCP Protocol │ (Go app) │◄────────────────────►│ Org 1...N │
└─────────────┘ └─────────────┘ └─────────────┘thymercli在您的计算机上本地运行。它通过WebSocket连接到浏览器(或即将推出的桌面应用程序)中的Thymer,并通过HTTP在 127.0.0.1:13100。您的数据永远不会离开您的机器进入MCP——它直接在Thymer、本地CLI和您的AI代理之间流动。
多个Thymer组织可以同时连接(例如personal.themer.com和work.themer.com)。
建筑
go build -o thymercli .快速开始
# Start the MCP server and interactive REPL
./thymercli然后通过MCP设置对话框(状态栏或命令面板)连接Thymer,并将AI代理指向 http://127.0.0.1:13100.
# Or use CLI commands directly
./thymercli search "meeting notes"
./thymercli journal
./thymercli page list -w "My Workspace" -c "Tasks"CLI命令
thymercli Start MCP server & interactive REPL
thymercli mcp Start MCP server explicitly
thymercli status Show server status and connected organizations
thymercli workspace list List available workspaces
thymercli workspace show Show workspace details
thymercli collection list|show|create|trash|navigate
thymercli page list|show|create|insert|add|move|trash|untrash|navigate
thymercli line edit|delete|move|flag|done
thymercli property list|get|set
thymercli journal [date] Show or add to journal pages
thymercli search Full-text search across a workspace
thymercli plugin list|show|update
thymercli theme list|get|set
thymercli mdmirror Trigger markdown mirror update
thymercli use Set persistent workspace/collection context使用 --json 对于结构化输出, --workspace/--collection 通过stdin查看范围命令和管道内容:
cat notes.md | thymercli page add PAGE_GUID
cat styles.css | thymercli plugin update css PLUGIN_GUID
echo "Shipped v2.0" | thymercli journal addMCP访问
默认情况下,MCP访问是选择加入和禁用的。每个工作区都可以设置为 关, 只读,或 读与写 从Thymer的MCP设置对话框中。
