Prerequisites
- Access to your Runlayer instance
- GitHub organization admin permissions
- Admin / Server Admin permissions in Runlayer (to add servers)
Setup Steps
1
Create GitHub OAuth Application
- Go to your organization’s Developer Settings
- Navigate to Settings → Developer settings → OAuth Apps → New OAuth app

- Fill in the details:
- Application name: Choose a name (e.g.,
Runlayer MCP) - Homepage URL: Your Runlayer instance URL
- Authorization callback URL:
https://<your-tenant-url>.runlayer.com/oauth/callback/- For self-hosted: Use your exact tenant URL
- Application name: Choose a name (e.g.,
- Click Register application

2
Generate Client Secret
- After creating the app, you’ll see the Client ID (save this)
- Click Generate a new client secret
- Copy the Client Secret immediately (it’s only shown once)
- Save both credentials temporarily in a secure location

3
Add GitHub Server in Runlayer
- In your Runlayer instance, go to Catalog
- Find GitHub and click Install MCP
- In the server configuration form:
- Check Custom OAuth credentials
- Enter your Client ID and Client Secret
- Click Create Hosted Server

4
Authorize GitHub Access
- After creating the server, you’ll be redirected to the server details page
- Under Missing Authorization, click Connect

- This opens GitHub’s OAuth authorization page

- Review the requested permissions and select repositories
- Click Authorize to complete the flow
5
Verify Connection
After successful authorization, you’ll be redirected back to Runlayer. The server will now show:
- Active status
- List of available tools (e.g.,
create_branch,add_issue_comment, etc.) - Revoke Access option in the Connection section

Troubleshooting
Redirect URI mismatch error
Redirect URI mismatch error
Error: “The redirect_uri is not associated with this application.”
Solution:

- Verify the callback URL in your GitHub OAuth app matches exactly:
https://<your-tenant-url>.runlayer.com/oauth/callback/ - For self-hosted instances, ensure you’re using the exact tenant URL
- The URL must include the trailing slash
Authorization successful but Failed to Connect
Authorization successful but Failed to Connect
Invalid client credentials
Invalid client credentials
Error: “Invalid client credentials” or authentication failsSolution:
- Double-check your Client ID and Client Secret are correct
- Ensure the Client Secret hasn’t expired (regenerate if needed)
- Verify the OAuth app is active in your organization’s Developer Settings
Tools not showing after authorization
Tools not showing after authorization
Next Steps
Once your GitHub MCP server is set up and authorized:- Connect to your MCP client: Use the “Add to MCP Client” section to integrate with Cursor, VS Code, or other supported clients
- Review available tools: Browse the 40+ GitHub tools available for repository management, issue tracking, and more
- Manage permissions: You can revoke access at any time from the Connection section
