@nestr/mcp 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -89
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,39 +14,31 @@ This MCP server allows AI assistants to interact with your Nestr workspace:
|
|
|
14
14
|
|
|
15
15
|
## Quick Start
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
**Visit [mcp.nestr.io](https://mcp.nestr.io)** for the easiest setup with step-by-step instructions for Claude Desktop, Claude Code, and Cursor.
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
2. Click **Settings** (gear icon) in the top right
|
|
21
|
-
3. Go to the **Integrations** tab
|
|
22
|
-
4. Find **"Workspace API access"** and click **Configure**
|
|
23
|
-
5. Click **"New API key"** and copy it
|
|
24
|
-
|
|
25
|
-
### 2. Configure Your AI Client
|
|
19
|
+
### Claude Desktop
|
|
26
20
|
|
|
27
|
-
|
|
21
|
+
1. Go to **Settings → Connectors → Add custom connector**
|
|
22
|
+
2. Set **Name** to `Nestr` and **Remote MCP URL** to `https://mcp.nestr.io/mcp`
|
|
23
|
+
3. Click "Add" then "Authenticate" to log in with Nestr
|
|
28
24
|
|
|
29
|
-
|
|
25
|
+
### Claude Code
|
|
30
26
|
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
"mcpServers": {
|
|
34
|
-
"nestr": {
|
|
35
|
-
"command": "npx",
|
|
36
|
-
"args": ["-y", "@nestr/mcp"],
|
|
37
|
-
"env": {
|
|
38
|
-
"NESTR_API_KEY": "your-api-key-here"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
27
|
+
```bash
|
|
28
|
+
claude mcp add nestr --transport http https://mcp.nestr.io/mcp
|
|
43
29
|
```
|
|
44
30
|
|
|
45
|
-
|
|
31
|
+
Then run `/mcp` in Claude Code and click "Authenticate" to log in.
|
|
46
32
|
|
|
47
|
-
|
|
33
|
+
### Using the npm Package (Local)
|
|
34
|
+
|
|
35
|
+
If you prefer to run the MCP server locally:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npx @nestr/mcp
|
|
39
|
+
```
|
|
48
40
|
|
|
49
|
-
|
|
41
|
+
Configure your AI client with:
|
|
50
42
|
|
|
51
43
|
```json
|
|
52
44
|
{
|
|
@@ -62,11 +54,12 @@ Add to your Claude Code MCP settings:
|
|
|
62
54
|
}
|
|
63
55
|
```
|
|
64
56
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
To get an API key:
|
|
58
|
+
1. Go to your [Nestr workspace](https://app.nestr.io)
|
|
59
|
+
2. Click **Settings** → **Integrations** → **Workspace API access** → **Configure**
|
|
60
|
+
3. Click **"New API key"** and copy it
|
|
68
61
|
|
|
69
|
-
|
|
62
|
+
## Start Using It
|
|
70
63
|
|
|
71
64
|
Ask your AI assistant things like:
|
|
72
65
|
|
|
@@ -75,7 +68,6 @@ Ask your AI assistant things like:
|
|
|
75
68
|
- "Create a new project called 'Q1 Planning'"
|
|
76
69
|
- "What are my current projects and their status?"
|
|
77
70
|
- "Who is responsible for customer support?"
|
|
78
|
-
- "Show me the structure of the Product circle"
|
|
79
71
|
|
|
80
72
|
## Available Tools
|
|
81
73
|
|
|
@@ -100,9 +92,9 @@ Ask your AI assistant things like:
|
|
|
100
92
|
| `nestr_list_labels` | List available labels |
|
|
101
93
|
| `nestr_get_label` | Get label details |
|
|
102
94
|
| `nestr_get_projects` | List projects with status |
|
|
103
|
-
| `nestr_get_insights` | Get
|
|
95
|
+
| `nestr_get_insights` | Get workspace metrics |
|
|
104
96
|
| `nestr_get_insight_history` | Get historical trend data for a metric |
|
|
105
|
-
| `nestr_get_workspace_apps` | List enabled apps/features
|
|
97
|
+
| `nestr_get_workspace_apps` | List enabled apps/features |
|
|
106
98
|
| `nestr_list_inbox` | List items in user's inbox (OAuth only) |
|
|
107
99
|
| `nestr_create_inbox_item` | Quick capture to inbox (OAuth only) |
|
|
108
100
|
| `nestr_get_inbox_item` | Get inbox item details (OAuth only) |
|
|
@@ -110,56 +102,17 @@ Ask your AI assistant things like:
|
|
|
110
102
|
|
|
111
103
|
## Authentication
|
|
112
104
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
### Option 1: API Key (Simple)
|
|
116
|
-
|
|
117
|
-
API keys provide full workspace access and are the easiest way to get started. See [Quick Start](#quick-start) above.
|
|
118
|
-
|
|
119
|
-
**Note:** API keys have full workspace access regardless of user permissions.
|
|
120
|
-
|
|
121
|
-
### Option 2: OAuth (Recommended for Hosted Service)
|
|
122
|
-
|
|
123
|
-
OAuth authentication respects user-specific permissions - the AI assistant can only access what the authenticated user can access.
|
|
124
|
-
|
|
125
|
-
#### Using the Hosted Service (mcp.nestr.io)
|
|
126
|
-
|
|
127
|
-
The hosted service at [mcp.nestr.io](https://mcp.nestr.io) supports OAuth out of the box:
|
|
128
|
-
|
|
129
|
-
1. Visit [mcp.nestr.io/oauth/authorize](https://mcp.nestr.io/oauth/authorize)
|
|
130
|
-
2. Log in with your Nestr account and authorize access
|
|
131
|
-
3. Copy the access token from the success page
|
|
132
|
-
4. Use the token in your MCP client configuration:
|
|
133
|
-
|
|
134
|
-
```json
|
|
135
|
-
{
|
|
136
|
-
"mcpServers": {
|
|
137
|
-
"nestr": {
|
|
138
|
-
"command": "npx",
|
|
139
|
-
"args": ["-y", "@nestr/mcp"],
|
|
140
|
-
"env": {
|
|
141
|
-
"NESTR_OAUTH_TOKEN": "your-oauth-token-here"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
```
|
|
105
|
+
### OAuth (Recommended)
|
|
147
106
|
|
|
148
|
-
|
|
107
|
+
The hosted service at [mcp.nestr.io](https://mcp.nestr.io) handles OAuth automatically. Just add the server and authenticate through your browser.
|
|
149
108
|
|
|
150
|
-
|
|
109
|
+
OAuth respects user-specific permissions - the AI assistant can only access what the authenticated user can access.
|
|
151
110
|
|
|
152
|
-
|
|
153
|
-
2. Provide your callback URL (e.g., `https://your-domain.com/oauth/callback`)
|
|
154
|
-
3. Nestr will provide you with a `client_id` and `client_secret`
|
|
155
|
-
4. Set the following environment variables:
|
|
111
|
+
### API Key
|
|
156
112
|
|
|
157
|
-
|
|
158
|
-
NESTR_OAUTH_CLIENT_ID=your-client-id
|
|
159
|
-
NESTR_OAUTH_CLIENT_SECRET=your-client-secret
|
|
160
|
-
```
|
|
113
|
+
API keys provide full workspace access and work with the local npm package. See [Quick Start](#using-the-npm-package-local) above.
|
|
161
114
|
|
|
162
|
-
|
|
115
|
+
**Note:** API keys have full workspace access regardless of user permissions.
|
|
163
116
|
|
|
164
117
|
## Environment Variables
|
|
165
118
|
|
|
@@ -168,10 +121,8 @@ Once configured, users can authenticate via `/oauth/authorize` on your server.
|
|
|
168
121
|
| `NESTR_API_KEY` | Nestr API key (full workspace access) | Yes* |
|
|
169
122
|
| `NESTR_OAUTH_TOKEN` | OAuth token (respects user permissions) | Yes* |
|
|
170
123
|
| `NESTR_API_BASE` | API base URL (default: `https://app.nestr.io/api`) | No |
|
|
171
|
-
| `NESTR_OAUTH_CLIENT_ID` | OAuth client ID (for self-hosted OAuth) | No |
|
|
172
|
-
| `NESTR_OAUTH_CLIENT_SECRET` | OAuth client secret (for self-hosted OAuth) | No |
|
|
173
124
|
|
|
174
|
-
\* Either `NESTR_API_KEY` or `NESTR_OAUTH_TOKEN` is required.
|
|
125
|
+
\* Either `NESTR_API_KEY` or `NESTR_OAUTH_TOKEN` is required for local usage.
|
|
175
126
|
|
|
176
127
|
## Development
|
|
177
128
|
|
|
@@ -199,24 +150,19 @@ npm run build
|
|
|
199
150
|
npm run inspect
|
|
200
151
|
```
|
|
201
152
|
|
|
202
|
-
## Hosted Service
|
|
203
|
-
|
|
204
|
-
A hosted version is available at [mcp.nestr.io](https://mcp.nestr.io) for users who prefer not to run the server locally.
|
|
205
|
-
|
|
206
153
|
## Security
|
|
207
154
|
|
|
208
155
|
- Never commit your API key or OAuth token to version control
|
|
209
|
-
-
|
|
210
|
-
-
|
|
211
|
-
-
|
|
212
|
-
- Rotate keys/tokens if you suspect they've been compromised
|
|
156
|
+
- OAuth tokens respect user permissions and are recommended
|
|
157
|
+
- API keys provide full workspace access - use OAuth for granular permissions
|
|
158
|
+
- Rotate credentials if you suspect they've been compromised
|
|
213
159
|
|
|
214
160
|
## Resources
|
|
215
161
|
|
|
162
|
+
- [Setup Guide](https://mcp.nestr.io) - Step-by-step setup instructions
|
|
216
163
|
- [Nestr Help Center](https://help.nestr.io)
|
|
217
164
|
- [Nestr API Documentation](https://app.nestr.io/api/docs)
|
|
218
165
|
- [Model Context Protocol](https://modelcontextprotocol.io)
|
|
219
|
-
- [MCP Specification](https://modelcontextprotocol.io/specification/2025-11-25)
|
|
220
166
|
|
|
221
167
|
## License
|
|
222
168
|
|