-
Notifications
You must be signed in to change notification settings - Fork 3.6k
docs: add AdaL CLI installation guide #2083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| # Install GitHub MCP Server in AdaL CLI | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| 1. AdaL CLI installed — `npm install -g @sylphai/adal-cli` (requires Node.js 20+) | ||
| 2. [GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new) with appropriate scopes | ||
|
|
||
| ## Option 1 — Shortcut (Easiest) | ||
|
|
||
| AdaL CLI has a pre-configured shortcut for GitHub. Set your token before starting AdaL, then add the server: | ||
|
|
||
| ```bash | ||
| # macOS / Linux | ||
| export GITHUB_TOKEN="ghp_xxxx" | ||
|
|
||
| # Windows (PowerShell) | ||
| $env:GITHUB_TOKEN="ghp_xxxx" | ||
| ``` | ||
|
|
||
| Then inside your AdaL session: | ||
|
|
||
| ```bash | ||
| /mcp add github | ||
| ``` | ||
|
|
||
| AdaL reads the `GITHUB_TOKEN` environment variable at startup. See [AdaL CLI MCP docs](https://docs.sylph.ai/features/mcp-support-proposed) for more info. | ||
|
|
||
| ## Option 2 — Remote GitHub MCP Server | ||
|
|
||
| Connect directly to GitHub's hosted MCP server at `https://api.githubcopilot.com/mcp/` using a PAT header. | ||
|
|
||
| <details> | ||
| <summary>AdaL CLI Remote Server Connection</summary> | ||
|
|
||
| ```bash | ||
| /mcp add github --transport http --url https://api.githubcopilot.com/mcp/ --header "Authorization:Bearer YOUR_GITHUB_PAT" | ||
| ``` | ||
|
|
||
| Replace `YOUR_GITHUB_PAT` with your actual [GitHub Personal Access Token](https://github.com/settings/tokens). | ||
|
|
||
| </details> | ||
|
|
||
| ## Option 3 — Local GitHub MCP Server (Docker) | ||
|
|
||
| Run the server locally using Docker. | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| - [Docker](https://www.docker.com/) installed and running | ||
| - [GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new) with appropriate scopes | ||
|
|
||
| <details> | ||
| <summary>AdaL CLI Local Server Connection</summary> | ||
|
|
||
| ```bash | ||
| /mcp add github --command docker --args "run,-i,--rm,-e,GITHUB_PERSONAL_ACCESS_TOKEN,ghcr.io/github/github-mcp-server" --env "GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_GITHUB_PAT" | ||
| ``` | ||
|
|
||
| Replace `YOUR_GITHUB_PAT` with your actual [GitHub Personal Access Token](https://github.com/settings/tokens). | ||
|
||
|
|
||
| </details> | ||
|
|
||
| ## Verify the Connection | ||
|
|
||
| After adding the server, test it inside AdaL: | ||
|
|
||
| ``` | ||
| /mcp | ||
| ``` | ||
|
|
||
| Select the `github` server → **Test Connection**. You should see the available GitHub tools listed. | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| - **"Connection failed"** — Verify your PAT is valid and has the required scopes (`repo`, etc.) | ||
| - **Token not read (shortcut)** — Make sure `GITHUB_TOKEN` is set *before* starting AdaL; restart required if set after launch | ||
| - **Docker errors** — Ensure Docker is running: `docker ps` | ||
| - **Token not found (local)** — Confirm your PAT is correctly set in the `--env` flag | ||
|
|
||
| For more details, see the main [README.md](../../README.md). | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GitHub Personal Access Token link uses an inconsistent URL. This line links to
https://github.com/settings/tokens, but it should usehttps://github.com/settings/personal-access-tokens/newto match the convention used throughout the codebase and in this document's Prerequisites section (lines 6 and 50).