# Project Structure

```
pastemyst-mcp/
├── src/
│   └── index.ts              # Main MCP server implementation
├── build/
│   ├── index.js              # Compiled JavaScript
│   └── index.d.ts            # TypeScript definitions
├── scripts/
│   └── fix-permissions.js    # Post-build script
├── package.json              # Dependencies and scripts
├── tsconfig.json             # TypeScript configuration
├── bun.lock                  # Lock file (bun)
├── README.md                 # Basic readme
├── EXAMPLES.md               # Usage examples
└── claude_desktop_config.example.json  # Config template
```

## Key Files

### `src/index.ts`
The main server implementation with:
- MCP server setup
- Tool definitions (15 tools)
- API integration with pastemyst-ts
- Error handling
- Response formatting

### `package.json`
Dependencies:
- `@modelcontextprotocol/sdk` - MCP protocol implementation
- `pastemyst-ts` - PasteMyst API wrapper
- `zod` - Schema validation

Dev dependencies:
- `typescript` - TypeScript compiler
- `@types/node` - Node.js type definitions

### `tsconfig.json`
TypeScript compiler options:
- Target: ES2022
- Module: ESNext
- Output: build/
- Strict mode enabled

## Dependencies

**Runtime:**
- Node.js 16+ (for MCP server)
- @modelcontextprotocol/sdk ^1.0.4
- pastemyst-ts ^1.1.0
- zod ^3.23.8

**Development:**
- TypeScript ^5.7.2
- @types/node ^22.10.2
- Bun (recommended) or npm

## Building

The build process:
1. TypeScript compilation (`tsc`)
2. Permission fixing for Unix systems
3. Outputs to `build/` directory

## Architecture

The server uses:
- **Stdio transport** for MCP communication
- **Zod schemas** for parameter validation
- **pastemyst-ts wrapper** for API calls
- **Environment variables** for authentication

All tools follow the MCP specification and return structured responses with proper error handling.