OAuth setup
OAuth signs you in through your browser. You do not need to register an OAuth client.- Cursor
- Claude Code
- VS Code
- Codex
1
Open MCP settings
Open Customize and select MCPs.
2
Add Greptile
Add this configuration to project-level
.cursor/mcp.json or user-level ~/.cursor/mcp.json:3
Sign in
Ask Cursor:On the first protected tool call, follow the browser prompt to sign in.
4
Verify the connection
Run the same prompt again. A successful
list_custom_context result confirms authentication. Seeing Greptile’s tools in settings confirms discovery, but not authentication.Troubleshooting
OAuth is not offered
OAuth is not offered
A static
Authorization header or bearer-token setting from an earlier setup can prevent OAuth sign-in. Remove it from the Greptile server entry, restart the client, then invoke a protected tool such as list_custom_context to start the OAuth prompt.The OAuth browser does not open
The OAuth browser does not open
Claude Code users can run
claude mcp login greptile --no-browser and open the printed URL manually. In Cursor or VS Code, invoke a protected tool such as list_custom_context to trigger authentication.Tool calls return tenant_required
Tool calls return tenant_required
Your account belongs to multiple Greptile organizations. Ask your agent to call
get_me to list them, then pass the organization’s handle or id as the organization argument on subsequent tool calls.No tools are available
No tools are available
Restart the client, confirm Greptile is enabled, and check that the server URL is exactly
https://api.greptile.com/mcp.Tools return empty results
Tools return empty results
Confirm that your organization has repositories indexed in Greptile and that your user account can access them.
Configuration file locations
Next steps
Auto-Fix Workflow
Resolve Greptile comments from your IDE.
Tools Reference
Read the tools reference.