bsv-mcp 0.0.29 → 0.0.31
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 +10 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/prompts/index.ts +0 -0
- package/resources/changelog.ts +33 -26
- package/tools/index.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# BSV MCP Server Changelog
|
|
2
2
|
|
|
3
|
+
## v0.0.31 - Reliability Improvements
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
- **Changelog Loading**: Improved changelog loading mechanism with multiple path resolution strategies
|
|
7
|
+
- Added detailed logging for debugging path resolution issues
|
|
8
|
+
- Better error reporting for troubleshooting in production environments
|
|
9
|
+
- **Package Structure**: Enhanced package.json to include all necessary files in npm package
|
|
10
|
+
- Added prompts, resources, and CHANGELOG.md to the published files list
|
|
11
|
+
- Fixed import issues when running from installed npm package
|
|
12
|
+
|
|
3
13
|
## v0.0.29 - Enhanced Server Configuration & Maintenance
|
|
4
14
|
|
|
5
15
|
### Major Changes
|
package/index.ts
CHANGED
|
@@ -70,7 +70,7 @@ function initializePrivateKey(): PrivateKey | undefined {
|
|
|
70
70
|
const privKey = initializePrivateKey();
|
|
71
71
|
|
|
72
72
|
const server = new McpServer(
|
|
73
|
-
{ name: "Bitcoin SV", version: "0.0.
|
|
73
|
+
{ name: "Bitcoin SV", version: "0.0.31" },
|
|
74
74
|
// {
|
|
75
75
|
// // Advertise only what you actually implement
|
|
76
76
|
// capabilities: {
|
package/package.json
CHANGED
package/prompts/index.ts
CHANGED
|
File without changes
|
package/resources/changelog.ts
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
|
-
import { readFileSync } from "node:fs";
|
|
2
|
-
import { join } from "node:path";
|
|
3
1
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
4
2
|
|
|
3
|
+
const CHANGELOG_URL =
|
|
4
|
+
"https://raw.githubusercontent.com/b-open-io/bsv-mcp/master/CHANGELOG.md";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Fetches the changelog from GitHub
|
|
8
|
+
* @returns Promise that resolves to the changelog content
|
|
9
|
+
*/
|
|
10
|
+
async function fetchChangelog(): Promise<string> {
|
|
11
|
+
try {
|
|
12
|
+
const response = await fetch(CHANGELOG_URL);
|
|
13
|
+
|
|
14
|
+
if (!response.ok) {
|
|
15
|
+
throw new Error(
|
|
16
|
+
`Failed to fetch changelog: ${response.status} ${response.statusText}`,
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return await response.text();
|
|
21
|
+
} catch (error) {
|
|
22
|
+
console.error("Error fetching changelog:", error);
|
|
23
|
+
return "# BSV MCP Server Changelog\n\nError: Could not load changelog content.\nPlease check the server logs for more details.";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
5
27
|
/**
|
|
6
28
|
* Register the changelog resource with the MCP server
|
|
7
29
|
* @param server The MCP server instance
|
|
@@ -15,30 +37,15 @@ export function registerChangelogResource(server: McpServer): void {
|
|
|
15
37
|
description: "Version history and changelog for the BSV MCP server",
|
|
16
38
|
},
|
|
17
39
|
async (uri) => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
text: changelogContent,
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
};
|
|
31
|
-
} catch (error) {
|
|
32
|
-
console.error("Error reading CHANGELOG.md:", error);
|
|
33
|
-
return {
|
|
34
|
-
contents: [
|
|
35
|
-
{
|
|
36
|
-
uri: uri.href,
|
|
37
|
-
text: "# BSV MCP Server Changelog\n\nError: Could not load changelog content.",
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
};
|
|
41
|
-
}
|
|
40
|
+
const changelogContent = await fetchChangelog();
|
|
41
|
+
return {
|
|
42
|
+
contents: [
|
|
43
|
+
{
|
|
44
|
+
uri: uri.href,
|
|
45
|
+
text: changelogContent,
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
};
|
|
42
49
|
},
|
|
43
50
|
);
|
|
44
51
|
}
|
package/tools/index.ts
CHANGED
|
File without changes
|