@kvasar/google-stitch 0.1.24 → 0.1.27

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,22 +2,6 @@
2
2
 
3
3
  Integrate Google Stitch MCP (Model Context Protocol) into OpenClaw to search resources, execute workflows, and monitor status.
4
4
 
5
- ## Installation
6
-
7
- 1. Clone or copy this plugin into your OpenClaw workspace:
8
- ```bash
9
- cd ~/.openclaw/workspace
10
- git clone <repo-url> openclaw-google-stitch-mcp
11
- ```
12
- 2. Install dependencies:
13
- ```bash
14
- cd openclaw-google-stitch-mcp
15
- npm install
16
- ```
17
- 3. Verify TypeScript and tests:
18
- ```bash
19
- npm run check
20
- ```
21
5
 
22
6
  ## Configuration
23
7
 
@@ -45,88 +29,6 @@ Example configuration (in OpenClaw config file or UI):
45
29
  }
46
30
  ```
47
31
 
48
- A sample configuration file is provided in `config/.example.json`.
49
-
50
- ## Tools Reference
51
-
52
- ### `stitch_search`
53
-
54
- Search Stitch MCP resources and workflows.
55
-
56
- **Parameters:**
57
- - `query` (string, required): Search query string.
58
- - `filters` (object, optional): Optional filters (e.g., `{ "type": "flow" }`).
59
-
60
- **Example:**
61
- ```json
62
- {
63
- "query": "data pipeline",
64
- "filters": { "type": "flow" }
65
- }
66
- ```
67
-
68
- **Response:** JSON with `resources` array and `total`.
69
-
70
- ---
71
-
72
- ### `stitch_execute_flow`
73
-
74
- Execute a Stitch flow/action.
75
-
76
- **Parameters:**
77
- - `flowId` (string, required): Identifier of the flow (from `stitch_search`).
78
- - `inputs` (object, optional): Input parameters for the flow.
79
-
80
- **Example:**
81
- ```json
82
- {
83
- "flowId": "flow_12345",
84
- "inputs": { "source": "bigquery", "dataset": "analytics.events" }
85
- }
86
- ```
87
-
88
- **Response:** Initial execution result with `executionId` and `status`.
89
-
90
- ---
91
-
92
- ### `stitch_status`
93
-
94
- Check execution status or service health.
95
-
96
- **Parameters:**
97
- - `executionId` (string, optional): Execution ID to poll. If omitted, returns service health.
98
-
99
- **Example (check execution):**
100
- ```json
101
- {
102
- "executionId": "exec_67890"
103
- }
104
- ```
105
-
106
- **Example (health):**
107
- ```json
108
- {}
109
- ```
110
-
111
- **Response:** Status object with `healthy` (boolean) for health, or detailed execution status.
112
-
113
- ---
114
-
115
- ## Error Handling
116
-
117
- The plugin surfaces errors with `isError: true` and a message. Common errors:
118
-
119
- - **Configuration missing**: Ensure `apiKey` and `endpoint` are set.
120
- - **Authentication/HTTP errors**: Check API key validity and endpoint reachability.
121
- - **JSON-RPC errors**: Inspect `error.message` from Stitch; may indicate invalid method or parameters.
122
- - **Network**: The client retries up to 3 times with exponential backoff; persistent failures are reported.
123
-
124
- ## Development
125
-
126
- - **TypeScript**: `npm run typecheck`
127
- - **Tests**: `npm test` (Vitest)
128
- - **Watch**: `npm run test:watch`
129
-
130
32
  ### Project Structure
131
33
 
132
34
  ```
@@ -140,8 +42,7 @@ openclaw-google-stitch-mcp/
140
42
  │ ├── stitch_execute_flow.ts
141
43
  │ └── stitch_status.ts
142
44
  ├── skills/
143
- │ └── google-stitch/
144
- │ └── SKILL.md
45
+ │ └── SKILL.md
145
46
  ├── tests/unit/
146
47
  │ └── stitch-mcp-client.test.ts
147
48
  ├── config/
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "openclaw-google-stitch",
3
3
  "name": "Google Stitch MCP",
4
- "version": "0.1.24",
4
+ "version": "0.1.27",
5
5
  "description": "Integrates Google Stitch MCP services into OpenClaw",
6
6
  "skills": ["skills"],
7
7
  "configSchema": {
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@kvasar/google-stitch",
3
- "version": "0.1.24",
3
+ "version": "0.1.27",
4
4
  "description": "OpenClaw plugin for Google Stitch UI generation, screen design, variants, and design systems",
5
5
  "type": "module",
6
- "main": "./src/index.ts",
6
+ "main": "./index.ts",
7
7
  "files": [
8
8
  "index.ts",
9
9
  "src/",
10
10
  "openclaw.plugin.json",
11
11
  "skills/",
12
12
  "tsconfig.json",
13
- "README.md",
14
- "SKILL.md"
13
+ "README.md"
15
14
  ],
16
15
  "scripts": {
17
16
  "typecheck": "tsc --noEmit",