caplets 0.13.0 → 0.15.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 +47 -0
- package/dist/index.js +35908 -33633
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -103,6 +103,33 @@ The Claude Code and Codex commands install from this GitHub repository through e
|
|
|
103
103
|
plugin marketplace flow; users do not need to clone the repository manually. Plugin MCP
|
|
104
104
|
configs run `caplets serve` directly, so install the Caplets CLI globally first.
|
|
105
105
|
|
|
106
|
+
### Remote Caplets service
|
|
107
|
+
|
|
108
|
+
OpenCode and Pi can use native `caplets_<id>` tools backed by a remote Caplets HTTP service. Codex, Claude Code, and any MCP client can connect to the same remote MCP endpoint directly.
|
|
109
|
+
|
|
110
|
+
Start a local HTTP service:
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
caplets serve --transport http --host 127.0.0.1 --port 5387 --path /mcp
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
`caplets serve --transport http` serves plain HTTP. For non-loopback or network access, expose it only through HTTPS/TLS (for example, a reverse proxy or secure tunnel) and enable Basic Auth; Basic Auth over plain HTTP exposes credentials. Keep credentials out of plugin manifests:
|
|
117
|
+
|
|
118
|
+
```sh
|
|
119
|
+
CAPLETS_SERVER_PASSWORD=... caplets serve --transport http --host 127.0.0.1 --port 5387 --path /mcp
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Native integrations read remote client settings from environment variables:
|
|
123
|
+
|
|
124
|
+
```sh
|
|
125
|
+
CAPLETS_REMOTE_URL=https://caplets.example.com/mcp \
|
|
126
|
+
CAPLETS_REMOTE_USER=caplets \
|
|
127
|
+
CAPLETS_REMOTE_PASSWORD=... \
|
|
128
|
+
opencode
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
For MCP-backed Codex or Claude Code configs, point the agent's MCP server entry at the remote URL using that agent's supported HTTP MCP configuration. If Basic Auth is needed, use the agent's secure secret or environment interpolation mechanism rather than hardcoding credentials.
|
|
132
|
+
|
|
106
133
|
## Convert Existing Tooling
|
|
107
134
|
|
|
108
135
|
Caplets is designed to convert what you already use into agent-friendly capability domains.
|
|
@@ -914,6 +941,26 @@ Available operations:
|
|
|
914
941
|
Requests are strict: operation-specific extra fields are rejected, and `call_tool` requires
|
|
915
942
|
`arguments` to be a JSON object.
|
|
916
943
|
|
|
944
|
+
Discovery operations (`get_caplet`, `check_backend`, `list_tools`, `search_tools`, and
|
|
945
|
+
`get_tool`) return wrapper-generated results whose `structuredContent.caplets` field
|
|
946
|
+
identifies the Caplet with `id`, plus backend, operation, status, and elapsed time when
|
|
947
|
+
available. Discovery result objects and compact tool entries also use `id` for the
|
|
948
|
+
configured Caplet identity. Compact `list_tools` and `search_tools` entries may include
|
|
949
|
+
input/output schema hashes; treat those
|
|
950
|
+
hashes as reuse hints for a schema you have already inspected, not as a replacement for
|
|
951
|
+
`get_tool` when arguments, output, or semantics are unclear.
|
|
952
|
+
|
|
953
|
+
Direct `call_tool` preserves the downstream tool result shape instead of wrapping it in
|
|
954
|
+
`structuredContent.result`. When the result can carry MCP metadata, Caplets adds
|
|
955
|
+
`_meta.caplets` with the same call context and status. It may also include artifact metadata
|
|
956
|
+
for paths mentioned by downstream content, such as screenshots, snapshots, logs, downloads,
|
|
957
|
+
or other saved files. Artifact `displayPath` values are either absolute local paths or
|
|
958
|
+
relative to the downstream MCP server process, not necessarily relative to the current
|
|
959
|
+
project or Caplets process.
|
|
960
|
+
|
|
961
|
+
For first use, the explicit progressive-discovery path is still safest: choose a Caplet,
|
|
962
|
+
`search_tools` or `list_tools`, inspect uncertain tools with `get_tool`, then `call_tool`.
|
|
963
|
+
|
|
917
964
|
## Development
|
|
918
965
|
|
|
919
966
|
```sh
|