@hasna/prompts
npm
v0.3.38
Published by @hasna — no publish provenance, so origin is unverified, but the source is public: the repository link below is self-declared yet readable, so you can inspect the code before adopting it.
Reusable prompt library for AI agents — CLI + MCP server + REST API + web dashboard
The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.
1. Threat score — 100 − 1.2 = 99. What the published surface and source actually contain:
| Points | What was found | Category |
|---|---|---|
| −1.2 | Package runs install-time scripts MTC-SUP-010 | supply-chain |
2. Client adoption risk — 99 − 7 = 92. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:
| Points | Adoption-risk factor |
|---|---|
| −6 | capability blast radius (high) — client exposure if the model is manipulated |
| −1 | publisher verification (public source) — no provenance, but the source is public and inspectable |
Capability observations and info notes are shown under Findings but never scored.
Open any row's finding below for the file, line and evidence behind a deduction.
In the server's implementation (`dist/server/index.js:4636`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode); const val
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/server/index.js
In the server's implementation (`dist/cli/index.js:757`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: ildProcess = __require("child_process"); var path = __require("path"); var fs = __require("fs"); var process2 = __
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/cli/index.js
In the server's implementation (`dist/cli/index.js:6809`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: try { return await import(specifier); } catch (e) { const msg = e instanceof Error ? e.message : String(e);
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/cli/index.js
In the server's implementation (`dist/index.js:2224`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: try { return await import(specifier); } catch (e) { const msg = e instanceof Error ? e.message : String(e);
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/index.js
In the server's implementation (`dist/mcp/index.js:3210`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: try { return await import(specifier); } catch (e) { const msg = e instanceof Error ? e.message : String(e);
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/mcp/index.js
In the server's implementation (`dist/server/index.js:9829`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: try { return await import(specifier); } catch (e) { const msg = e instanceof Error ? e.message : String(e);
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/server/index.js
"@hasna/prompts" executes postinstall script(s) at install time. An install hook runs at install time; most are routine build/setup, but review what it does before trusting it.
Evidence: node postinstall.mjs
Fix: Review the scripts; install with --ignore-scripts where possible and vet what they do.
Location: package @hasna/prompts
Each tool and what it can reach — statically extracted from the published source.
heartbeatno sensitive capabilitylist_agentsno sensitive capabilityprompts_add_dependencyno sensitive capabilityprompts_auditno sensitive capabilityprompts_bodyno sensitive capabilityprompts_bulk_moveno sensitive capabilityprompts_bulk_tagno sensitive capabilityprompts_chainno sensitive capabilityprompts_collectionsno sensitive capabilityprompts_config_getno sensitive capabilityprompts_config_injectno sensitive capabilityprompts_config_listno sensitive capabilityprompts_config_scanno sensitive capabilityprompts_config_setno sensitive capabilityprompts_deleteno sensitive capabilityprompts_diffno sensitive capabilityprompts_dispatchno sensitive capabilityprompts_dispatch_getno sensitive capabilityprompts_duplicateno sensitive capabilityprompts_ensure_collectionno sensitive capabilityprompts_exportno sensitive capabilityprompts_export_as_skillsno sensitive capabilityprompts_getno sensitive capabilityprompts_get_dueno sensitive capabilityprompts_historyno sensitive capabilityprompts_importno sensitive capabilityprompts_import_slash_commandsno sensitive capabilityprompts_lintno sensitive capabilityprompts_listno sensitive capabilityprompts_list_dependenciesno sensitive capabilityprompts_list_labelsno sensitive capabilityprompts_list_schedulesno sensitive capabilityprompts_list_templatesno sensitive capabilityprompts_moveno sensitive capabilityprompts_next_runno sensitive capabilityprompts_pinno sensitive capabilityprompts_project_createno sensitive capabilityprompts_project_deleteno sensitive capabilityprompts_project_getno sensitive capabilityprompts_project_listno sensitive capabilityprompts_recentno sensitive capabilityprompts_remove_labelno sensitive capabilityprompts_renderno sensitive capabilityprompts_resolveno sensitive capabilityprompts_restoreno sensitive capabilityprompts_saveno sensitive capabilityprompts_save_from_sessionno sensitive capabilityprompts_scheduleno sensitive capabilityprompts_searchno sensitive capabilityprompts_set_expiryno sensitive capabilityprompts_set_labelno sensitive capabilityprompts_similarno sensitive capabilityprompts_staleno sensitive capabilityprompts_statsno sensitive capabilityprompts_storage_diagnosticsno sensitive capabilityprompts_targetsno sensitive capabilityprompts_trendingno sensitive capabilityprompts_unpinno sensitive capabilityprompts_unscheduleno sensitive capabilityprompts_unusedno sensitive capabilityprompts_updateno sensitive capabilityprompts_useno sensitive capabilityprompts_validate_varsno sensitive capabilityprompts_variablesno sensitive capabilityregister_agentno sensitive capabilitysend_feedbackno sensitive capabilityset_focusno sensitive capabilityScan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.
| Version | Score | Findings | Engine | Scanned |
|---|---|---|---|---|
v0.3.38 latest |
A 92/100 | 7 | 1.13.0 | 2026-09-07 |
v0.3.37 |
A 92/100 | 7 | 1.13.0 | 2026-08-27 |
v0.3.35 |
A 92/100 | 7 | 1.13.0 | 2026-08-25 |
v0.3.34 |
A 92/100 | 7 | 1.12.1 | 2026-08-24 |
v0.3.33 |
A 92/100 | 7 | 1.12.1 | 2026-08-23 |
v0.3.32 |
A 92/100 | 3 | 1.12.1 | 2026-08-16 |
Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.
The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.
npx mcptrustchecker scan @hasna/prompts --online
Independent packages implementing the same tool, scanned with the same engine. Compare all 7 side by side →
Model Context Protocol server that registers Markdown prompts as callable tools or slash commands.
Model Context Protocol (MCP) server of Markdown based prompts.
A robust, extensible server for managing, versioning, and serving prompts and templates for LLM applications, built on the Model Context Protocol (MCP) with AWS integration
MCP server for managing and providing prompts
mcp-prompts - placeholder. Real package shipping soon at https://gildara.io
Security scan results for the Prompts (npm) MCP server.
Hotel booking MCP server — 300K+ properties, real confirmation numbers, loyalty programs. Builders monetize every booking via Stripe Connect. The first MCP server that completes real hotel reservations inside AI conversations.
Manage AdGuard Home through AI assistants
Read-only Azure DevOps for MCP clients using only your existing browser session — no PAT, no Azure CLI. Browse work items, pull requests, comments, attachments and Artifacts feeds across every project, repo and feed you can access.
MCP server for Adobe Experience Manager Assets integration development
Servidor MCP para el tiempo oficial de España (API pública OpenData de AEMET). Predicción, observación y avisos como herramientas MCP tipadas.
A standalone MCP stdio bridge for Affinity by Canva's local MCP SSE server.