@com55/node-red-ai-access 0.0.0-stage → 0.1.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/docs/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # Node-RED AI Access documentation
2
+
3
+ Temporary, owner-approved Node-RED access for AI clients over three channels:
4
+
5
+ | Channel | Surface | Token kind | Best for |
6
+ | ------------ | ------------------ | ---------- | ---------------------------------------------------- |
7
+ | **GET link** | `/mcp/a/<token>/…` | `get_link` | Chat AIs that can only HTTP GET (no custom headers) |
8
+ | **REST** | `/mcp/api/v1/…` | `rest` | Clients that can send `Authorization: Bearer` + JSON |
9
+ | **MCP** | `POST /mcp/rpc` | `mcp` | MCP-capable apps (Streamable HTTP) |
10
+
11
+ Prefer **MCP** or **REST** when the client can send custom headers and JSON
12
+ bodies. Use a **GET link** only as a fallback for headerless GET-only clients.
13
+
14
+ ## Index
15
+
16
+ - [MCP client setup](./mcp-clients.md) — Claude Desktop, Cursor, VS Code, Claude
17
+ Code CLI, generic Streamable HTTP
18
+ - [MCP tools reference](./mcp-tools.md) — generated from live `tools/list`
19
+ schemas
20
+ - [Error codes](./errors.md) — code, HTTP status, meaning, hint, channels
21
+ - [OpenAPI 3.1](./api/openapi.yaml) — also served at
22
+ `GET /mcp/api/v1/openapi.yaml` (JSON: `GET /mcp/api/v1/openapi.json`)
23
+ - Discovery guide — `GET /mcp/api/v1` (unauthenticated JSON index)
24
+
25
+ Mint tokens on the admin page at `/mcp` → **Access links** (admin `*` only).
26
+ Each token works on **one** surface; wrong kind → `403 wrong_token_kind`.