Define operations once, validate inputs, and authorize execution across HTTP, CLI, MCP, and browser surfaces.
Agent Native is an open-source TypeScript library. Define what your software can do, the input it accepts, and who can call it. Then expose that same capability wherever it belongs.
identity catalog.lookup
input { slug: string }
output found | missing
risk read
access public
ValidateAuthorizeExecute
Runtime surfaces
Local
HTTP
CLI
MCP
Browser
Validation and authorization run on every call before adapter execution.
InstallNode.js 22 or newer · ESM · TypeScript
npm install @uppercut-labs/agent-native@1.2.0
Agent prompts
Prompts for coding agents
Copy a task prompt into your agent to install the package or add an adapter.
Choose agent:
Setup
Install and first capability
Install package, configure runtime, and export a local typed capability.
Read https://docs.uppercut-labs.com/agent-native/raw/installation.md and install @uppercut-labs/agent-native and define the first local capability, following its scope and verification steps.
Expose shared application capabilities over stdio for desktop coding agents.
Read https://docs.uppercut-labs.com/agent-native/raw/mcp.md and expose shared capabilities as a stdio Model Context Protocol server, following its scope and verification steps.
Register client capabilities in Chrome while preserving human UI fallback controls.
Read https://docs.uppercut-labs.com/agent-native/raw/browser.md and register browser tools with WebMCP and maintain human fallback controls, following its scope and verification steps.
A capability gives an agent a named operation and a schema it can understand. Your application supplies the implementation and makes the permission decision on every call.
Decision at runtime
The same input validation, authorization, and output checks apply across adapters. Human interfaces keep working alongside them.
Playground
Interactive browser capability
Test input validation, permission denial, and execution directly in your browser with the published Agent Native 1.2.0 package.
This demo runs entirely in your browser. It does not send inputs to a server, require an account, or use an AI service. The permission switch tests this demo's policy; production authorization belongs to your application.
Recorded in Chrome: valid input, validation rejection, permission denial, and recovery.
Runnable album catalog · human lookupBrowser-only example
Page-local action
Theme switcher with permission check
The theme toggle runs on the client page. The user button and the browser agent tool call the same underlying handler, with permission verified on every execution.
Chrome supports WebMCP behind a feature flag, and the UI provides standard buttons when agent tools are not present.