@openzeppelin/contracts-mcp 0.5.7 → 0.5.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"fungible.d.ts","sourceRoot":"","sources":["../../../src/stellar/tools/fungible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAuCzE"}
1
+ {"version":3,"file":"fungible.d.ts","sourceRoot":"","sources":["../../../src/stellar/tools/fungible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAyCzE"}
@@ -6,11 +6,12 @@ const utils_1 = require("../../utils");
6
6
  const schemas_1 = require("@openzeppelin/wizard-common/schemas");
7
7
  const wizard_common_1 = require("@openzeppelin/wizard-common");
8
8
  function registerStellarFungible(server) {
9
- return server.tool('stellar-fungible', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Fungible), schemas_1.stellarFungibleSchema, async ({ name, symbol, burnable, pausable, premint, mintable, upgradeable, access, info, explicitImplementations, }) => {
9
+ return server.tool('stellar-fungible', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Fungible), schemas_1.stellarFungibleSchema, async ({ name, symbol, burnable, votes, pausable, premint, mintable, upgradeable, access, info, explicitImplementations, }) => {
10
10
  const opts = {
11
11
  name,
12
12
  symbol,
13
13
  burnable,
14
+ votes,
14
15
  pausable,
15
16
  premint,
16
17
  mintable,
@@ -1 +1 @@
1
- {"version":3,"file":"fungible.js","sourceRoot":"","sources":["../../../src/stellar/tools/fungible.ts"],"names":[],"mappings":";;AAOA,0DAuCC;AA5CD,iEAAwD;AACxD,uCAAyE;AACzE,iEAA4E;AAC5E,+DAA6D;AAE7D,SAAgB,uBAAuB,CAAC,MAAiB;IACvD,OAAO,MAAM,CAAC,IAAI,CAChB,kBAAkB,EAClB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,QAAQ,CAAC,EAC3C,+BAAqB,EACrB,KAAK,EAAE,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,WAAW,EACX,MAAM,EACN,IAAI,EACJ,uBAAuB,GACxB,EAAE,EAAE;QACH,MAAM,IAAI,GAAoB;YAC5B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,OAAO;YACP,QAAQ;YACR,WAAW;YACX,MAAM;YACN,IAAI;YACJ,uBAAuB;SACxB,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBACzD;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"fungible.js","sourceRoot":"","sources":["../../../src/stellar/tools/fungible.ts"],"names":[],"mappings":";;AAOA,0DAyCC;AA9CD,iEAAwD;AACxD,uCAAyE;AACzE,iEAA4E;AAC5E,+DAA6D;AAE7D,SAAgB,uBAAuB,CAAC,MAAiB;IACvD,OAAO,MAAM,CAAC,IAAI,CAChB,kBAAkB,EAClB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,QAAQ,CAAC,EAC3C,+BAAqB,EACrB,KAAK,EAAE,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,WAAW,EACX,MAAM,EACN,IAAI,EACJ,uBAAuB,GACxB,EAAE,EAAE;QACH,MAAM,IAAI,GAAoB;YAC5B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,KAAK;YACL,QAAQ;YACR,OAAO;YACP,QAAQ;YACR,WAAW;YACX,MAAM;YACN,IAAI;YACJ,uBAAuB;SACxB,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBACzD;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerStellarGovernor(server: McpServer): RegisteredTool;
3
+ //# sourceMappingURL=governor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"governor.d.ts","sourceRoot":"","sources":["../../../src/stellar/tools/governor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAyCzE"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerStellarGovernor = registerStellarGovernor;
4
+ const wizard_stellar_1 = require("@openzeppelin/wizard-stellar");
5
+ const utils_1 = require("../../utils");
6
+ const schemas_1 = require("@openzeppelin/wizard-common/schemas");
7
+ const wizard_common_1 = require("@openzeppelin/wizard-common");
8
+ function registerStellarGovernor(server) {
9
+ return server.tool('stellar-governor', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Governor), schemas_1.stellarGovernorSchema, async ({ name, version, votingDelay, votingPeriod, proposalThreshold, quorum, timelock, upgradeable, access, explicitImplementations, info, }) => {
10
+ const opts = {
11
+ name,
12
+ version,
13
+ votingDelay,
14
+ votingPeriod,
15
+ proposalThreshold,
16
+ quorum,
17
+ timelock,
18
+ upgradeable,
19
+ access,
20
+ explicitImplementations,
21
+ info,
22
+ };
23
+ return {
24
+ content: [
25
+ {
26
+ type: 'text',
27
+ text: (0, utils_1.safePrintRustCodeBlock)(() => wizard_stellar_1.governor.print(opts)),
28
+ },
29
+ ],
30
+ };
31
+ });
32
+ }
33
+ //# sourceMappingURL=governor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"governor.js","sourceRoot":"","sources":["../../../src/stellar/tools/governor.ts"],"names":[],"mappings":";;AAOA,0DAyCC;AA9CD,iEAAwD;AACxD,uCAAyE;AACzE,iEAA4E;AAC5E,+DAA6D;AAE7D,SAAgB,uBAAuB,CAAC,MAAiB;IACvD,OAAO,MAAM,CAAC,IAAI,CAChB,kBAAkB,EAClB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,QAAQ,CAAC,EAC3C,+BAAqB,EACrB,KAAK,EAAE,EACL,IAAI,EACJ,OAAO,EACP,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,MAAM,EACN,QAAQ,EACR,WAAW,EACX,MAAM,EACN,uBAAuB,EACvB,IAAI,GACL,EAAE,EAAE;QACH,MAAM,IAAI,GAAoB;YAC5B,IAAI;YACJ,OAAO;YACP,WAAW;YACX,YAAY;YACZ,iBAAiB;YACjB,MAAM;YACN,QAAQ;YACR,WAAW;YACX,MAAM;YACN,uBAAuB;YACvB,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBACzD;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"non-fungible.d.ts","sourceRoot":"","sources":["../../../src/stellar/tools/non-fungible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CA2C5E"}
1
+ {"version":3,"file":"non-fungible.d.ts","sourceRoot":"","sources":["../../../src/stellar/tools/non-fungible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CA6C5E"}
@@ -6,12 +6,13 @@ const utils_1 = require("../../utils");
6
6
  const schemas_1 = require("@openzeppelin/wizard-common/schemas");
7
7
  const wizard_common_1 = require("@openzeppelin/wizard-common");
8
8
  function registerStellarNonFungible(server) {
9
- return server.tool('stellar-non-fungible', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.NonFungible), schemas_1.stellarNonFungibleSchema, async ({ name, symbol, tokenUri, burnable, enumerable, consecutive, pausable, mintable, sequential, upgradeable, info, explicitImplementations, }) => {
9
+ return server.tool('stellar-non-fungible', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.NonFungible), schemas_1.stellarNonFungibleSchema, async ({ name, symbol, tokenUri, burnable, votes, enumerable, consecutive, pausable, mintable, sequential, upgradeable, info, explicitImplementations, }) => {
10
10
  const opts = {
11
11
  name,
12
12
  symbol,
13
13
  tokenUri,
14
14
  burnable,
15
+ votes,
15
16
  enumerable,
16
17
  consecutive,
17
18
  pausable,
@@ -1 +1 @@
1
- {"version":3,"file":"non-fungible.js","sourceRoot":"","sources":["../../../src/stellar/tools/non-fungible.ts"],"names":[],"mappings":";;AAOA,gEA2CC;AAhDD,iEAA2D;AAC3D,uCAAyE;AACzE,iEAA+E;AAC/E,+DAA6D;AAE7D,SAAgB,0BAA0B,CAAC,MAAiB;IAC1D,OAAO,MAAM,CAAC,IAAI,CAChB,sBAAsB,EACtB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,WAAW,CAAC,EAC9C,kCAAwB,EACxB,KAAK,EAAE,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,EACX,IAAI,EACJ,uBAAuB,GACxB,EAAE,EAAE;QACH,MAAM,IAAI,GAAuB;YAC/B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,UAAU;YACV,WAAW;YACX,QAAQ;YACR,QAAQ;YACR,UAAU;YACV,WAAW;YACX,IAAI;YACJ,uBAAuB;SACxB,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,4BAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAC5D;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"non-fungible.js","sourceRoot":"","sources":["../../../src/stellar/tools/non-fungible.ts"],"names":[],"mappings":";;AAOA,gEA6CC;AAlDD,iEAA2D;AAC3D,uCAAyE;AACzE,iEAA+E;AAC/E,+DAA6D;AAE7D,SAAgB,0BAA0B,CAAC,MAAiB;IAC1D,OAAO,MAAM,CAAC,IAAI,CAChB,sBAAsB,EACtB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,WAAW,CAAC,EAC9C,kCAAwB,EACxB,KAAK,EAAE,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,UAAU,EACV,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,EACX,IAAI,EACJ,uBAAuB,GACxB,EAAE,EAAE;QACH,MAAM,IAAI,GAAuB;YAC/B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,KAAK;YACL,UAAU;YACV,WAAW;YACX,QAAQ;YACR,QAAQ;YACR,UAAU;YACV,WAAW;YACX,IAAI;YACJ,uBAAuB;SACxB,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,4BAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAC5D;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stablecoin.d.ts","sourceRoot":"","sources":["../../../src/stellar/tools/stablecoin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAyC3E"}
1
+ {"version":3,"file":"stablecoin.d.ts","sourceRoot":"","sources":["../../../src/stellar/tools/stablecoin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CA2C3E"}
@@ -6,11 +6,12 @@ const utils_1 = require("../../utils");
6
6
  const schemas_1 = require("@openzeppelin/wizard-common/schemas");
7
7
  const wizard_common_1 = require("@openzeppelin/wizard-common");
8
8
  function registerStellarStablecoin(server) {
9
- return server.tool('stellar-stablecoin', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Stablecoin), schemas_1.stellarStablecoinSchema, async ({ name, symbol, burnable, pausable, premint, mintable, upgradeable, access, limitations, explicitImplementations, info, }) => {
9
+ return server.tool('stellar-stablecoin', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Stablecoin), schemas_1.stellarStablecoinSchema, async ({ name, symbol, burnable, votes, pausable, premint, mintable, upgradeable, access, limitations, explicitImplementations, info, }) => {
10
10
  const opts = {
11
11
  name,
12
12
  symbol,
13
13
  burnable,
14
+ votes,
14
15
  pausable,
15
16
  premint,
16
17
  mintable,
@@ -1 +1 @@
1
- {"version":3,"file":"stablecoin.js","sourceRoot":"","sources":["../../../src/stellar/tools/stablecoin.ts"],"names":[],"mappings":";;AAOA,8DAyCC;AA9CD,iEAA0D;AAC1D,uCAAyE;AACzE,iEAA8E;AAC9E,+DAA6D;AAE7D,SAAgB,yBAAyB,CAAC,MAAiB;IACzD,OAAO,MAAM,CAAC,IAAI,CAChB,oBAAoB,EACpB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,UAAU,CAAC,EAC7C,iCAAuB,EACvB,KAAK,EAAE,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,WAAW,EACX,MAAM,EACN,WAAW,EACX,uBAAuB,EACvB,IAAI,GACL,EAAE,EAAE;QACH,MAAM,IAAI,GAAsB;YAC9B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,OAAO;YACP,QAAQ;YACR,WAAW;YACX,MAAM;YACN,WAAW;YACX,uBAAuB;YACvB,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,2BAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAC3D;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"stablecoin.js","sourceRoot":"","sources":["../../../src/stellar/tools/stablecoin.ts"],"names":[],"mappings":";;AAOA,8DA2CC;AAhDD,iEAA0D;AAC1D,uCAAyE;AACzE,iEAA8E;AAC9E,+DAA6D;AAE7D,SAAgB,yBAAyB,CAAC,MAAiB;IACzD,OAAO,MAAM,CAAC,IAAI,CAChB,oBAAoB,EACpB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,UAAU,CAAC,EAC7C,iCAAuB,EACvB,KAAK,EAAE,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,WAAW,EACX,MAAM,EACN,WAAW,EACX,uBAAuB,EACvB,IAAI,GACL,EAAE,EAAE;QACH,MAAM,IAAI,GAAsB;YAC9B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,KAAK;YACL,QAAQ;YACR,OAAO;YACP,QAAQ;YACR,WAAW;YACX,MAAM;YACN,WAAW;YACX,uBAAuB;YACvB,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,2BAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAC3D;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/stellar/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAmBzE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,QAIrD"}
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/stellar/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAqBzE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,QAIrD"}
@@ -2,11 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.registerStellarTools = registerStellarTools;
4
4
  const fungible_js_1 = require("./tools/fungible.js");
5
+ const governor_js_1 = require("./tools/governor.js");
5
6
  const stablecoin_js_1 = require("./tools/stablecoin.js");
6
7
  const non_fungible_js_1 = require("./tools/non-fungible.js");
7
8
  function getRegisterFunctions(server) {
8
9
  return {
9
10
  Fungible: () => (0, fungible_js_1.registerStellarFungible)(server),
11
+ Governor: () => (0, governor_js_1.registerStellarGovernor)(server),
10
12
  Stablecoin: () => (0, stablecoin_js_1.registerStellarStablecoin)(server),
11
13
  NonFungible: () => (0, non_fungible_js_1.registerStellarNonFungible)(server),
12
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/stellar/tools.ts"],"names":[],"mappings":";;AAmBA,oDAIC;AAtBD,qDAA8D;AAC9D,yDAAkE;AAClE,6DAAqE;AAQrE,SAAS,oBAAoB,CAAC,MAAiB;IAC7C,OAAO;QACL,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAA,qCAAuB,EAAC,MAAM,CAAC;QAC/C,UAAU,EAAE,GAAG,EAAE,CAAC,IAAA,yCAAyB,EAAC,MAAM,CAAC;QACnD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,4CAA0B,EAAC,MAAM,CAAC;KACtD,CAAC;AACJ,CAAC;AAED,SAAgB,oBAAoB,CAAC,MAAiB;IACpD,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACjE,YAAY,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/stellar/tools.ts"],"names":[],"mappings":";;AAqBA,oDAIC;AAxBD,qDAA8D;AAC9D,qDAA8D;AAC9D,yDAAkE;AAClE,6DAAqE;AAQrE,SAAS,oBAAoB,CAAC,MAAiB;IAC7C,OAAO;QACL,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAA,qCAAuB,EAAC,MAAM,CAAC;QAC/C,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAA,qCAAuB,EAAC,MAAM,CAAC;QAC/C,UAAU,EAAE,GAAG,EAAE,CAAC,IAAA,yCAAyB,EAAC,MAAM,CAAC;QACnD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,4CAA0B,EAAC,MAAM,CAAC;KACtD,CAAC;AACJ,CAAC;AAED,SAAgB,oBAAoB,CAAC,MAAiB;IACpD,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACjE,YAAY,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openzeppelin/contracts-mcp",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "OpenZeppelin Contracts MCP Server",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": "https://github.com/OpenZeppelin/contracts-wizard",
@@ -27,7 +27,7 @@
27
27
  "@openzeppelin/wizard-common": "^0.5.0",
28
28
  "@openzeppelin/wizard": "^0.10.8",
29
29
  "@openzeppelin/wizard-stylus": "^0.3.0",
30
- "@openzeppelin/wizard-stellar": "^0.5.0",
30
+ "@openzeppelin/wizard-stellar": "^0.6.0",
31
31
  "@openzeppelin/wizard-cairo": "^3.0.0",
32
32
  "@openzeppelin/wizard-confidential": "^0.1.1",
33
33
  "@openzeppelin/wizard-uniswap-hooks": "^0.1.1"
@@ -14,6 +14,7 @@ export function registerStellarFungible(server: McpServer): RegisteredTool {
14
14
  name,
15
15
  symbol,
16
16
  burnable,
17
+ votes,
17
18
  pausable,
18
19
  premint,
19
20
  mintable,
@@ -26,6 +27,7 @@ export function registerStellarFungible(server: McpServer): RegisteredTool {
26
27
  name,
27
28
  symbol,
28
29
  burnable,
30
+ votes,
29
31
  pausable,
30
32
  premint,
31
33
  mintable,
@@ -0,0 +1,49 @@
1
+ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import type { GovernorOptions } from '@openzeppelin/wizard-stellar';
3
+ import { governor } from '@openzeppelin/wizard-stellar';
4
+ import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
5
+ import { stellarGovernorSchema } from '@openzeppelin/wizard-common/schemas';
6
+ import { stellarPrompts } from '@openzeppelin/wizard-common';
7
+
8
+ export function registerStellarGovernor(server: McpServer): RegisteredTool {
9
+ return server.tool(
10
+ 'stellar-governor',
11
+ makeDetailedPrompt(stellarPrompts.Governor),
12
+ stellarGovernorSchema,
13
+ async ({
14
+ name,
15
+ version,
16
+ votingDelay,
17
+ votingPeriod,
18
+ proposalThreshold,
19
+ quorum,
20
+ timelock,
21
+ upgradeable,
22
+ access,
23
+ explicitImplementations,
24
+ info,
25
+ }) => {
26
+ const opts: GovernorOptions = {
27
+ name,
28
+ version,
29
+ votingDelay,
30
+ votingPeriod,
31
+ proposalThreshold,
32
+ quorum,
33
+ timelock,
34
+ upgradeable,
35
+ access,
36
+ explicitImplementations,
37
+ info,
38
+ };
39
+ return {
40
+ content: [
41
+ {
42
+ type: 'text',
43
+ text: safePrintRustCodeBlock(() => governor.print(opts)),
44
+ },
45
+ ],
46
+ };
47
+ },
48
+ );
49
+ }
@@ -15,6 +15,7 @@ export function registerStellarNonFungible(server: McpServer): RegisteredTool {
15
15
  symbol,
16
16
  tokenUri,
17
17
  burnable,
18
+ votes,
18
19
  enumerable,
19
20
  consecutive,
20
21
  pausable,
@@ -29,6 +30,7 @@ export function registerStellarNonFungible(server: McpServer): RegisteredTool {
29
30
  symbol,
30
31
  tokenUri,
31
32
  burnable,
33
+ votes,
32
34
  enumerable,
33
35
  consecutive,
34
36
  pausable,
@@ -14,6 +14,7 @@ export function registerStellarStablecoin(server: McpServer): RegisteredTool {
14
14
  name,
15
15
  symbol,
16
16
  burnable,
17
+ votes,
17
18
  pausable,
18
19
  premint,
19
20
  mintable,
@@ -27,6 +28,7 @@ export function registerStellarStablecoin(server: McpServer): RegisteredTool {
27
28
  name,
28
29
  symbol,
29
30
  burnable,
31
+ votes,
30
32
  pausable,
31
33
  premint,
32
34
  mintable,
@@ -1,5 +1,6 @@
1
1
  import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import { registerStellarFungible } from './tools/fungible.js';
3
+ import { registerStellarGovernor } from './tools/governor.js';
3
4
  import { registerStellarStablecoin } from './tools/stablecoin.js';
4
5
  import { registerStellarNonFungible } from './tools/non-fungible.js';
5
6
  import type { KindedOptions } from '@openzeppelin/wizard-stellar';
@@ -12,6 +13,7 @@ type StellarToolRegisterFunctions = {
12
13
  function getRegisterFunctions(server: McpServer): StellarToolRegisterFunctions {
13
14
  return {
14
15
  Fungible: () => registerStellarFungible(server),
16
+ Governor: () => registerStellarGovernor(server),
15
17
  Stablecoin: () => registerStellarStablecoin(server),
16
18
  NonFungible: () => registerStellarNonFungible(server),
17
19
  };