File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # AGENT.md - mcp-remote Development Guide
2+
3+ ## Commands
4+ - ** Build** : ` pnpm build ` (or ` pnpm build:watch ` for development)
5+ - ** Type check** : ` pnpm check ` (runs prettier and tsc)
6+ - ** Lint/Format** : ` pnpm lint-fix ` (prettier with write)
7+ - ** Test** : No tests defined (consider adding)
8+ - ** Run dev** : ` npx tsx src/client.ts ` or ` npx tsx src/proxy.ts `
9+
10+ ## Architecture
11+ - ** Project Type** : TypeScript ESM library for MCP (Model Context Protocol) remote proxy
12+ - ** Main Binaries** : ` mcp-remote ` (proxy.ts), ` mcp-remote-client ` (client.ts)
13+ - ** Core Libraries** : ` /src/lib/ ` contains auth coordination, OAuth client, utils, types
14+ - ** Transport** : Supports both HTTP and SSE transports with OAuth authentication
15+ - ** Config** : Uses ` ~/.mcp-auth/ ` directory for credential storage
16+
17+ ## Code Style
18+ - ** Formatting** : Prettier with 140 char width, single quotes, no semicolons
19+ - ** Types** : Strict TypeScript, ES2022 target with bundler module resolution
20+ - ** Imports** : ES modules, use ` .js ` extensions for SDK imports
21+ - ** Error Handling** : EventEmitter pattern for auth flow coordination
22+ - ** Naming** : kebab-case for files, camelCase for variables/functions
23+ - ** Comments** : JSDoc for main functions, inline for complex auth flows
You can’t perform that action at this time.
0 commit comments