A Raycast extension for searching GitHub issues, pull requests, and discussions using the GitHub Brain MCP server.
This extension allows you to search your organization's GitHub data directly from Raycast. It connects to the GitHub Brain MCP server to provide fast, efficient searches across:
- Issues
- Pull requests
- Discussions
Before using this extension, you need to have the GitHub Brain server installed and configured:
-
Install GitHub Brain:
npm i -g github-brain
-
Authenticate with GitHub:
github-brain login
-
Pull your organization's data:
github-brain pull -o your-organization-name
For detailed GitHub Brain setup instructions, see the GitHub Brain documentation.
Once published, you can install this extension directly from the Raycast Store.
-
Clone this repository:
git clone https://github.com/wham/github-brain-raycast.git cd github-brain-raycast -
Install dependencies:
npm install
-
Import the extension into Raycast:
npm run dev
After installing the extension, you need to configure it in Raycast preferences:
-
Open Raycast preferences (⌘+,)
-
Go to Extensions → GitHub Brain
-
Configure the following settings:
-
GitHub Brain executable (required):
- Default:
github-brain - If installed globally with npm, use:
github-brain - For a custom location, provide the absolute path to the binary
- Default:
-
Home directory (optional):
- Leave empty to use the default:
~/.github-brain - Provide a custom path if you're using a different home directory
- Leave empty to use the default:
-
- Open Raycast (⌘+Space)
- Type "GitHub Brain" or "Search"
- Start typing your search query
- The extension will display up to 10 matching results
- Press Enter to open the item in your browser
- Press ⌘+C to copy the URL to clipboard
Each result displays:
- An icon indicating the type and state (issue, pull request, or discussion)
- The title of the item (bold)
- The repository name (subtle text)
| Type | State | Icon | Color |
|---|---|---|---|
| Issue | Open | Circle | Green |
| Issue | Closed | Circle | Purple |
| Pull Request | Open | Code | Green |
| Pull Request | Closed | Code | Red |
| Pull Request | Merged | CheckCircle | Purple |
| Discussion | Open | SpeechBubble | Green |
npm run devOr use the convenience script:
scripts/raycastnpm run buildnpm run lintnpm run fix-lintMake sure:
- GitHub Brain is installed:
npm i -g github-brain - The executable is in your PATH
- The path in extension preferences is correct
This usually means:
- GitHub Brain is not configured (run
github-brain loginandgithub-brain pull) - The home directory doesn't exist or doesn't contain data
- The organization is not specified in the
.envfile
Check your GitHub Brain configuration:
cat ~/.github-brain/.envIt should contain:
GITHUB_TOKEN=your_token
ORGANIZATION=your-org
- Ensure you've run
github-brain pullto populate the database - Check if your search query matches any items in your organization
- Verify the GitHub Brain server is working:
github-brain mcp
.
├── src/
│ └── search.tsx # Main extension code
├── scripts/
│ └── raycast # Development launcher script
├── package.json # Extension manifest and dependencies
├── tsconfig.json # TypeScript configuration
├── raycast-env.d.ts # Type definitions
└── README.md # This file
MIT
- GitHub Brain - The MCP server this extension connects to
- Raycast - The productivity launcher
- MCP Protocol - Model Context Protocol
Contributions are welcome! Please feel free to submit a Pull Request.
