Skip to content

Commit fffd8cc

Browse files
committed
Setting up Amp properly
1 parent 783bf86 commit fffd8cc

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

AGENT.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

0 commit comments

Comments
 (0)