@openpresentation/cli 0.27.0 → 0.29.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 +13 -0
- package/dist/index.js +174 -103
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -44,6 +44,19 @@ target is `~/.agents/skills`. See [agent skill installation](https://github.com/
|
|
|
44
44
|
for the complete target mapping and update behavior. The installer preserves AGENTS.md and unrelated configuration and refuses to
|
|
45
45
|
overwrite locally modified or unmanaged folders. `status` compares against the invoked CLI's bundled version without a network lookup.
|
|
46
46
|
|
|
47
|
+
## Use OPF from an MCP client
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
claude mcp add opf -- npx -y @openpresentation/mcp # Claude Code; Cursor and others: command npx, args -y @openpresentation/mcp
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The MCP server for OPF is its own package, [`@openpresentation/mcp`](https://github.com/OpenPresentation/opf/blob/main/docs/mcp.md),
|
|
54
|
+
so the CLI stays lean: it has no MCP code and no dependency on it. An agent that speaks [MCP](https://modelcontextprotocol.io) learns
|
|
55
|
+
and checks OPF through it without shelling out and parsing text (`start_here`, `validate_deck`, `get_schema`, `search_catalog`,
|
|
56
|
+
`convert`, `search_docs` and more; the docs, schemas, examples, catalog records and skills as `opf://` resources). `opf mcp` runs it
|
|
57
|
+
when it is installed beside the CLI or in the working directory; without it, `opf mcp` prints `npx -y @openpresentation/mcp` and
|
|
58
|
+
exits with 2.
|
|
59
|
+
|
|
47
60
|
## The conventions every command shares
|
|
48
61
|
|
|
49
62
|
- **One output convention.** A command that writes a deck takes an optional output after its inputs and writes stdout without one
|