1 import { InlineIcon, Note, Table } from "docs-ui"
2 import { EllipsisHorizontal } from "@medusajs/icons"
3
4 export const metadata = {
5 title: `Connections`,
6 }
7
8 # {metadata.title}
9
10 In this guide, you'll learn how to view and manage the connections that third-party applications, such as AI tools, have to your organization's environments.
11
12 ## What is a Connection?
13
14 A connection is the access that you grant a third-party application to your environments when you approve it on Cloud's OAuth consent page. For example, when you connect an AI tool like Claude, ChatGPT, or Cursor to the [Medusa MCP server](../../medusa-mcp/page.mdx), Cloud creates a connection for that AI tool with the environments you selected.
15
16 From your organization's settings, you can view all of these connections, change the environments each connection can access, and revoke connections that you no longer need.
17
18 ---
19
20 ## View Connections
21
22 To view your organization's connections:
23
24 1. If you're in a different organization, [switch to the organization](../page.mdx#switch-organization) whose connections you want to view.
25 2. Make sure you're on the projects overview page of the organization. You can do this by clicking on the organization name at the top left of the dashboard.
26 3. Click **Connections** in the sidebar.
27
28 The Connections page shows a table of all the authorized connections and the total number of connections. If there are no connections, the page shows an empty state instead.
29
30 The table has the following columns:
31
32 <Table>
33 <Table.Header>
34 <Table.Row>
35 <Table.HeaderCell>
36 Column
37 </Table.HeaderCell>
38 <Table.HeaderCell>
39 Description
40 </Table.HeaderCell>
41 </Table.Row>
42 </Table.Header>
43 <Table.Body>
44 <Table.Row>
45 <Table.Cell>
46 **App**
47 </Table.Cell>
48 <Table.Cell>
49 The connected application's icon and name, along with the resource type or host that it connects to. For example, "Claude" with a "Medusa MCP" subtitle.
50 </Table.Cell>
51 </Table.Row>
52 <Table.Row>
53 <Table.Cell>
54 **Access**
55 </Table.Cell>
56 <Table.Cell>
57 The number of environments and organizations that the connection can access.
58 </Table.Cell>
59 </Table.Row>
60 <Table.Row>
61 <Table.Cell>
62 **Status**
63 </Table.Cell>
64 <Table.Cell>
65 Shows **Active** for an active connection, or **Expires Soon** if the connection expires within 7 days.
66 </Table.Cell>
67 </Table.Row>
68 <Table.Row>
69 <Table.Cell>
70 **Last Used**
71 </Table.Cell>
72 <Table.Cell>
73 How long ago the application last used the connection, or **Never** if it hasn't used it yet.
74 </Table.Cell>
75 </Table.Row>
76 </Table.Body>
77 </Table>
78
79 ---
80
81 ## Manage a Connection
82
83 You can view a connection's details and change the environments that the application can access.
84
85 To manage a connection:
86
87 1. [Go to the Connections page](#view-connections).
88 2. Click the connection's row. Alternatively, click the <InlineIcon Icon={EllipsisHorizontal} alt="three dots" /> icon at the end of the connection's row and choose **Manage access**.
89
90 This opens a side drawer with the connection's details.
91
92 ### Connection Details
93
94 The **Details** section of the drawer shows the following information about the connection:
95
96 - **Status**: Whether the connection is active or expires soon.
97 - **Connected**: The date that you approved the connection.
98 - **Last Used**: How long ago the application last used the connection, or **Never**.
99 - **Expires**: The date that the connection expires.
100 - **Client ID**: The OAuth client identifier of the application.
101
102 ### Change Accessible Environments
103
104 The **Environments** section of the drawer lists the environments that you can access, grouped by organization and project. Each organization row shows how many of its environments are selected, for example, "2 of 5 selected". You can expand an organization to view its projects and their environments.
105
106 To change the environments that the application can access:
107
108 1. In the **Environments** section, select or clear the checkboxes of the environments. Selecting a project's checkbox selects all its environments.
109 2. Click **Save**.
110
111 <Note>
112
113 A connection must have access to at least one environment. To remove the application's access to all environments, [revoke the connection](#revoke-a-connection) instead.
114
115 </Note>
116
117 ---
118
119 ## Revoke a Connection
120
121 <Note type="warning">
122
123 Once you revoke a connection, the application can no longer access the connection's environments. To restore access, you must connect the application again and approve the connection on the consent page.
124
125 </Note>
126
127 To revoke a connection:
128
129 1. [Go to the Connections page](#view-connections).
130 2. Click the <InlineIcon Icon={EllipsisHorizontal} alt="three dots" /> icon at the end of the connection's row.
131 3. Choose **Revoke** from the dropdown.
132 4. Confirm revoking the connection in the prompt. The prompt shows the application's name and the number of environments it can no longer access.