@hasna/prompts
v0.3.32
Published
Reusable prompt library for AI agents — CLI + MCP server + REST API + web dashboard
Maintainers
Readme
@hasna/prompts
Reusable prompt library for AI agents — CLI + MCP server + REST API + web dashboard
Install
npm install -g @hasna/promptsCLI Usage
prompts --helpMCP Server
prompts-mcpHTTP mode
prompts-mcp --http # default port 8872
MCP_HTTP=1 MCP_HTTP_PORT=8872 prompts-mcpEndpoints: GET /health → {"status":"ok","name":"prompts"}, MCP at /mcp. The REST server (prompts-serve) also mounts /mcp on its port.
REST API
prompts-serveData Directory
Data is stored locally in ~/.hasna/prompts/ by default.
- Set
HASNA_PROMPTS_DB_PATHto point at a specific SQLite database file. - Set
PROMPTS_DB_SCOPE=projectto use the nearest project.prompts/prompts.db. - Set
HASNA_PROMPTS_STORAGE_MODE=localto make the storage mode explicit.
Remote or hosted deployments should provide a prompts-owned storage adapter or service boundary. This package owns its database adapter and MCP tool surface.
License
Apache-2.0 -- see LICENSE
