Prompts
БесплатноНе проверенReusable prompt library for AI agents — CLI + MCP server + REST API + web dashboard
Описание
Reusable prompt library for AI agents — CLI + MCP server + REST API + web dashboard
README
Reusable prompt library for AI agents — CLI + MCP server + REST API + web dashboard
Install
npm install -g @hasna/prompts
CLI Usage
prompts --help
Compact Output Defaults
Human-readable list/search/status-style commands are compact by default so they are safe to run inside agent terminals:
prompts list,prompts search,prompts templates,prompts recent,prompts stale,prompts unused,prompts project prompts,prompts schedule list, andprompts config scanshow capped rows by default.- Long titles, descriptions, snippets, and tag lists are truncated in human output.
- Use
--limitplus--offsetor--cursorto page through additional rows. - Use
--verbosefor denser human metadata. - Use
prompts show <id>orprompts get <id>for prompt details, andprompts body <id>orprompts use <id>when you explicitly need the full prompt body. - Use
--jsonwhen you need machine-readable full records. Existing JSON list/search/detail shapes are preserved where practical.
Examples:
prompts list
prompts list --limit 50 --offset 50
prompts search "review prompt" --verbose
prompts show PRMT-00001
prompts show PRMT-00001 --verbose
prompts body PRMT-00001
prompts --json list --limit 100
MCP Server
prompts-mcp
HTTP mode
prompts-mcp --http # default port 8872
MCP_HTTP=1 MCP_HTTP_PORT=8872 prompts-mcp
Endpoints: GET /health → {"status":"ok","name":"prompts"}, MCP at /mcp. The REST server (prompts-serve) also mounts /mcp on its port.
MCP list/search tools return slim records by default. Detail tools such as prompts_get and prompts_history omit large bodies unless you pass include_body:true; use prompts_body, prompts_use, export tools, or explicit include flags when full content is required.
REST API
prompts-serve
Data 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. - Set
HASNA_PROMPTS_STORAGE_MODE=autoorremoteto request a remote registry path while retaining local-first fallback.
Inspect the active storage boundary with:
prompts storage
prompts --json storage
The diagnostic output reports the requested mode, active local SQLite database
path, local scope, remote Postgres/S3/AWS configuration presence, fallback state,
and sync behavior. It reports only whether remote environment variables are set;
it does not print configured values. The diagnostic command is read-only and
does not migrate legacy ~/.prompts/ data; normal database startup still owns
that compatibility migration.
Remote or hosted deployments should provide a prompts-owned storage adapter or service boundary. This package owns its database adapter and MCP tool surface.
Current runtime semantics:
- Local SQLite is the authoritative read/write store.
- Local prompt files live under
~/.hasna/prompts/by default, or the nearest project.prompts/directory whenPROMPTS_DB_SCOPE=projectis set. - Remote Postgres configuration is detected with
PROMPTS_REGISTRY_POSTGRES_URL. - Remote object storage configuration is detected with
PROMPTS_REGISTRY_S3_BUCKET. - Registry AWS region configuration is detected with
PROMPTS_REGISTRY_AWS_REGION. autouses local storage unless remote registry configuration is present.remoterecords that a remote path was requested, but reads and writes still fall back to local SQLite until a prompts-owned remote runtime is supplied.- This package does not create buckets, secrets, roles, data migrations, infrastructure, or spend-increasing AWS resources.
License
Apache-2.0 -- see LICENSE
Установить Prompts в Claude Desktop, Claude Code, Cursor
unyly install promptsСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add prompts -- npx -y @hasna/promptsFAQ
Prompts MCP бесплатный?
Да, Prompts MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Prompts?
Нет, Prompts работает без API-ключей и переменных окружения.
Prompts — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Prompts в Claude Desktop, Claude Code или Cursor?
Открой Prompts на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Prompts with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
