@goplausible/algorand-mcp 4.0.7 → 4.0.9

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 CHANGED
@@ -550,7 +550,7 @@ Trade on-chain prediction markets (YES/NO outcomes) denominated in USDC. All pri
550
550
 
551
551
  | Tool | Description |
552
552
  |---|---|
553
- | `generate_algorand_uri` | Generate Algorand URI and QR code per ARC-26 spec |
553
+ | `generate_algorand_qrcode` | Generate Algorand URI and QR code per ARC-26 spec |
554
554
 
555
555
  ### Knowledge Tools (1 tool)
556
556
 
package/dist/index.js CHANGED
@@ -142,7 +142,7 @@ class AlgorandMcpServer {
142
142
  return handleApiManager(name, args);
143
143
  }
144
144
  // Handle ARC-26 tools
145
- if (name === 'generate_algorand_uri') {
145
+ if (name === 'generate_algorand_qrcode') {
146
146
  return arc26Manager.handleTool(name, args);
147
147
  }
148
148
  // Handle knowledge tools
@@ -5,7 +5,7 @@ export class Arc26Manager {
5
5
  constructor() {
6
6
  this.arc26Tools = [
7
7
  {
8
- name: 'generate_algorand_uri',
8
+ name: 'generate_algorand_qrcode',
9
9
  description: 'Generate an Algorand URI and QR code according to ARC-26 specification',
10
10
  inputSchema: withCommonParams({
11
11
  type: 'object',
@@ -88,12 +88,16 @@ export class Arc26Manager {
88
88
  uri += '?' + queryParams.join('&');
89
89
  }
90
90
  // Generate QR code as SVG
91
- const qrCodeUtf8 = await QRCode.toString(uri, {
91
+ const qrCodeUtf8Raw = await QRCode.toString(uri, {
92
92
  type: 'utf8',
93
93
  errorCorrectionLevel: 'H',
94
94
  // margin: 1,
95
95
  width: 128
96
96
  });
97
+ // Invert for better terminal contrast
98
+ const qrCodeUtf8 = qrCodeUtf8Raw
99
+ .replace(/█/g, '⬜').replace(/ /g, '█').replace(/⬜/g, ' ')
100
+ .replace(/▀/g, '⬛').replace(/▄/g, '▀').replace(/⬛/g, '▄');
97
101
  const qrCodePng = await QRCode.toDataURL(uri, {
98
102
  type: 'image/png',
99
103
  errorCorrectionLevel: 'H',
@@ -116,7 +120,7 @@ export class Arc26Manager {
116
120
  note: args.note,
117
121
  xnote: args.xnote
118
122
  };
119
- if (name === 'generate_algorand_uri') {
123
+ if (name === 'generate_algorand_qrcode') {
120
124
  const { uri, qrCodePng, qrCodeUtf8 } = await this.generateUriAndQr(toolArgs);
121
125
  return {
122
126
  content: [
@@ -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.6',
89
+ version: '4.0.9',
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.7",
3
+ "version": "4.0.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },