@youdotcom-oss/cli
v1.1.0
Published
Agent-first CLI bridge for the hosted You.com MCP server
Downloads
183
Readme
@youdotcom-oss/cli
Agent-first CLI for the hosted You.com MCP server.
The CLI is a thin bridge over remote MCP:
ydc toolsydc schema <tool> [input|output]ydc <tool> <json>
It does not contain local per-tool REST logic or local schema validation.
Install
Bun
bun add -g @youdotcom-oss/cliNode
npm add -g @youdotcom-oss/cliOr run it without installing:
Bun
bunx @youdotcom-oss/cli toolsNode
npx @youdotcom-oss/cli toolsCommands
List the locally allowlisted tool ids:
ydc toolsFetch raw remote schema for a tool:
ydc schema you-search
ydc schema you-search outputExecute a remote tool with JSON input:
ydc you-search '{"query":"latest bun release"}'
echo '{"query":"latest bun release"}' | ydc you-searchOn success the tool's structured output is printed as JSON and the process
exits 0. If the tool returns an error (isError) or omits structured
content, a message is printed to stderr and the process exits non-zero.
Flags
--api-key <key>Uses that API key instead ofYDC_API_KEY.--dry-runPrints the resolved URL, tool id, sanitized headers, and JSON arguments.--profile <name>Routes to?profile=<name>for any hosted profile. The You.com MCP server applies the profile's tool ceiling and intersects it with the requested tool. When an API key is available,Authorization: Bearer ...is sent regardless of the profile (includingfree, which ignores the header on the server side).-h, --helpPrints usage, available commands, tools, and flags, then exits.
Environment
YDC_API_KEYOptional default API key.YDC_ALLOWED_TOOLSOptional comma-separated hosted tool ids. Consulted whenever set, independent of whether an API key is configured.
Notes
ydc toolsis local/offline and reads the checked-in contract fromsrc/tools.ts.ydc schema ...and tool execution create a fresh MCP client per invocation.- Tool ids are literal remote MCP tool ids such as
you-searchandyou-contents. - CLI requests always target the hosted base MCP URL at
https://api.you.com/mcp.
