@cloudgrid-io/mcp 0.6.0 → 0.7.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.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: report
3
+ when: The user wants to build a report, one-pager, brief, or write-up with sections and data.
4
+ summary: Fetch the report template, fill it with the user's content, deploy it, and return the live share URL.
5
+ ---
6
+
7
+ # Workflow: report
8
+
9
+ Detect the intent ("build me a report / one-pager / brief about X") and follow
10
+ this recipe. Do not ask setup questions first; use sensible defaults and build.
11
+
12
+ 1. **Fetch the template.** Call `gridctl_fetch("template", "report")` to load
13
+ the self-contained, print-friendly HTML report template.
14
+ 2. **(Optional) Fetch the example.** Call `gridctl_fetch("example", "report")`
15
+ to see a filled report as a reference for tone and structure.
16
+ 3. **Fill the template.** Replace the placeholders with the user's content:
17
+ - The report title, subtitle, and date line.
18
+ - A short summary paragraph.
19
+ - One block per section. Each section has a heading and body content.
20
+ - The data table area: fill the rows with the user's figures, or remove it
21
+ if there is no tabular data.
22
+ - Keep it a single self-contained HTML file. Do not add external scripts,
23
+ stylesheets, fonts, or large embedded media.
24
+ 4. **Deploy.** Deploy the filled HTML:
25
+ - Hosted MCP edition: call the drop tool with the HTML.
26
+ - Local MCP / CLI edition: write the HTML to a file and run `gridctl plug`.
27
+ A report is an inspiration and deploys synchronously, so you get a URL right
28
+ away.
29
+ 5. **Return the live share URL.** Give the user the URL that serves the report.
30
+ For revisions, re-deploy with the entity id from the first deploy — it updates
31
+ the same share URL, so the user iterates on one link.
32
+
33
+ Keep the whole flow tight: fetch, fill, deploy, share.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: web-app
3
+ when: The user wants to build a small interactive web app, tool, calculator, or mini single-page application.
4
+ summary: Fetch the web-app template, adapt its markup and inline JS to the user's tool, deploy it, and return the live share URL.
5
+ ---
6
+
7
+ # Workflow: web-app
8
+
9
+ Detect the intent ("build me a web app / tool / calculator that does X") and
10
+ follow this recipe. Do not ask setup questions first; use sensible defaults and
11
+ build.
12
+
13
+ 1. **Fetch the template.** Call `gridctl_fetch("template", "web-app")` to load
14
+ the self-contained interactive HTML app template.
15
+ 2. **(Optional) Fetch the example.** Call `gridctl_fetch("example", "web-app")`
16
+ to see a real working tool as a reference for structure and inline logic.
17
+ 3. **Adapt the template.** Rework the markup and inline JavaScript into the tool
18
+ the user asked for:
19
+ - Set the app title and heading.
20
+ - Build the input controls and output area for the tool's job.
21
+ - Put all behavior in the inline `<script>`; keep state in memory.
22
+ - Keep it a single self-contained HTML file. Do not add external scripts,
23
+ stylesheets, fonts, or CDNs — inline everything.
24
+ 4. **Deploy.** Deploy the filled HTML:
25
+ - Hosted MCP edition: call the drop tool with the HTML.
26
+ - Local MCP / CLI edition: write the HTML to a file and run `gridctl plug`.
27
+ A web app is an inspiration and deploys synchronously, so you get a URL
28
+ right away.
29
+ 5. **Return the live share URL.** Give the user the URL that serves the app.
30
+ For revisions, re-deploy with the entity id from the first deploy — it updates
31
+ the same share URL, so the user iterates on one link.
32
+
33
+ Keep the whole flow tight: fetch, adapt, deploy, share.