@syntica/mcp 2.1.0 → 2.1.2

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/package.json CHANGED
@@ -1,11 +1,22 @@
1
1
  {
2
2
  "name": "@syntica/mcp",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Claude Code MCP server and skills for deploying applications on Syntica",
5
+ "mcpName": "io.syntica/mcp",
5
6
  "bin": {
6
7
  "syntica-mcp": "./dist/index.js"
7
8
  },
8
9
  "homepage": "https://syntica.io",
10
+ "keywords": [
11
+ "mcp",
12
+ "mcp-server",
13
+ "model-context-protocol",
14
+ "claude-code",
15
+ "deployment",
16
+ "docker-compose",
17
+ "paas",
18
+ "syntica"
19
+ ],
9
20
  "files": [
10
21
  "dist/",
11
22
  "skills/"
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "syntica",
10
10
  "description": "Deploy, run and debug your applications on Syntica from Claude Code — real infrastructure, a live URL, no DevOps required.",
11
- "version": "2.1.0",
11
+ "version": "2.1.2",
12
12
  "source": "./"
13
13
  }
14
14
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "syntica",
3
3
  "description": "Deploy, run and debug your applications on Syntica from Claude Code — real infrastructure, a live URL, no DevOps required.",
4
- "version": "2.1.0",
4
+ "version": "2.1.2",
5
5
  "mcpServers": {
6
6
  "syntica": {
7
7
  "command": "npx",
@@ -68,8 +68,14 @@ Two that are worth knowing:
68
68
  on 465, STARTTLS otherwise.
69
69
 
70
70
  Send, post or authenticate only as the identity the connection carries
71
- (`MAIL_FROM`, the granted channel, the granted site). Anything else is rejected by
72
- the vendor, or scoped away by the platform.
71
+ (`MAIL_FROM`, the granted channel, the granted site). Pin it: read the identity
72
+ from the injected variable, never from user input or a request parameter.
73
+
74
+ **The platform does not enforce this for you.** A Microsoft 365 app registration
75
+ can send as any mailbox in the tenant unless the organisation has added an
76
+ `ApplicationAccessPolicy`, and the platform neither creates nor verifies one. If
77
+ the code you are writing needs to act as anything other than the injected
78
+ identity, stop and raise it with the user rather than implementing it.
73
79
 
74
80
  ## Step 4 — Fail loudly when the variables are absent
75
81
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: syntica-debug
3
- description: Diagnose a deployed application on Syntica — list running services with status and resource use, tail logs, restart a service. Use when an app deployed to Syntica is down, erroring, returning 500s, crash-looping or behaving unexpectedly, or when the user asks to check logs or restart a service.
3
+ description: Diagnose a deployed application on Syntica — list running services with status and resource use, search retained logs and read errors from after a crash or restart, tail live output, restart a service. Use when an app deployed to Syntica is down, erroring, returning 500s, crash-looping or behaving unexpectedly, or when the user asks to check logs or restart a service.
4
4
  ---
5
5
 
6
6
  # Syntica Debug
@@ -62,9 +62,29 @@ If there are multiple services, ask: "Which service would you like to debug? (<l
62
62
 
63
63
  ---
64
64
 
65
- ## Step 4 — Tail logs
65
+ ## Step 4 — Read the logs
66
66
 
67
- Call `app_service_tail_logs` with:
67
+ **Start with `app_recent_errors`** unless the user is watching something happen
68
+ right now. It searches *retained* logs across every service, so it works when the
69
+ container has restarted since, and when the node is stopped — which is exactly
70
+ the state an application is in the morning after it broke.
71
+
72
+ ```json
73
+ {
74
+ "token": "<token>",
75
+ "applicationId": "<appId>",
76
+ "environment": "<environment>",
77
+ "minutes": 60
78
+ }
79
+ ```
80
+
81
+ Widen `minutes` if nothing comes back, and use `app_search_logs` when you know
82
+ what you are looking for — a route, an order id, a message from a stack trace.
83
+ Retention only reaches back as far as this application's window, so "nothing
84
+ found" can mean the event is older than the window rather than that it never
85
+ happened. Say which you mean.
86
+
87
+ Then, to follow what is happening **now**, call `app_service_tail_logs` with:
68
88
  ```json
69
89
  {
70
90
  "token": "<token>",
@@ -26,6 +26,31 @@ If neither file yields a `token`, or `orgId` is empty, stop and tell the user:
26
26
 
27
27
  Use `token` and `orgId` from the file for every call below. If a call returns an auth error, tell the user: "Your session has expired. Run `/syntica-onboard` to sign in again." and stop.
28
28
 
29
+ ### If the user has more than one organisation
30
+
31
+ The stored token is scoped to **one** organisation. Passing a different `orgId` to a tool does
32
+ not switch — the token is what authorises, so the call is refused.
33
+
34
+ When the user mentions another organisation, asks what they have access to, or wants something
35
+ created somewhere other than the current org:
36
+
37
+ 1. `org_list_orgs` — the organisations this user belongs to.
38
+ 2. Ask which one they mean, unless they have already said.
39
+ 3. `org_select` with that `orgId` — returns a **new** token scoped to it.
40
+ 4. Write the new `token` and `orgId` to `~/.syntica/credentials.json`, replacing both, and use
41
+ them for the rest of the session:
42
+
43
+ ```bash
44
+ (umask 077 && cat > ~/.syntica/credentials.json <<'JSON'
45
+ {"token":"<new token>","userId":"<userId>","orgId":"<new orgId>"}
46
+ JSON
47
+ )
48
+ ```
49
+
50
+ Tell the user which organisation you switched to. A switch is sticky: everything afterwards,
51
+ including anything `.syntica/config.json` refers to, belongs to the new org, so check the app
52
+ still exists there before acting on it.
53
+
29
54
  ---
30
55
 
31
56
  ## Step 2 — Choose the operation