@casama/plugin-check
v0.1.0
Published
Check an Agent Plugins 1.0 package the way Casama checks it at install.
Maintainers
Readme
@casama/plugin-check
Check an Agent Plugins 1.0 package (plugin.json, mcp.json,
skills/) the way Casama checks it when someone installs it from GitHub. It
runs the same code Casama runs, plus a few tips for things that install fine but would fail on the
bot's computer.
npx @casama/plugin-check # the current folder
npx @casama/plugin-check my-plugin --strict
npx @casama/plugin-check . --json- Exits 1 when Casama would refuse the plugin.
--strictalso fails when Casama would skip or ignore something (a skill, a server, a field). Use it in CI.--jsonprints the result, including the servers, secrets and network hosts Casama found.
In a GitHub workflow:
- uses: stackwares/casama/.github/actions/plugin-check@main
with:
path: .From code:
import { checkPluginFolder } from "@casama/plugin-check";
const r = checkPluginFolder("./my-plugin");
if (!r.ok) console.error(r.errors);Inside a git repository it checks the files as committed, the way Casama will see them.
Writing a plugin: docs.casama.ai/develop/plugins. Start one
with casama init plugin, or copy
examples/hello-plugin.
