Uppercut Labs Agent Native v1.2.0

Installing only the surfaces you use

To wrap a working site’s existing operation, follow adopt an existing site.

Agent Native 1.2.0 requires Node.js 22 or newer. Install the package and only the peers your application imports:

npm install @uppercut-labs/agent-native@1.2.0

The published 1.2.0 package adds experimental UI subpaths; 1.1.0 added the experimental site-publication executable and /publication API. The source builds on PR #10, which is not yet merged into main; a checkout of main still builds 1.0.1. Install from npm rather than a GitHub tag.

If you intentionally need the older 1.0.1 release, its public GitHub archive can be installed separately. In a disposable directory, download and verify both release files before installing that archive:

curl --fail --location --output uppercut-labs-agent-native-1.0.1.tgz \
  https://github.com/uppercut-labs/agent-native/releases/download/v1.0.1/uppercut-labs-agent-native-1.0.1.tgz
curl --fail --location --output uppercut-labs-agent-native-1.0.1.tgz.sha256 \
  https://github.com/uppercut-labs/agent-native/releases/download/v1.0.1/uppercut-labs-agent-native-1.0.1.tgz.sha256
shasum -a 256 -c uppercut-labs-agent-native-1.0.1.tgz.sha256
npm install ./uppercut-labs-agent-native-1.0.1.tgz

On Linux, sha256sum -c can replace shasum -a 256 -c. Stop if verification fails. The checksum detects an altered download; it is not an npm provenance attestation. Those 1.0.1 files are hosted with that older tagged public source. They do not contain the 1.1.0 publication feature.

There is no general agent-native or agent-native init executable. Applications call the capability APIs or expose their own CLI runner. Since 1.1.0 the package also ships the distinct experimental agent-native-site command for explicitly reviewed public site content; see site publication. The repository examples independently install local tarballs so their checks stay tied to a source commit.

First local capability

Add Zod for the schema adapter, then save the following as quickstart.mjs in your application:

npm install zod@4.6.5
import { bindCapability, createCapabilityRegistry, defineCapability, executeCapability } from '@uppercut-labs/agent-native';
import { fromZod } from '@uppercut-labs/agent-native/schema/zod';
import * as z from 'zod';

const greet = defineCapability({
  identity: { namespace: 'demo', name: 'greet', majorVersion: 1 },
  description: 'Greet one person.',
  input: fromZod(z.object({ name: z.string().min(1) })),
  output: fromZod(z.object({ message: z.string() })),
  risk: 'read',
  access: { kind: 'public' },
});
const registry = createCapabilityRegistry(
  [greet],
  [bindCapability(greet, {
    id: 'local-greet',
    targets: ['local'],
    execute: async ({ name }) => ({ message: 'Hello, ' + name + '!' }),
  })],
);
const result = await executeCapability(registry, {
  identity: greet.identity,
  runtime: 'local',
  input: { name: 'World' },
  caller: { kind: 'anonymous' },
  authorization: { authorize: ({ access, risk }) => access.kind === 'public' && risk === 'read' },
});
if (result.kind !== 'success') throw new Error(result.reason);
console.log(result.value);

Run node quickstart.mjs; it prints { message: 'Hello, World!' }. Every invocation supplies an authorization port, including public reads.

The root, contracts, composition, registry, executor, browser, HTTP, CLI and init subpaths need no runtime dependency from the package. Optional integrations are explicit:

Imported subpath Install alongside Agent Native
harness No runtime dependency; neutral contracts only
harness/mcp-bridge Node 22+ built-ins; no MCP SDK dependency
harness/codex Node 22+ and an installed Codex CLI with ChatGPT sign-in; no provider SDK dependency
schema/zod zod 4.6.x (4.6.5 or later patch; tested with 4.6.5 and 4.6.6)
mcp or next @modelcontextprotocol/server@2.3.0
mcp-apps @modelcontextprotocol/server@2.3.0 and @modelcontextprotocol/ext-apps@2.0.3
astro astro in the documented supported range

The package does not install optional peers automatically. Application-owned routes, client libraries, framework adapters and deployment hosts remain separate. For example, the Astro on-demand fixture also installs @astrojs/node; the Next fixture installs Next and React. The browser-only E06 fixture installs Zod for its own schema and has no MCP server dependency.

Run npm run check:portability from this repository to build, pack, install in a fresh core/browser consumer, verify that optional adapters are absent, and smoke-test the application-owned CLI adapter. See the UAN-022 measured evidence for the environment, sizes and Worker fixture result.

Check a fresh consumer

Use Node.js 22 or newer. From the repository root, run npm ci followed by npm run check:portability. The check packs the current source, installs a core/browser consumer without optional peers, verifies imports and the packed CLI, and checks every declared export in the tarball. A missing @modelcontextprotocol/server error from /mcp means the application needs that peer; install it only for that server integration. The independent repository examples continue to use local tarballs.