You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: install/index.mdx
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,24 @@ The streamable HTTP endpoint is available at `https://api.ref.tools/mcp`.
19
19
20
20
You can find your API key at [ref.tools/keys](https://ref.tools/keys)
21
21
22
+
### OAuth and Teams
23
+
24
+
If you use OAuth in combination with [Teams](/usage/teams), you may need to specify the team you want Ref to access. Ref will do it's best to intelligently pick the correct team but you may want to manually force a specific team.
25
+
26
+
Here is the algorithm Ref uses to pick the user or team scope:
27
+
```
28
+
For base OAuth url https://api.ref.tools/mcp if the user belongs to:
29
+
- no teams -> user scope
30
+
- one team -> team scope for the users single team
31
+
- multiple teams -> user scope, require specifying team
32
+
33
+
When specifying scope in OAuth url https://api.ref.tools/mcp?scope=(user|{team_id})
34
+
- scope=user -> user scope
35
+
- scope={team_id} -> team scope
36
+
```
37
+
38
+
Team ids have the format `t-<hash>`. You can find the team OAuth url at [ref.tools/install](https://ref.tools/install)
0 commit comments