@notus-os/mcp 0.1.21 → 0.1.22

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Claude Code and remote MCP clients as an interface to notusOS. Published to npm; installed locally by strategists via `npx`.
4
4
 
5
- Admins get the full tool surface. Non-admin notusOS team members get read-only tools for their assigned clients; write workflows stay in notusOS.
5
+ Admins get the full tool surface. Non-admin notusOS team members get read-only tools for every non-excluded client in organizations where they are a strategist; write workflows stay in notusOS. CS assignment remains available as a roster filter, but does not grant or remove access.
6
6
 
7
7
  Full documentation lives at [www.notusos.com/documentation](https://www.notusos.com/documentation).
8
8
  For the private Luca Wetzel workflow that creates scheduled Content Engine posts
@@ -59,9 +59,15 @@ The remote server advertises OAuth protected-resource metadata at
59
59
  `/.well-known/oauth-protected-resource`; notusOS serves the authorization-code
60
60
  flow at `/oauth/authorize` and `/api/mcp/oauth/token`.
61
61
 
62
- For container deploys, use `apps/mcp-server` as the service root. Its local
63
- `Dockerfile` starts `notusos-mcp serve`; set `NOTUSOS_API_URL`,
64
- `NOTUSOS_AUTH_BASE_URL`, and `NOTUSOS_MCP_PUBLIC_URL`.
62
+ For container deploys, use the **repository root** as the Railway Root Directory
63
+ (the Dockerfile copies `shared/` + `apps/mcp-server/`). Its `Dockerfile` starts
64
+ `notusos-mcp serve`. Automatic notusOS scheduling lives on the persistent
65
+ `scheduled-clock` service; durable execution lives on `background-worker`.
66
+
67
+ Required MCP env vars:
68
+ - `NOTUSOS_API_URL` — notusOS app origin (e.g. `https://app.notusos.com`)
69
+ - `NOTUSOS_AUTH_BASE_URL` — same as API URL in production
70
+ - `NOTUSOS_MCP_PUBLIC_URL` — public MCP URL
65
71
 
66
72
  ## Development
67
73
 
@@ -88,9 +94,9 @@ After any change that affects auth or the tool surface, run through:
88
94
  2. `npx @notus-os/mcp status` — confirms the token is stored.
89
95
  3. Register in Claude Code (see config above) and restart.
90
96
  4. In Claude Code, invoke the canary flow:
91
- - "list my clients" → `list_clients` returns real data
97
+ - "list every client I can access" → `list_clients` returns clients across strategist organizations, including clients assigned to teammates
92
98
  - "give me the full picture for <client name>" → `get_client_detail` with a picked id
93
- - "what posts does <client> have?" → `list_posts` via the target ids from above
99
+ - "which posts brought the most ICP people?" → `get_analytics_posts`, then `get_analytics_post_detail` for exact counts, signal records, and ICP buckets
94
100
  5. Revoke in Settings → API Keys → retry any tool → expect a user-facing `AUTH_EXPIRED` with the "run notusos-mcp login" suggestion.
95
101
  6. Impersonation boundary check: attempt to target a client whose org the strategist is not in → expect `FORBIDDEN`.
96
102