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: README.md
+67-28Lines changed: 67 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,24 +4,57 @@
4
4
5
5
## Usage
6
6
7
-
### Developer Token Authorization
8
-
This MCP server currently supports only Developer Token authentication.
7
+
### JSON Web Token (JWT) Authorization (recommended)
8
+
9
+
Using a JWT Config will allow persistent connection to Box. You will need a paid Box enterprise account, or you can sign up for a [free developer account](https://account.box.com/signup/n/developer) (make sure you are signed out of Box before clicking that link).
10
+
11
+
Begin by visiting the [Box Developer Console](https://app.box.com/developers/console) and create a new application. Make sure the authorization type is JSON Web Token.
12
+
13
+
Go to `Configuration > Add and Manage Public Keys` and Generate a Public/Private Keypair.
14
+
If you have not already, Box prompt you to set up 2 factor authentication and Authorize the application as an administrator in your box account. You will need to:
15
+
16
+
1. give the application `App + Enterprise Access`, and
17
+
2. enable the `make API calls using the as-user header` option
18
+
19
+
via the Box Application's Configuration page. **Make sure to reauthorize the application if you are modifying these settings**.
20
+
21
+
Download/store the configuration JSON somewhere on your computer. We will set the environment variable `BOX_JWT_CONFIG_PATH` to its location. We will also set the `BOX_USER_ID` to the user whose files we will be accessing. You can find your own Box User Id on your [account page](https://app.box.com/account).
Using a developer token is the easiest way to integrate with Box, but will only last 60 minutes.
9
43
10
44
To get started, set the `BOX_DEV_TOKEN` to a [Box Developer Token](https://developer.box.com/guides/authentication/tokens/developer-tokens/).
11
45
12
-
Begin by visiting the [Box Developer Console](https://app.box.com/developers/console) and create a new application. The authorization type does not currently matter, as all support Box Developer Token.
46
+
Begin by visiting the [Box Developer Console](https://app.box.com/developers/console) and create a new application. The authorization type does not currently matter, as all support Box Developer Token.
13
47
14
48
Once your application is created, navigate to its configuration setings and click `Generate Developer Token`.
15
49
16
-
### Claude Desktop Configuration
50
+
#### Claude Desktop Configuration
51
+
17
52
```json
18
53
{
19
54
"mcpServers": {
20
55
"box": {
21
56
"command": "npx",
22
-
"args": [
23
-
"box-mcp-server"
24
-
],
57
+
"args": ["box-mcp-server"],
25
58
"env": {
26
59
"BOX_DEV_TOKEN": "YOUR_DEV_TOKEN_GOES_HERE"
27
60
}
@@ -45,46 +78,52 @@ Once your application is created, navigate to its configuration setings and clic
45
78
46
79
Before you begin, ensure you have the following installed:
47
80
48
-
* Node.js (v22 or higher)
49
-
* npm
50
-
* git
81
+
- Node.js (v22 or higher)
82
+
- npm
83
+
- git
51
84
52
85
### Setting up Development Environment
53
86
54
87
To set up the development environment, follow these steps:
55
88
56
89
1. Fork the repository
57
-
* Click the "Fork" button in the top-right corner of this repository
58
-
* This creates your own copy of the repository under your Github acocunt
90
+
91
+
- Click the "Fork" button in the top-right corner of this repository
92
+
- This creates your own copy of the repository under your Github acocunt
0 commit comments