Uppercut Labs

Agent Native v1.2.0 / MIT

Add agent capabilities
to your software.

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.

Open in Cursor
Works with
  • Claude Code
  • Codex
  • Cursor
  • Antigravity
Capability contractcatalog.lookup@1
Capability definition
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.

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.
Open in Cursor
View raw guide 181 chars · 21 words
Adapter

Model Context Protocol server

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.
Open in Cursor
View raw guide 177 chars · 23 words
Browser

Browser WebMCP tools

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.
Open in Cursor
View raw guide 180 chars · 23 words

Architecture

Shared capabilities with host authorization

Capabilities, not raw execution

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.

showcase.convert@1 / browser

A number between -1,000,000 and 1,000,000.

EXECUTION RESULT

Ready. Run a capability to inspect its result.

{
  "status": "ready"
}

Validate input → Authorize → Execute → Validate output

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.

Examples

Example projects

Explore the example projects

Static site

Album catalog with typed lookup

The Astro album catalog provides public pages and site search. A typed capability exposes the same catalog data for agent lookup over WebMCP.

Browser tools register when WebMCP is available, and standard search remains available when it is not.

Read the static-site guide
The real Astro album catalog finding Blue Hour by slug and returning its structured album result.
Runnable album catalog · human lookup
The real browser theme example in dark mode, with a working human control and an explicit WebMCP unavailable message.
Browser-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.

Explore browser tools

Documentation

Implementation guides

Step-by-step guides for installing Agent Native, choosing runtime adapters, and configuring permissions.

Agent prompt

181 characters · 21 words

Single-sentence bootstrap. Copy and paste into your coding agent.

Open in Cursor