Skip to content

Commit 1035b48

Browse files
committed
Rename prompt tools
1 parent 0e72682 commit 1035b48

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 📆 v0.4.7 (06/18/2025)
2+
3+
- Renamed the prompt tools to include `gist` in the name: `add_prompt` -> `add_gist_prompt`, `delete_prompt` -> `delete_gist_prompt`.
4+
15
## 📆 v0.4.6 (06/16/2025)
26

37
- The server's gist cache is now automatically refreshed every hour

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ Once your client it setup, you can start having fun with gists + MCP! 🥳 For e
118118

119119
### Prompts
120120

121-
- `add_prompt` - Add a new prompt to your prompts collection.
122-
- `delete_prompt` - Delete a prompt from your collection.
121+
- `add_gist_prompt` - Add a new prompt to your prompts collection.
122+
- `delete_gist_prompt` - Delete a prompt from your collection.
123123

124124
## 📁 Included resources
125125

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gistpad-mcp",
3-
"version": "0.4.6",
3+
"version": "0.4.7",
44
"description": "An MCP server for managing your personal knowledge, daily notes, and reusable prompts via GitHub Gists.",
55
"type": "module",
66
"bin": {

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class GistpadServer {
4747
this.server = new Server(
4848
{
4949
name: "gistpad",
50-
version: "0.4.6",
50+
version: "0.4.7",
5151
},
5252
{
5353
capabilities: {
@@ -71,7 +71,7 @@ class GistpadServer {
7171
listChanged: true,
7272
},
7373
},
74-
instructions: `GistPad allows you to manage your personal knowledge and daily notes/todos/etc. using GitHub Gists.
74+
instructions: `GistPad allows you to manage your personal knowledge/daily notes/todos, and create re-usable AI prompts, using GitHub Gists.
7575
To read gists, notes, and gist comments, prefer using the available resources vs. tools. And then use the available tools to create, update, delete, archive, star, etc. your gists.`,
7676
}
7777
);

src/tools/prompts.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ interface AddPromptArgs {
1717
export default {
1818
definitions: [
1919
{
20-
name: "delete_prompt",
21-
description: "Delete a prompt from your prompts collection",
20+
name: "delete_gist_prompt",
21+
description: "Delete a prompt from your gist-based prompts collection",
2222
inputSchema: {
2323
type: "object",
2424
properties: {
@@ -32,26 +32,27 @@ export default {
3232
},
3333
},
3434
{
35-
name: "add_prompt",
36-
description: "Add a new prompt to your prompts collection",
35+
name: "add_gist_prompt",
36+
description: "Add a new prompt to your gist-based prompts collection",
3737
inputSchema: {
3838
type: "object",
3939
properties: {
4040
name: {
4141
type: "string",
42-
description: "Name of the prompt (will be used as the filename)",
42+
description: "Name of the prompt, which will be used as the filename, and therefore, shouldn't include invalid characters. It will be saved with a .md extension, and therefore, this field can be provided without the .md extension.",
4343
},
4444
prompt: {
4545
type: "string",
46-
description: "The prompt content",
46+
description:
47+
"The prompt content, which must be a natural language request that will be sent to the LLM in order to generate the requested response. It can include {{argument}} placeholders for arguments (referencing the argument name), that will be replaced dynamically when the prompt is used.",
4748
},
4849
description: {
4950
type: "string",
50-
description: "Optional description of the prompt",
51+
description: "Optional description of the prompt, that will be displayed to the user when later selecting the prompt in the UI.",
5152
},
5253
arguments: {
5354
type: "array",
54-
description: "Optional list of argument definitions",
55+
description: "Optional list of arguments that the prompt accepts (using {{placeholder}} variables in its text).",
5556
items: {
5657
type: "object",
5758
properties: {
@@ -74,7 +75,7 @@ export default {
7475
],
7576

7677
handlers: {
77-
delete_prompt: async (args: unknown, context) => {
78+
delete_gist_prompt: async (args: unknown, context) => {
7879
const { name } = args as { name: string };
7980

8081
if (!name || typeof name !== "string") {
@@ -118,7 +119,7 @@ export default {
118119
return `Successfully deleted prompt "${name}"`;
119120
},
120121

121-
add_prompt: async (args: unknown, context) => {
122+
add_gist_prompt: async (args: unknown, context) => {
122123
const {
123124
name,
124125
prompt,

0 commit comments

Comments
 (0)