Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
UCP Agent is a Universal Commerce Protocol implementation with Claude AI integration. It provides:
bun install # Install dependencies bun run start # Run the server (or: bun run index.ts) bun run dev # Run with watch mode bun run mcp # Run standalone MCP server bun run typecheck # Type check without emitting bun test # Run tests bun test path/to/file # Run a single test file
PORT - Server port (default: 3000)ANTHROPIC_API_KEY - Enables Claude agent interactive modeMERCHANT_ENDPOINT - MCP server's target merchant (default: http://localhost:3000)index.ts # Entry point - starts server + optional REPL src/ server/ucp-server.ts # Hono-based UCP merchant server agent/claude-agent.ts # Claude AI shopping assistant mcp/ucp-mcp-server.ts # MCP server with commerce tools mcp/run-mcp.ts # MCP server entry point sdk/ # Zod schemas for UCP types schemas/common.ts # Money, Address, Cart, Customer schemas/checkout.ts # CheckoutSession, payment types schemas/discovery.ts # UCP discovery response types
Key endpoints:
GET /.well-known/ucp - UCP discoveryPOST /ucp/checkout - Create checkout sessionGET/PATCH /ucp/checkout/:sessionId - Get/update sessionMCP tools:
discover_merchant, create_checkout, get_checkout, update_checkout
Use Bun instead of Node.js:
bun <file> instead of node or ts-nodebun test instead of jest/vitestbun install instead of npm/yarn/pnpm.env filesPreferred APIs:
Bun.serve() for HTTP (not express)Bun.file() over node:fs readFile/writeFileWebSocket (not ws package)bun:sqlite, Bun.redis, Bun.sql for databases