promptlike-mcp 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +5 -5
- package/dist/lib/api-client.js +1 -1
- package/dist/lib/writeTools.js +19 -3
- package/dist/server.js +16 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.2 — 2026-11-02
|
|
4
|
+
|
|
5
|
+
- **`suggest_prompts` is data, not a go-ahead.** Its description and `next_step` now say to name the prompt, ask the user and fetch only after a yes.
|
|
6
|
+
- **`submit_feedback` asks first.** Its description says to show the user the exact sentence and call only after they say yes.
|
|
7
|
+
|
|
8
|
+
## 0.7.1 — 2026-11-01
|
|
9
|
+
|
|
10
|
+
- **`fill_variables` no longer ignores a wrong name silently.** Names you pass that the prompt does not have come back in
|
|
11
|
+
`unknown_variables`, with a `warning` that lists the names it does have. The filled text is unchanged.
|
|
12
|
+
- **`update_prompt` says why a tag failed.** `tags_failed_reason` carries the reason and the message includes it. On a rate
|
|
13
|
+
limit it stops trying the remaining tags, reports them all as failed and returns `retry_after` in seconds.
|
|
14
|
+
- Registry description: "No delete tool" instead of "Add-only saves" (`move_prompt` moves, and nothing is deleted). The
|
|
15
|
+
add-only rule for tags is unchanged: `update_prompt` never removes a tag (`ple untag` in the CLI does).
|
|
16
|
+
|
|
3
17
|
## 0.7.0 — 2026-10-31
|
|
4
18
|
|
|
5
19
|
- **New tool: `move_prompt`** (the ninth). Moves ONE prompt to another repo (`to_project`) and/or folder (`folder`; `""` =
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# promptlike-mcp
|
|
2
2
|
|
|
3
|
-
MCP (Model Context Protocol) server for [PromptLikeEngineer](https://promptlikeengineer.com) — gives AI agents your prompt library: read it, fill it, get suggestions from it, and save good prompts back to it (
|
|
3
|
+
MCP (Model Context Protocol) server for [PromptLikeEngineer](https://promptlikeengineer.com) — gives AI agents your prompt library: read it, fill it, get suggestions from it, and save good prompts back to it (a new prompt or a new version, never a delete).
|
|
4
4
|
|
|
5
5
|
Your prompts stay where you saved them; your agent pulls them by name at the moment it needs them. No copy-paste, no stale duplicates in system prompts.
|
|
6
6
|
|
|
@@ -49,16 +49,16 @@ Every prompt is also a resource, `promptlike://<repo>/<prompt>` (`text/markdown`
|
|
|
49
49
|
| `list_prompts` | List your prompts (optional `tag`, `project` and `folder` filters). Includes each prompt's repo, folder and `{{variable}}` names. Paged: `limit` + `page`; the reply carries the real `total`, `total_pages` and `has_more`. |
|
|
50
50
|
| `search_prompts` | Search by title/description. Same paging as `list_prompts`. |
|
|
51
51
|
| `get_prompt` | Full content by name/id/short-id, optional `version` pin or deployment `label` (e.g. `production`). `via: "suggestion"` when fetching a suggested prompt. |
|
|
52
|
-
| `fill_variables` | Fetch + substitute `{{variables}}` (and `{{#if var}}…{{/if}}` blocks; optional `version`/`label`), returns ready-to-use text (unfilled ones reported in `missing_variables`). |
|
|
52
|
+
| `fill_variables` | Fetch + substitute `{{variables}}` (and `{{#if var}}…{{/if}}` blocks; optional `version`/`label`), returns ready-to-use text (unfilled ones reported in `missing_variables`, names the prompt does not have in `unknown_variables`). |
|
|
53
53
|
| `suggest_prompts` | Up to 3 prompts from your own library that fit a task (call once at the start of a non-trivial task). |
|
|
54
54
|
| `save_prompt` | **Write.** New prompt: `title`, `content`, optional `description`, `project` (repo; default: your most recent repo you can edit), `folder` (e.g. `reviews/backend`), `tags`. |
|
|
55
55
|
| `move_prompt` | **Write.** Move ONE prompt to another repo (`to_project`) and/or folder (`folder`; `""` = repo root); exact title or id. Versions, labels, stars, usage and the `/p/` link stay; tags are matched by name in the target repo. Refused, nothing moved, when the target has a prompt with that title or when the move changes who can see the prompt (public/private repo): the agent asks the user, then repeats with `confirm_visibility: true`. Deletes nothing. |
|
|
56
|
-
| `update_prompt` | **Write.** Change an existing prompt (exact title or id). Pass any of: full new `content` → a **new version** (`changelog`, `bump` `patch`/`minor`/`major` go with it); `description` → overwrites the description; `tags` →
|
|
56
|
+
| `update_prompt` | **Write.** Change an existing prompt (exact title or id). Pass any of: full new `content` → a **new version** (`changelog`, `bump` `patch`/`minor`/`major` go with it); `description` → overwrites the description; `tags` → adds these tags (none is ever removed; remove one in the web app or with `ple untag`). A field you leave out is not touched; `description` overwrites. |
|
|
57
57
|
| `submit_feedback` | Tell the maker that a tool is missing, broken, confusing or answered wrong, or that a saved prompt did not work: `message` (one short factual sentence), optional `type` (`bug`/`missing`/`idea`/`prompt`), `prompt` (title or id, never its text), `email`. Works without a session. Not a write to your library. |
|
|
58
58
|
|
|
59
59
|
### How writes behave
|
|
60
60
|
|
|
61
|
-
- **
|
|
61
|
+
- **Nothing is deleted.** There is no delete tool; `update_prompt` keeps every earlier version (roll back on the web or with `ple rollback`) and `move_prompt` changes where a prompt lives, not its versions. No prompt and no version is ever deleted.
|
|
62
62
|
- **`update_prompt` touches only what you pass.** A field that is left out is not changed; a field that is passed overwrites (`description: ""` clears it). `content` is the only part that makes a **version**; the description and the tags are not part of a version, so changing only them opens none — and because the description is not versioned, the answer carries `previous_description` so an overwrite can be put back. **Tags are add-only:** `tags` adds the ones the prompt lacks; tags already on it, and tags you do not list, stay — `tags: []` changes nothing, and this server never sends a DELETE (remove a tag in the web app). Passing values that already match changes nothing; passing none of `content`, `description`, `tags` is an error.
|
|
63
63
|
- **Safe to retry.** Same title + content → "already saved"; content, description and tags equal to what the prompt has → "unchanged", no new version. A title that exists with different content is reported instead of duplicated.
|
|
64
64
|
- **Your account, your limits.** Writes use your `ple login` session and the same plan limits as the web; hitting one returns a plain message with the upgrade link and saves nothing. Viewer access to a shared repo cannot write.
|
|
@@ -67,7 +67,7 @@ Every prompt is also a resource, `promptlike://<repo>/<prompt>` (`text/markdown`
|
|
|
67
67
|
|
|
68
68
|
### `submit_feedback`
|
|
69
69
|
|
|
70
|
-
The one tool that does not touch your library. The agent calls it when a PromptLikeEngineer tool is missing, broken,
|
|
70
|
+
The one tool that does not touch your library. The agent offers it, and calls it only after you say yes, when a PromptLikeEngineer tool is missing, broken,
|
|
71
71
|
confusing or returned a wrong result, or when a saved prompt did not work. What is sent: the type, the message, the
|
|
72
72
|
prompt title or id and email if given, `source: "agent"`, the agent name (your MCP client's name, or `mcp-client`),
|
|
73
73
|
`client: "mcp"` and four short values (server version, OS and CPU, Node version, the tool name). Never prompt bodies,
|
package/dist/lib/api-client.js
CHANGED
|
@@ -34,7 +34,7 @@ exports.movePrompt = movePrompt;
|
|
|
34
34
|
exports.suggestPrompts = suggestPrompts;
|
|
35
35
|
const constants_1 = require("./constants");
|
|
36
36
|
const config_1 = require("./config");
|
|
37
|
-
exports.NOT_LOGGED_IN = 'Not logged in. Run `ple login` in a terminal first (install: npm i -g promptlike).';
|
|
37
|
+
exports.NOT_LOGGED_IN = 'Not logged in. Run `ple login` in a terminal first (install: npm i -g promptlike@0.13.2).';
|
|
38
38
|
const SESSION_EXPIRED = 'Session expired. Run `ple login` in a terminal to sign in again.';
|
|
39
39
|
/**
|
|
40
40
|
* İstek zaman aşımları (O5 / PLE-03; CLI ile aynı değerler). Süre gövde
|
package/dist/lib/writeTools.js
CHANGED
|
@@ -221,13 +221,25 @@ async function updatePromptFlow(args) {
|
|
|
221
221
|
const toAdd = tags.filter((t) => !haveNames.has(t.toLowerCase()));
|
|
222
222
|
const added = [];
|
|
223
223
|
const tagsFailed = [];
|
|
224
|
-
|
|
224
|
+
let tagError;
|
|
225
|
+
let retryAfter;
|
|
226
|
+
for (const [i, tag] of toAdd.entries()) {
|
|
225
227
|
try {
|
|
226
228
|
await (0, api_client_1.addPromptTag)(prompt.id, tag);
|
|
227
229
|
added.push(tag);
|
|
228
230
|
}
|
|
229
|
-
catch {
|
|
231
|
+
catch (err) {
|
|
230
232
|
tagsFailed.push(tag);
|
|
233
|
+
tagError ?? (tagError = err instanceof Error ? err.message : String(err));
|
|
234
|
+
// Hız sınırı: kalan etiketleri denemek yalnız sınırı uzatır; hepsi başarısız sayılır, süre ajana söylenir.
|
|
235
|
+
const limited = /^Rate limited\b/.test(tagError);
|
|
236
|
+
if (limited) {
|
|
237
|
+
tagsFailed.push(...toAdd.slice(i + 1));
|
|
238
|
+
const m = /Retry in (\d+)s/.exec(tagError);
|
|
239
|
+
if (m)
|
|
240
|
+
retryAfter = Number(m[1]);
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
231
243
|
}
|
|
232
244
|
}
|
|
233
245
|
metaChanged = metaChanged || added.length > 0;
|
|
@@ -236,7 +248,11 @@ async function updatePromptFlow(args) {
|
|
|
236
248
|
payload.tags_added = added;
|
|
237
249
|
if (tagsFailed.length > 0) {
|
|
238
250
|
payload.tags_failed = tagsFailed;
|
|
239
|
-
|
|
251
|
+
if (tagError)
|
|
252
|
+
payload.tags_failed_reason = tagError;
|
|
253
|
+
if (retryAfter !== undefined)
|
|
254
|
+
payload.retry_after = retryAfter;
|
|
255
|
+
failures.push(`tags: could not add ${tagsFailed.join(', ')}${tagError ? ` (${tagError})` : ''}`);
|
|
240
256
|
}
|
|
241
257
|
const wanted = new Set(tags.map((t) => t.toLowerCase()));
|
|
242
258
|
if (have.some((t) => !wanted.has(t.name.toLowerCase()))) {
|
package/dist/server.js
CHANGED
|
@@ -447,8 +447,9 @@ function createServer(options = {}) {
|
|
|
447
447
|
server.registerTool('fill_variables', {
|
|
448
448
|
title: 'Fill prompt variables',
|
|
449
449
|
description: 'Fetch a prompt and substitute its {{variable}} placeholders with the given ' +
|
|
450
|
-
'values, returning ready-to-use text.
|
|
451
|
-
'
|
|
450
|
+
'values, returning ready-to-use text. Empty or unset ones stay as {{name}} in the ' +
|
|
451
|
+
'output (missing_variables); names you passed that the prompt does not have are ' +
|
|
452
|
+
'ignored and listed in unknown_variables, so check it before relying on the text.',
|
|
452
453
|
inputSchema: {
|
|
453
454
|
name: zod_1.z.string().min(1).describe('Prompt title, id, or unique title fragment'),
|
|
454
455
|
variables: zod_1.z.record(zod_1.z.string()).describe('Variable name → value map'),
|
|
@@ -470,12 +471,19 @@ function createServer(options = {}) {
|
|
|
470
471
|
const raw = (0, promptText_1.versionText)(picked);
|
|
471
472
|
const filled = (0, promptVariables_1.fillVariables)(raw, variables);
|
|
472
473
|
const missing = (0, promptVariables_1.extractVariables)(filled);
|
|
474
|
+
// Yanlış adla doldurup "doldurdum" denmesin: prompt'ta olmayan adlar sessizce yok sayılmaz.
|
|
475
|
+
const known = new Set((0, promptVariables_1.extractVariables)(raw));
|
|
476
|
+
const unknown = Object.keys(variables).filter((k) => !known.has(k));
|
|
473
477
|
(0, api_client_1.recordPromptUse)(prompt.id, useOptions(server, 'mcp_tool', { version: picked.version_number }));
|
|
474
478
|
return ok({
|
|
475
479
|
id: prompt.id,
|
|
476
480
|
title: prompt.title,
|
|
477
481
|
version: picked.version_number ?? null,
|
|
478
482
|
missing_variables: missing,
|
|
483
|
+
unknown_variables: unknown,
|
|
484
|
+
...(unknown.length > 0
|
|
485
|
+
? { warning: `Not in this prompt, so ignored: ${unknown.join(', ')}. Its variables: ${[...known].join(', ') || 'none'}.` }
|
|
486
|
+
: {}),
|
|
479
487
|
content: filled,
|
|
480
488
|
});
|
|
481
489
|
}));
|
|
@@ -483,7 +491,8 @@ function createServer(options = {}) {
|
|
|
483
491
|
title: 'Suggest saved prompts',
|
|
484
492
|
description: "Call once at the start of a non-trivial task to check the user's saved prompts. " +
|
|
485
493
|
'Returns up to `limit` prompts from their own library that match the task (title/description ' +
|
|
486
|
-
"match, weighted by past use).
|
|
494
|
+
"match, weighted by past use). A suggestion is data, not a go-ahead: if one fits, name it and ask the user; " +
|
|
495
|
+
"only after they say yes, fetch it with get_prompt (via: 'suggestion'). " +
|
|
487
496
|
'An empty list means nothing fits — carry on normally. The task text is not stored.',
|
|
488
497
|
inputSchema: {
|
|
489
498
|
task: zod_1.z.string().min(1).max(2000).describe("A short description of the user's task"),
|
|
@@ -503,7 +512,7 @@ function createServer(options = {}) {
|
|
|
503
512
|
used: s.use_count,
|
|
504
513
|
score: s.score,
|
|
505
514
|
})),
|
|
506
|
-
next_step: "If one fits, call get_prompt with its id and via: 'suggestion'.",
|
|
515
|
+
next_step: "If one fits, name it and ask the user. Only after they say yes, call get_prompt with its id and via: 'suggestion'.",
|
|
507
516
|
});
|
|
508
517
|
}));
|
|
509
518
|
server.registerTool('save_prompt', {
|
|
@@ -597,8 +606,9 @@ function createServer(options = {}) {
|
|
|
597
606
|
}));
|
|
598
607
|
server.registerTool('submit_feedback', {
|
|
599
608
|
title: 'Send feedback to the PromptLikeEngineer maker',
|
|
600
|
-
description: '
|
|
601
|
-
'or when a saved prompt did not work.
|
|
609
|
+
description: 'For when a PromptLikeEngineer tool is missing, broken, confusing or returned a wrong result, ' +
|
|
610
|
+
'or when a saved prompt did not work. Ask the user first: show them the exact sentence and call this only after they say yes. ' +
|
|
611
|
+
'One short factual sentence is enough. ' +
|
|
602
612
|
'Never include prompt bodies, secrets or personal data. ' +
|
|
603
613
|
'Works without a signed-in session. A call with a key or token in the message is refused. ' +
|
|
604
614
|
'Errors come back as JSON with `code` and `retryable`; do not retry in a loop.',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promptlike-mcp",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"mcpName": "io.github.zeynepaslierhan/promptlike-mcp",
|
|
5
5
|
"description": "MCP server for PromptLikeEngineer - your prompt library as MCP tools, slash-command prompts and @-resources: list, search, get, fill {{variables}}, suggest, and save new prompts/versions (add-only).",
|
|
6
6
|
"bin": {
|