The Model Context Protocol server behind
s2u mcp serve in the Share2Us CLI. It lets AI
agents (Codex, Claude Code, Gemini CLI, …) share files and text through Share2Us —
with the same local secret-scanning and upload controls as the CLI itself.
This module is consumed by the CLI and builds on the shared cli-core library.
| Package | What it does |
|---|---|
mcp |
The MCP server — stdio + HTTP transports, tool definitions for share/get/list. |
preflight |
Pre-upload checks: local secret scanning (gitleaks) and content classification. |
go get github.com/share2us/mcp@latestMost people don't import this directly — run it via the CLI: s2u mcp serve.
See CONTRIBUTING.md.
MIT © Share2Us