pulumi-package-docs 0.6.0 → 0.8.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/README.md +6 -0
- package/bin/cli-bun.js +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,6 +31,12 @@ chmod +x pulumi-package-docs-darwin-arm64
|
|
|
31
31
|
./pulumi-package-docs-darwin-arm64 --dir /path/to/pulumi/project
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
On macOS or Linux, it's also available via Homebrew:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
brew install pierskarsenbarg/tap/pulumi-package-docs
|
|
38
|
+
```
|
|
39
|
+
|
|
34
40
|
## MCP
|
|
35
41
|
|
|
36
42
|
The server also exposes an [MCP](https://modelcontextprotocol.io) endpoint at `/mcp` (Streamable HTTP), so a coding agent can look up the same local provider docs without browsing the site. Point an MCP client at `http://localhost:3000/mcp` (e.g. in Claude Code, `claude mcp add --transport http pulumi-package-docs http://localhost:3000/mcp`). Tools:
|
package/bin/cli-bun.js
CHANGED
|
@@ -20,10 +20,14 @@ function openBrowser(url) {
|
|
|
20
20
|
: process.platform === 'win32'
|
|
21
21
|
? ['cmd', '/c', 'start', '', url]
|
|
22
22
|
: ['xdg-open', url]
|
|
23
|
-
spawn(command[0], command.slice(1), {
|
|
23
|
+
const child = spawn(command[0], command.slice(1), {
|
|
24
24
|
stdio: 'ignore',
|
|
25
25
|
detached: true,
|
|
26
|
-
})
|
|
26
|
+
})
|
|
27
|
+
child.on('error', (err) => {
|
|
28
|
+
console.error(`Could not open browser: ${err.message}`)
|
|
29
|
+
})
|
|
30
|
+
child.unref()
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
console.log(`Serving provider docs for: ${options.dir}`)
|