Install
Install with PiG
pig install npm:@it-bens-ai/clipboard-agent-toolsInstall with Pi
pi install npm:@it-bens-ai/clipboard-agent-toolsPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"image": "https://raw.githubusercontent.com/it-bens-ai/clipboard-agent-tools/main/.github/assets/social-preview.png",
"extensions": [
"./plugins/clipboard-copy/pi/index.ts"
]
}README
Written by the package's publisher, shown as published in version 2.0.1 (README.md). PiG does not review it.

Clipboard Agent Tools
A marketplace repository for clipboard tools that AI coding agents call as MCP tools.
The clipboard-copy plugin runs a Bash MCP server exposing clipboard_copy (inline text) and clipboard_copy_file (contents of a file at an absolute path). It uses the platform clipboard utility and falls back to OSC 52 escape sequences over SSH and in headless environments. Hooks on Claude Code and Codex, and the extension on Pi, name the MCP tools at session start and block native clipboard-write Bash commands.
Components
| Plugin | MCP server | Hooks |
|---|---|---|
clipboard-copy | clipboard_copy and clipboard_copy_file | SessionStart directive and PreToolUse Bash block; Pi covers how Pi runs them |
Requirements
bash5.1+ andjq1.7+, first on thePATHthe agent host starts the MCP server with. The server exits at startup under an olderbashorjq. macOS ships/bin/bash3.2; install a newer one (for examplebrew install bash).psandmkfifo, used by the MCP core to supervise tool-call processesbase64oropenssl, used only by the OSC 52 fallback- A platform clipboard utility when you want to skip OSC 52; Backends lists them per platform
- Pi only: Node.js 22.19+ and Pi 1.x. Pi support covers macOS and Linux; Pi lists the tested Pi versions.
Install
Claude Code
/plugin marketplace add it-bens-ai/clipboard-agent-tools
/plugin install clipboard-copy@clipboard-agent-tools
Restart Claude Code after installation so the MCP server is registered. Run /mcp in the new session and check that the clipboard-copy server and its two tools appear.
Codex
codex plugin marketplace add it-bens-ai/clipboard-agent-tools
codex plugin add clipboard-copy@clipboard-agent-tools
Start a new Codex task after installation.
Pi
pi install npm:@it-bens-ai/clipboard-agent-tools
To install from the Git repository instead:
pi install git:github.com/it-bens-ai/clipboard-agent-tools
Run pi list to check that the package is configured. On Pi the tools are deferred; see the plugin's Pi guide.
Documentation
plugins/clipboard-copy/README.md introduces the plugin and indexes its guides in plugins/clipboard-copy/docs/: tools, backends, hooks, Pi, troubleshooting, architecture, and testing. Development covers the repository layout, hosts, test commands, and CI, and Releasing covers version bumps and npm publishing.
License
MIT.