@lyrashield/agent-plugin
v0.1.33
Published
LyraShield Agent Plugin package
Readme
@lyrashield/agent-plugin
Agent Plugins 1.0.0 package @lyrashield/[email protected] for LyraShield AI. It bundles LyraShield's MCP
connection and skills into one portable plugin. Conforming clients can load the canonical
manifest; generated client shims cover the launch clients listed below.
What's in the box
The canonical plugin lives in the plugin/ directory:
plugin/plugin.json— the manifest (name, version, description, author, homepage, repository, license, keywords).plugin/mcp.json— OAuth-first Streamable HTTP MCP server config. The hosted service performs authorization discovery and keeps write scope bound to the connection grant.plugin/skills/lyrashield/SKILL.md— the skill body, generated from the@lyrashield/agent-rulespolicy. It now includes a mode/cost guide, example user prompts and matching tool calls and a minute-awareness note so the agent picks the cheapest depth that fits the request.
Client manifest shims
buildPlugin() generates client-specific descriptors. Their presence in the package does not
create a discovery path; each client still controls activation:
.claude-plugin/— Claude Code.cursor-plugin/— Cursor.codex-plugin/— Codex.kiro-plugin/— Kiro
The Codex marketplace export uses the native streamable-http transport. Generated descriptors
are package artifacts; their presence does not establish a public vendor listing, supported install
path or authenticated client acceptance.
Current customer setup
Use the matching release versions @lyrashield/[email protected],
@lyrashield/[email protected] and [email protected]. Run
npx -y [email protected] login --oauth for local stdio authentication in the same OS account.
Node.js 24 or newer is required. The CLI provides supported config writers and shared-skill
installation; review npx -y [email protected] install <agent> --dry-run or
npx -y [email protected] skills install <agent> --dry-run before writing files. Preserve existing
servers and keep credentials out of shared configuration.
Client-owned marketplace publication and authenticated runtime acceptance remain separate from npm package availability. Until a client has a supported, verified plugin install path, use its direct-MCP setup below. Do not install from a mutable marketplace preparation branch.
| Client | Current guided fallback | Client config |
| ------------------ | ----------------------------------------------------------------------- | -------------------------------------------------- |
| Claude Code | Direct MCP | .mcp.json, mcpServers |
| OpenAI Codex | Direct MCP | ~/.codex/config.toml, [mcp_servers.lyrashield] |
| GitHub Copilot CLI | Direct MCP | ~/.copilot/mcp-config.json, type: "local" |
| VS Code | Direct MCP | .vscode/mcp.json, servers, type: "stdio" |
| Kiro | MCP settings | .kiro/settings/mcp.json, mcpServers |
| Cursor | Direct MCP | .cursor/mcp.json, mcpServers |
Package conformance checks describe packaged artifacts only. Restart the client, confirm server and tool discovery, then make an authenticated read-only workspace call. Those checks and vendor marketplace publication require separate receipts; a staging export cannot establish them.
API
getPluginDir()— returns the absolute path to the canonicalplugin/directory.validatePlugin(root)— validatesplugin.jsonandmcp.jsonagainst their AJV schemas; throws on any violation.buildPlugin()— generatesplugin/skills/lyrashield/SKILL.mdfrom the@lyrashield/agent-rulespolicy and emits the client manifest shims (.claude-plugin/,.cursor-plugin/,.codex-plugin/,.kiro-plugin/).
Build
pnpm --filter @lyrashield/agent-plugin build:plugin # regenerate SKILL.md + client shims
pnpm --filter @lyrashield/agent-plugin testAuthentication and approvals
The canonical, Claude, Cursor and Codex artifacts connect to the hosted Streamable HTTP
endpoint without embedding a secret. The client follows hosted OAuth discovery, selects one
workspace and receives read scope by default. Write scope is optional. Consent can delegate named
workflows for selected targets and scan profiles so matching calls need no additional LyraShield
review; mutating calls from API-key callers receive a connect_required response pointing at OAuth
connect and the legacy exact-input approval path remains only for nondelegated hosted credentials.
For local stdio fallback, run npx -y [email protected] login --oauth first, then use
npx -y @lyrashield/[email protected]; the server reads the user-only
~/.lyrashield/credentials.json file. Environment variables remain an explicit CI/headless
fallback, with LYRASHIELD_API_KEY taking precedence.
Headless writes without an approval channel fail closed on the local stdio server; API-key writes
against the remote endpoint receive connect_required instead.
Note: per the Agent Plugins v1.0.0 spec, the
mcp.jsonenvblock must not containPLUGIN_ROOTorPLUGIN_DATA. Those keys are reserved for the host and are injected at load time.
Version and release receipts
- Package:
@lyrashield/[email protected]; runtime: Node.js 24 or newer. - Standard schema: Agent Plugins 1.0.0.
pnpm --filter @lyrashield/agent-plugin testvalidates generated shims, schemas, OAuth-first manifests, mutation exclusions, artifact versions and the public export boundary.pnpm --filter @lyrashield/agent-plugin export:marketplace <directory>creates the reviewable marketplace payload and provenance manifest.
An exported or validated artifact is not proof that a vendor marketplace accepted, published or live-tested it. Public listings remain separate vendor-controlled submissions.
See also
packages/mcp/README.md— the MCP server this plugin packages.packages/agent-registry/README.md— the agent catalog and install strategies, includingagent-plugin.packages/cli/README.md— thelyrashieldCLI, which installs direct integrations or prints the client-owned marketplace/settings step.
