phygital-token-mcp 0.2.2 → 0.4.0
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 +12 -15
- package/dist/index.js +154 -452
- package/dist/index.js.map +1 -1
- package/dist/lib/docs.d.ts +1 -1
- package/dist/lib/docs.js +2 -9
- package/dist/lib/docs.js.map +1 -1
- package/dist/lib/gating-json.d.ts +0 -3
- package/dist/lib/gating-json.js +1 -50
- package/dist/lib/gating-json.js.map +1 -1
- package/dist/lib/instructions.js +2 -2
- package/dist/lib/instructions.js.map +1 -1
- package/dist/lib/paths.d.ts +1 -8
- package/dist/lib/paths.js +1 -29
- package/dist/lib/paths.js.map +1 -1
- package/dist/lib/sdk-surface.d.ts +2 -8
- package/dist/lib/sdk-surface.js +4 -40
- package/dist/lib/sdk-surface.js.map +1 -1
- package/dist/lib/verification.d.ts +1 -26
- package/dist/lib/verification.js +13 -65
- package/dist/lib/verification.js.map +1 -1
- package/docs/building-on-phygital/overview.md +4 -4
- package/docs/building-on-phygital/rust-cpi.md +2 -1
- package/docs/sdk/surface-area.md +6 -13
- package/docs/verification/methods.md +16 -10
- package/docs/verification/overview.md +4 -4
- package/docs/verification/verify-asset-composable.md +1 -1
- package/package.json +4 -4
- package/dist/lib/graphify.d.ts +0 -2
- package/dist/lib/graphify.js +0 -35
- package/dist/lib/graphify.js.map +0 -1
- package/dist/lib/rpc.d.ts +0 -3
- package/dist/lib/rpc.js +0 -22
- package/dist/lib/rpc.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
[Model Context Protocol](https://modelcontextprotocol.io) server for the phygital-token Solana program, TypeScript SDK, and Rust client.
|
|
4
4
|
|
|
5
|
-
**Docs, schema reference, and offline planning only** — no live RPC or on-chain calls. Use [`phygital-token-sdk`](https://www.npmjs.com/package/phygital-token-sdk) in your app for
|
|
5
|
+
**Docs, schema reference, and offline planning only** — no live RPC or on-chain calls. Use [`phygital-token-sdk`](https://www.npmjs.com/package/phygital-token-sdk) in your app for verification, asset fetch, and transaction building.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
|
-
Add to
|
|
9
|
+
Add to your MCP client config (`~/.cursor/mcp.json` or project `.cursor/mcp.json`):
|
|
10
10
|
|
|
11
11
|
```json
|
|
12
12
|
{
|
|
@@ -25,13 +25,14 @@ Requires **Node.js 20+**. See [`cursor-mcp.example.json`](./cursor-mcp.example.j
|
|
|
25
25
|
|
|
26
26
|
| Area | Tools |
|
|
27
27
|
|------|-------|
|
|
28
|
-
| **Docs** | `search_docs
|
|
29
|
-
| **
|
|
30
|
-
| **Verification** | `recommend_verification`, `plan_verify_asset`, `explain_verification` |
|
|
28
|
+
| **Docs** | `search_docs` (omit query to list all), `read_doc` |
|
|
29
|
+
| **Verification** | `recommend_verification` (omit useCase for the decision tree), `plan_verify_asset` |
|
|
31
30
|
| **Planning** | `plan_create_mint`, `plan_mint_token`, `plan_transfer`, `plan_remove_ownership`, `find_asset_pda` |
|
|
32
31
|
| **SDK** | `list_sdk_exports` |
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
All tools are offline and read-only.
|
|
34
|
+
|
|
35
|
+
## Develop
|
|
35
36
|
|
|
36
37
|
```bash
|
|
37
38
|
pnpm install
|
|
@@ -39,19 +40,15 @@ pnpm --filter phygital-token-sdk build
|
|
|
39
40
|
pnpm --filter phygital-token-mcp build
|
|
40
41
|
```
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
| Tool | Requires |
|
|
45
|
-
|------|----------|
|
|
46
|
-
| `query_codebase` | `graphify` CLI + `graphify update .` in the repo |
|
|
47
|
-
| `read_sdk_source` | Cloned repo or `PHYGITAL_TOKEN_REPO_ROOT` |
|
|
43
|
+
The SDK is consumed via `workspace:*`, so the server always builds against the in-repo SDK.
|
|
48
44
|
|
|
49
45
|
## Publish
|
|
50
46
|
|
|
47
|
+
`workspace:*` is rewritten to the SDK's published version at pack time, so publish with pnpm:
|
|
48
|
+
|
|
51
49
|
```bash
|
|
52
|
-
|
|
53
|
-
pnpm
|
|
54
|
-
npm publish --access public
|
|
50
|
+
pnpm --filter phygital-token-mcp build
|
|
51
|
+
pnpm --filter phygital-token-mcp publish --access public
|
|
55
52
|
```
|
|
56
53
|
|
|
57
54
|
## License
|