@mtaap/mcp 0.1.2 → 0.2.0

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 CHANGED
@@ -12,6 +12,15 @@ npm install -g @mtaap/mcp
12
12
  npx @mtaap/mcp
13
13
  ```
14
14
 
15
+ ## Architecture
16
+
17
+ The MCP server is a thin API client that communicates with the MTAAP webapp via REST API. All business logic, database access, and encryption operations are handled server-side by the webapp. This design:
18
+
19
+ - **Simplifies configuration**: Only 2 environment variables required
20
+ - **Improves security**: No encryption keys or database credentials in user configs
21
+ - **Reduces package size**: ~90% smaller than direct database access version
22
+ - **Centralizes logic**: All business rules enforced server-side
23
+
15
24
  ## Configuration
16
25
 
17
26
  ### Required Environment Variables
@@ -19,18 +28,19 @@ npx @mtaap/mcp
19
28
  | Variable | Description |
20
29
  |----------|-------------|
21
30
  | `MTAAP_API_KEY` | Your MTAAP API key. Generate one at https://collab.mtaap.de/settings/api-keys |
31
+ | `MTAAP_BASE_URL` | MTAAP webapp URL (e.g., `https://collab.mtaap.de`) |
22
32
 
23
33
  ### Optional Environment Variables
24
34
 
25
35
  | Variable | Description |
26
36
  |----------|-------------|
27
- | `GITHUB_TOKEN` | GitHub personal access token for branch creation and PR features |
37
+ | `MTAAP_DEBUG` | Set to `true` to enable debug logging |
28
38
 
29
39
  ### Example
30
40
 
31
41
  ```bash
32
42
  export MTAAP_API_KEY=usr_xxxxx...
33
- export GITHUB_TOKEN=ghp_xxxxx... # Optional, for git operations
43
+ export MTAAP_BASE_URL=https://collab.mtaap.de
34
44
  ```
35
45
 
36
46
  ## Available Tools
@@ -246,7 +256,7 @@ pnpm build
246
256
  pnpm dev
247
257
 
248
258
  # Run locally
249
- MTAAP_API_KEY=your-key pnpm start
259
+ MTAAP_API_KEY=your-key MTAAP_BASE_URL=https://collab.mtaap.de pnpm start
250
260
  ```
251
261
 
252
262
  ## Troubleshooting
@@ -255,17 +265,25 @@ MTAAP_API_KEY=your-key pnpm start
255
265
 
256
266
  You need to set the `MTAAP_API_KEY` environment variable. Generate an API key at https://collab.mtaap.de/settings/api-keys
257
267
 
258
- ### "GITHUB_TOKEN is not set" warning
268
+ ### "MTAAP_BASE_URL is required"
259
269
 
260
- This warning appears when `GITHUB_TOKEN` is not configured. Git operations (branch creation, PR creation) require this token. The server will still start, but git-related features will fail.
270
+ You need to set the `MTAAP_BASE_URL` environment variable to your MTAAP webapp URL (e.g., `https://collab.mtaap.de`).
261
271
 
262
- ### "Invalid API key"
272
+ ### "Invalid API key" or "Authentication failed"
263
273
 
264
274
  Your API key may be expired or revoked. Generate a new one at https://collab.mtaap.de/settings/api-keys
265
275
 
276
+ ### "GitHub token not configured"
277
+
278
+ Git operations (branch creation, PR creation) require a GitHub token to be configured in your MTAAP account settings. Go to https://collab.mtaap.de/settings and add your GitHub personal access token.
279
+
266
280
  ### Connection issues
267
281
 
268
- Ensure your firewall allows outbound connections to your MTAAP instance. By default, the server connects to `https://collab.mtaap.de`.
282
+ Ensure your firewall allows outbound connections to your MTAAP instance. The server performs a connectivity check on startup and will report any connection issues.
283
+
284
+ ### Rate limiting
285
+
286
+ The MCP API is rate limited to 100 requests per minute. If you exceed this limit, you'll receive a 429 error with a `Retry-After` header indicating when you can retry.
269
287
 
270
288
  ## Publishing
271
289