# Quick Start: Code-First Execution
(Contents moved from root QUICK_START_CODE_EXECUTION.md)
See root version history for full details. This file was relocated from project root as part of cleanup.
# Quick Start: Code-First Execution
## 5-Minute Setup
### 1. Install Deno
```bash
# Mac/Linux
curl -fsSL https://deno.land/install.sh | sh
# Windows (PowerShell)
irm https://deno.land/install.ps1 | iex
# Verify installation
deno --version
```
### 2. Configure Claude Desktop
Add to your Claude Desktop config file:
**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
**Linux:** `~/.config/Claude/claude_desktop_config.json`
```json
{
"mcpServers": {
"github": {
"command": "python",
"args": ["-m", "github_mcp"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}
```
**Note:** On macOS/Linux, you may need to use `python3` instead of `python`.
**Note:** Code-first mode is enforced by the architecture. No additional configuration is needed. You get 98% token savings automatically. ๐
### 3. Restart Claude Desktop
Completely close and reopen Claude Desktop.
### 4. Test It
In Claude, try:
```
Use execute_code to get info about facebook/react
```
### 5. Verify Token Savings
Compare:
- Traditional: ~70,000 tokens
- Code-first: ~1,600 tokens
- Savings: 98%+ ๐
## Common Commands
```typescript
// Get repo info
const info = await callMCPTool("github_get_repo_info", {
owner: "owner",
repo: "repo"
});
// List issues
const issues = await callMCPTool("github_list_issues", {
owner: "owner",
repo: "repo",
state: "open",
limit: 10
});
// Search code
const results = await callMCPTool("github_search_code", {
query: "TODO repo:owner/repo"
});
```
## Full Documentation
- [Complete Guide](CODE_EXECUTION_GUIDE.md)
- [Examples](EXAMPLES.md)
- [README](README.md)
> ๐งฉ **Authentication:** For most users, a single `GITHUB_TOKEN` Personal Access Token is all you need.
> Power users who need 15,000 requests/hour can use the advanced [GitHub App guide](ADVANCED_GITHUB_APP.md).
---
**You're ready to go! ๐**