@molpha/mcp 0.1.0 → 0.1.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/README.md +15 -0
- package/dist/src/sdk.js +2 -2
- package/dist/src/setup-validation.js +2 -1
- package/package.json +11 -4
package/README.md
CHANGED
|
@@ -259,6 +259,21 @@ npm run typecheck && npm test && npm run build
|
|
|
259
259
|
|
|
260
260
|
Bug reports and focused pull requests are welcome. For security issues, use [GitHub's private vulnerability reporting](https://github.com/Molpha/mcp/security/advisories/new) instead of a public issue.
|
|
261
261
|
|
|
262
|
+
## Releasing
|
|
263
|
+
|
|
264
|
+
Versioning and publishing are automated with [Changesets](https://github.com/changesets/changesets). If your pull request changes published behavior, add a changeset:
|
|
265
|
+
|
|
266
|
+
```bash
|
|
267
|
+
npx changeset
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
This records the bump type (patch/minor/major) and a changelog entry. On merge to `main`, [.github/workflows/release.yml](.github/workflows/release.yml):
|
|
271
|
+
|
|
272
|
+
1. Opens or updates a "Version Packages" pull request that bumps `package.json`, `manifest.json`, and `server.json` in lockstep and updates `CHANGELOG.md`.
|
|
273
|
+
2. When that PR is merged, publishes `@molpha/mcp` to npm using [trusted publishing](https://docs.npmjs.com/trusted-publishers) (GitHub Actions OIDC — no npm token in CI), then publishes `server.json` to the [MCP registry](https://registry.modelcontextprotocol.io/) using `mcp-publisher` with GitHub OIDC login.
|
|
274
|
+
|
|
275
|
+
No secrets are needed for either publish step; both rely on the workflow's `id-token: write` permission and are authorized via each registry's trust relationship with this repository.
|
|
276
|
+
|
|
262
277
|
## Documentation
|
|
263
278
|
|
|
264
279
|
- [Molpha protocol documentation](https://docs.molpha.io/)
|
package/dist/src/sdk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as MolphaSdkModule from "@molpha
|
|
1
|
+
import * as MolphaSdkModule from "@molpha/sdk";
|
|
2
2
|
export const MolphaSdk = MolphaSdkModule;
|
|
3
3
|
export function getSdkExport(name) {
|
|
4
4
|
return MolphaSdk[name];
|
|
@@ -6,7 +6,7 @@ export function getSdkExport(name) {
|
|
|
6
6
|
export function requireSdkExport(name) {
|
|
7
7
|
const value = getSdkExport(name);
|
|
8
8
|
if (value === undefined || value === null) {
|
|
9
|
-
throw new Error(`@molpha
|
|
9
|
+
throw new Error(`@molpha/sdk does not export ${name}`);
|
|
10
10
|
}
|
|
11
11
|
return value;
|
|
12
12
|
}
|
|
@@ -148,7 +148,8 @@ function looksLikeSolanaRpc(endpoint) {
|
|
|
148
148
|
return (host.includes("helius") ||
|
|
149
149
|
host.includes("quicknode") ||
|
|
150
150
|
host.includes("alchemy") ||
|
|
151
|
-
host
|
|
151
|
+
host === "solana.com" ||
|
|
152
|
+
host.endsWith(".solana.com") ||
|
|
152
153
|
host.includes("rpc."));
|
|
153
154
|
}
|
|
154
155
|
catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molpha/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"mcpName": "io.github.molpha/mcp",
|
|
5
5
|
"description": "MCP server exposing Molpha oracle runtime tools over the Molpha SDK.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
"dist/cli",
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
40
43
|
"scripts": {
|
|
41
44
|
"build": "tsc -p tsconfig.json",
|
|
42
45
|
"dev": "node --import tsx src/server.ts",
|
|
@@ -45,16 +48,18 @@
|
|
|
45
48
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
46
49
|
"test": "vitest run",
|
|
47
50
|
"sync-version": "node scripts/sync-version.mjs",
|
|
48
|
-
"
|
|
51
|
+
"changeset": "changeset",
|
|
52
|
+
"ci:version": "changeset version && npm run sync-version",
|
|
53
|
+
"ci:publish": "changeset publish"
|
|
49
54
|
},
|
|
50
55
|
"engines": {
|
|
51
|
-
"node": ">=
|
|
56
|
+
"node": ">=24.0.0"
|
|
52
57
|
},
|
|
53
58
|
"dependencies": {
|
|
54
59
|
"@anchor-lang/core": "^1.1.2",
|
|
55
60
|
"@coral-xyz/anchor": "^0.30.1",
|
|
56
61
|
"@modelcontextprotocol/sdk": "^1.13.0",
|
|
57
|
-
"@molpha
|
|
62
|
+
"@molpha/sdk": "0.1.0",
|
|
58
63
|
"@privy-io/node": "^0.26.0",
|
|
59
64
|
"@solana-program/token": "^0.15.0",
|
|
60
65
|
"@solana/kit": "^7.0.0",
|
|
@@ -72,6 +77,8 @@
|
|
|
72
77
|
}
|
|
73
78
|
},
|
|
74
79
|
"devDependencies": {
|
|
80
|
+
"@changesets/changelog-github": "^0.7.0",
|
|
81
|
+
"@changesets/cli": "^2.31.1",
|
|
75
82
|
"@types/bn.js": "^5.1.6",
|
|
76
83
|
"@types/node": "^22.15.29",
|
|
77
84
|
"tsx": "^4.19.4",
|