@goplausible/algorand-mcp 4.0.1 → 4.0.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.
@@ -19,18 +19,14 @@ export declare class Arc26Manager {
19
19
  */
20
20
  generateUriAndQr(params: Arc26ToolInput): Promise<{
21
21
  uri: string;
22
- qrCode: string;
22
+ qrCodePng: string;
23
+ qrCodeUtf8: string;
23
24
  }>;
24
25
  handleTool(name: string, args: Record<string, unknown>): Promise<{
25
- content: ({
26
+ content: {
26
27
  type: string;
27
28
  text: string;
28
- mimeType?: undefined;
29
- } | {
30
- type: string;
31
- text: string;
32
- mimeType: string;
33
- })[];
29
+ }[];
34
30
  }>;
35
31
  }
36
32
  export declare const arc26Manager: Arc26Manager;
@@ -88,15 +88,22 @@ export class Arc26Manager {
88
88
  uri += '?' + queryParams.join('&');
89
89
  }
90
90
  // Generate QR code as SVG
91
- const qrCode = await QRCode.toString(uri, {
92
- type: 'svg',
91
+ const qrCodeUtf8 = await QRCode.toString(uri, {
92
+ type: 'utf8',
93
+ errorCorrectionLevel: 'H',
94
+ margin: 1,
95
+ width: 300
96
+ });
97
+ const qrCodePng = await QRCode.toDataURL(uri, {
98
+ type: 'image/png',
93
99
  errorCorrectionLevel: 'H',
94
100
  margin: 1,
95
101
  width: 300
96
102
  });
97
103
  return {
98
104
  uri,
99
- qrCode
105
+ qrCodePng: qrCodePng,
106
+ qrCodeUtf8: qrCodeUtf8
100
107
  };
101
108
  }
102
109
  async handleTool(name, args) {
@@ -110,17 +117,20 @@ export class Arc26Manager {
110
117
  xnote: args.xnote
111
118
  };
112
119
  if (name === 'generate_algorand_uri') {
113
- const { uri, qrCode } = await this.generateUriAndQr(toolArgs);
120
+ const { uri, qrCodePng, qrCodeUtf8 } = await this.generateUriAndQr(toolArgs);
114
121
  return {
115
122
  content: [
116
123
  {
117
124
  type: "text",
118
- text: JSON.stringify({ uri }, null, 2)
119
- },
120
- {
121
- type: "text",
122
- text: qrCode,
123
- mimeType: "image/svg+xml"
125
+ text: [
126
+ qrCodeUtf8,
127
+ "",
128
+ `![QR Code](data:image/png;base64,${qrCodePng})`,
129
+ "",
130
+ "```json",
131
+ JSON.stringify({ uri }, null, 2),
132
+ "```"
133
+ ].join("\n")
124
134
  }
125
135
  ]
126
136
  };
@@ -86,7 +86,7 @@ export class UtilityManager {
86
86
  type: 'text',
87
87
  text: JSON.stringify({
88
88
  name: 'Algorand MCP Server',
89
- version: '4.0.1',
89
+ version: '4.0.2',
90
90
  builder: 'GoPlausible',
91
91
  description: 'A Model Context Protocol (MCP) server providing comprehensive access to the Algorand blockchain. Supports account management, transaction building and signing, smart contract interaction, asset operations, ARC-26 URI generation, and deep integration with Algorand ecosystem services including NFDomains, Tinyman, Vestige, and Ultrade.',
92
92
  blockchain: 'Algorand — a carbon-negative, pure proof-of-stake Layer 1 blockchain delivering instant finality, low fees, and advanced smart contract capabilities via AVM (Algorand Virtual Machine).',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goplausible/algorand-mcp",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },