Skip to content

Commit 3a5b6aa

Browse files
committed
Fix prompt notifications
1 parent 6f5733d commit 3a5b6aa

File tree

5 files changed

+67
-16
lines changed

5 files changed

+67
-16
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.2 (05/30/2025)
2+
3+
- Added support for notifying clients when the list of prompts has changed
4+
15
## 📆 v0.4.1 (04/04/2025)
26

37
- Added one-click install support for VS Code

package-lock.json

Lines changed: 58 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gistpad-mcp",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "An MCP server for managing your personal knowledge, daily notes, and reusable prompts via GitHub Gists.",
55
"type": "module",
66
"bin": {
@@ -25,7 +25,7 @@
2525
"inspector": "npx @modelcontextprotocol/inspector build/index.js"
2626
},
2727
"dependencies": {
28-
"@modelcontextprotocol/sdk": "^1.7.0",
28+
"@modelcontextprotocol/sdk": "^1.12.1",
2929
"axios": "^1.8.2",
3030
"gray-matter": "^4.0.3"
3131
},

src/resources/gists.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
mcpGist,
77
} from "../utils.js";
88

9-
const RESOURCE_PREFIX = "gist:///";
9+
const RESOURCE_PREFIX = "gist://";
1010

1111
export const resourceHandlers: ResourceHandlers = {
1212
listResourceTemplates: () => ({

src/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ export abstract class GistStore {
3636

3737
private notifyResourceChanged(gistId: string): void {
3838
if (this.triggerNotifications && this.subscribedGists.has(gistId)) {
39-
this.server.sendResourceUpdated({ uri: `gist:///${gistId}` });
39+
this.server.sendResourceUpdated({ uri: `gist://${gistId}` });
4040
}
4141
}
4242

4343
private notifyPromptListChanged(): void {
4444
if (this.triggerNotifications) {
45-
this.server.sendResourceListChanged();
45+
this.server.sendPromptListChanged();
4646
}
4747
}
4848

0 commit comments

Comments
 (0)