mirror of
https://github.com/himanshudongre/smriti.git
synced 2026-10-11 03:38:16 +00:00
CLI: smriti skills list — enumerate targets + version smriti skills show <target> — print rendered content to stdout smriti skills install <target> — write to target's default destination smriti skills install <target> --dry-run — preview without writing smriti skills install <target> --force — overwrite same-or-newer version smriti skills install <target> --destination PATH — override default path The skills group does not hit the backend; rendering is a local package-data lookup. Version-aware refusal is already implemented in the renderer — install prints a clear "Skipped: already has version X" message and exits non-zero without --force. MCP: smriti_install_skill(target: str) -> str Returns the rendered skill pack wrapped in a fenced markdown block with the suggested destination path at the top. Unlike the CLI, the MCP tool does NOT write any files — the MCP server runs in the host's arbitrary working directory, so the agent is expected to read the suggested destination and write the file using its host's own file tools (Edit/Write/Bash). This keeps the MCP server read-only from the host filesystem's perspective. Thirteen tools total now registered on the FastMCP instance. |
||
|---|---|---|
| .. | ||
| skill_pack | ||
| __init__.py | ||
| __main__.py | ||
| client.py | ||
| formatters.py | ||
| main.py | ||
| mcp_server.py | ||