Operate Discord HTTP API through UXC with Discord OpenAPI schema. Bot token recommended for full API access including messages and server management. OAuth2...
Coding
UXC
Try itDiscover and call remote schema-exposed interfaces with UXC. Use when an agent or skill needs to list operations, inspect operation schemas, and execute Open...
What it does
Discover and call remote schema-exposed interfaces with UXC. Use when an agent or skill needs to list operations, inspect operation schemas, and execute Open...
The skill document
UXC Skill
Use this skill when a task requires calling a remote interface and the endpoint can expose machine-readable schema metadata.
When To Use
- You need to call APIs/tools from another skill and want one consistent CLI workflow.
- The interface may be OpenAPI, GraphQL, gRPC reflection, MCP, or JSON-RPC/OpenRPC.
- You need deterministic, machine-readable output (
ok,kind,data,error).
Do not use this skill for pure local file operations with no remote interface.
Prerequisites
uxcis installed and available inPATH.- For gRPC runtime calls,
grpcurlis installed and available inPATH.
Install uxc
Choose one of the following methods:
Homebrew (macOS/Linux):
brew tap holon-run/homebrew-tap
brew install uxc
Install Script (macOS/Linux, review before running):
curl -fsSL https://raw.githubusercontent.com/holon-run/uxc/main/scripts/install.sh -o install-uxc.sh
# Review the script before running it
less install-uxc.sh
bash install-uxc.sh
Cargo:
cargo install uxc
For more options, see the Installation section in the UXC README.
Core Workflow
- Discover operations:
uxc -h
- Inspect a specific operation:
uxc -h
- Execute with structured input:
uxc key=valueuxc ''
- Parse result as JSON envelope:
- Success:
.ok == true, consume.data - Failure:
.ok == false, inspect.error.codeand.error.message
- Success:
- For disambiguation, use operation-level help first:
uxc -h
- For auth-protected endpoints, use the right auth track:
- simple bearer / single-secret API key: see
references/auth-configuration.md - multi-field auth or request signing: see
references/auth-configuration.md - OAuth flows: see
references/oauth-and-binding.md
- simple bearer / single-secret API key: see
Link-First Workflow For Wrapper Skills
Wrapper skills should default to a fixed local link command instead of calling uxc ... directly on every step.
- Pick a fixed command name during skill development:
- naming convention:
-mcp-cli - examples:
notion-mcp-cli,context7-mcp-cli,deepwiki-mcp-cli
- naming convention:
- Check whether the command already exists:
command -v
- If command is missing, create it:
uxc link- For OpenAPI services whose schema is hosted at a separate fixed URL, create the link with
uxc link --schema-url - For stdio hosts that need credential-driven child env auth, create the link with
uxc link --credential --inject-env NAME={{secret}}
- Validate link command:
-h
- Use only the link command for the rest of the skill flow.
Naming Governance
- Link naming is a skill author decision, not a runtime agent decision.
- Resolve ecosystem conflicts during skill development/review.
- Do not implement dynamic rename logic inside runtime skill flow.
- If runtime detects a command conflict that cannot be safely reused, stop and ask for skill maintainer intervention.
Equivalence Rule
...is equivalent touxc ....- If the link was created with
--schema-url, it is equivalent touxc --schema-url .... - If the link was created with
--credential --inject-env NAME={{secret}}, it is equivalent touxc --auth --inject-env NAME={{secret}} .... - Callers can still override that persisted schema by passing
--schema-urlexplicitly at runtime. - Use
uxc ...only as a temporary fallback when link setup is unavailable.
Input Modes
- Preferred (simple payload): key/value
uxc field=value
- Bare JSON positional:
uxc '{"field":"value"}'Do not pass raw JSON through--args; use positional JSON.
Output Contract For Reuse
Other skills should treat this skill as the interface execution layer and consume only the stable envelope:
- Success fields:
ok,kind,protocol,endpoint,operation,data,meta - Failure fields:
ok,error.code,error.message,meta
Default output is JSON. Do not use --text in agent automation paths.
Reuse Rule For Other Skills
- If a skill needs remote API/tool execution, reuse this skill instead of embedding protocol-specific calling logic.
- Wrapper skills should adopt a fixed link command (
-mcp-cli) as the default invocation path. - Upstream skill inputs should be limited to:
- target host
- operation id/name
- JSON payload
- required fields to extract from
.data
Reference Files (Load On Demand)
- Workflow details and progressive invocation patterns:
references/usage-patterns.md
- Protocol operation naming quick reference:
references/protocol-cheatsheet.md
- Public endpoint examples and availability notes:
references/public-endpoints.md
- Authentication configuration (simple
secret, namedfields, headers/query params, and request signers):references/auth-configuration.md
- OAuth and credential/binding lifecycle:
references/oauth-and-binding.md
- Failure handling and retry strategy:
references/error-handling.md
Related skills
Use OKX OnchainOS MCP through UXC for token discovery, market data, wallet balance, and swap execution planning. Use when tasks need OKX MCP tools such as to...
Parse UI screenshots into structured element JSON (type, OCR text, bbox) and operate desktop UI from parsed elements. Use when a user asks to detect/locate U...
Discover, install, update, or create the right skill when a workflow gap appears. Use when a task is repetitive, a role lacks a reliable procedure, an existi...
Two-pass code audits across security, perf, UX, DX, and edge.
Agent skill recommender. Input a user need, task description, or existing skill list; output best matching skills, install rationale, duplicate/merge candida...