siyuan-codex-bridge
Run the following command in DeepSeek Harness:
dsh plugin install greyoak111/siyuan-codex-bridge
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install greyoak111/siyuan-codex-bridge in your DeepSeek Harness terminal to install; the source code is available at https://github.com/greyoak111/siyuan-codex-bridge
About this plugin
SiYuan Notes ships with a full official MCP endpoint, yet Codex Desktop, Codex CLI, IDE clients, and DeepSeek Harness have no built-in way to reach it. siyuan-codex-bridge is a local STDIO proxy that forwards MCP requests from any of these clients to 127.0.0.1:6806 and injects the API token automatically—resolving it from environment variables, a local config file, or SiYuan's own workspace settings in that order, so a typical install works out of the box with zero manual token entry.
The design revolves around controlled access. On every tools/call the bridge re-reads the active operation profile (readonly, authoring, or full), so a policy change takes effect on the very next call without restarting anything. The tool catalog falls back through three tiers—live endpoint, local cache, bundled snapshot—ensuring tools never render as empty even before SiYuan has ever been opened. Beyond the official note tools, the bridge exposes SiYuan's built-in AI as an additional MCP action set (chat, agent, editor, action) with interactive approval, streaming aggregation, and session-level permissions. An opt-in launchOnCall switch can start the SiYuan desktop app on demand, stripping environment variables that would break an Electron process, while a local audit.jsonl records only timestamps, levels, tools, and decisions—never note content or tokens.
Built for SiYuan power users who also rely on Codex or DSH for daily note retrieval, writing, and annotation. If you want an agent to read and edit notes within strict bounds, to call SiYuan AI for Q&A or editing tasks, and to keep everything on localhost, this bridge provides a local, dependency-free connection layer with hard policy enforcement on every single call.
Use Cases
- Let Codex or a DSH agent read and edit SiYuan notes under strict readonly, authoring, or full profiles
- Invoke SiYuan's built-in AI for Q&A, block-level editing, and interactive agent turns directly in chat
- Switch operation levels live on the next tools/call without restarting the bridge or client session
Best For
- SiYuan Notes power users who want an agent to read and write within strict bounds
- Knowledge workers who rely on Codex Desktop, CLI, or DSH for daily writing and retrieval
- Security-sensitive users who require localhost-only bindings, content-free audit logs, and hard policy enforcement
Related Plugins
A unified suite combining hot runtime injection, task-aware thinking-mode routing, and a graded session protocol with red-team gates to sustain model diligence across long-horizon inference.
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.