@openzeppelin/contracts-mcp 0.5.5 → 0.5.7
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/dist/cairo/tools/account.js +2 -2
- package/dist/cairo/tools/account.js.map +1 -1
- package/dist/cairo/tools/custom.js +2 -2
- package/dist/cairo/tools/custom.js.map +1 -1
- package/dist/cairo/tools/erc1155.js +2 -2
- package/dist/cairo/tools/erc1155.js.map +1 -1
- package/dist/cairo/tools/erc20.js +2 -2
- package/dist/cairo/tools/erc20.js.map +1 -1
- package/dist/cairo/tools/erc721.js +2 -2
- package/dist/cairo/tools/erc721.js.map +1 -1
- package/dist/cairo/tools/governor.js +2 -2
- package/dist/cairo/tools/governor.js.map +1 -1
- package/dist/cairo/tools/multisig.js +2 -2
- package/dist/cairo/tools/multisig.js.map +1 -1
- package/dist/cairo/tools/vesting.js +2 -2
- package/dist/cairo/tools/vesting.js.map +1 -1
- package/dist/confidential/tools/erc7984.js +2 -2
- package/dist/confidential/tools/erc7984.js.map +1 -1
- package/dist/solidity/tools/account.js +2 -2
- package/dist/solidity/tools/account.js.map +1 -1
- package/dist/solidity/tools/custom.js +2 -2
- package/dist/solidity/tools/custom.js.map +1 -1
- package/dist/solidity/tools/erc1155.js +2 -2
- package/dist/solidity/tools/erc1155.js.map +1 -1
- package/dist/solidity/tools/erc20.js +2 -2
- package/dist/solidity/tools/erc20.js.map +1 -1
- package/dist/solidity/tools/erc721.js +2 -2
- package/dist/solidity/tools/erc721.js.map +1 -1
- package/dist/solidity/tools/governor.js +2 -2
- package/dist/solidity/tools/governor.js.map +1 -1
- package/dist/solidity/tools/rwa.js +2 -2
- package/dist/solidity/tools/rwa.js.map +1 -1
- package/dist/solidity/tools/stablecoin.js +2 -2
- package/dist/solidity/tools/stablecoin.js.map +1 -1
- package/dist/stellar/tools/fungible.js +2 -2
- package/dist/stellar/tools/fungible.js.map +1 -1
- package/dist/stellar/tools/non-fungible.js +2 -2
- package/dist/stellar/tools/non-fungible.js.map +1 -1
- package/dist/stellar/tools/stablecoin.js +2 -2
- package/dist/stellar/tools/stablecoin.js.map +1 -1
- package/dist/stylus/tools/erc1155.js +2 -2
- package/dist/stylus/tools/erc1155.js.map +1 -1
- package/dist/stylus/tools/erc20.js +2 -2
- package/dist/stylus/tools/erc20.js.map +1 -1
- package/dist/stylus/tools/erc721.js +2 -2
- package/dist/stylus/tools/erc721.js.map +1 -1
- package/dist/uniswap-hooks/tools/hooks.js +2 -2
- package/dist/uniswap-hooks/tools/hooks.js.map +1 -1
- package/package.json +6 -6
- package/src/cairo/tools/account.ts +2 -2
- package/src/cairo/tools/custom.ts +2 -2
- package/src/cairo/tools/erc1155.ts +2 -2
- package/src/cairo/tools/erc20.ts +2 -2
- package/src/cairo/tools/erc721.ts +2 -2
- package/src/cairo/tools/governor.ts +2 -2
- package/src/cairo/tools/multisig.ts +2 -2
- package/src/cairo/tools/vesting.ts +2 -2
- package/src/confidential/tools/erc7984.ts +2 -2
- package/src/solidity/tools/account.ts +2 -2
- package/src/solidity/tools/custom.ts +2 -2
- package/src/solidity/tools/erc1155.ts +2 -2
- package/src/solidity/tools/erc20.ts +2 -2
- package/src/solidity/tools/erc721.ts +2 -2
- package/src/solidity/tools/governor.ts +2 -2
- package/src/solidity/tools/rwa.ts +2 -2
- package/src/solidity/tools/stablecoin.ts +2 -2
- package/src/stellar/tools/fungible.ts +2 -2
- package/src/stellar/tools/non-fungible.ts +2 -2
- package/src/stellar/tools/stablecoin.ts +2 -2
- package/src/stylus/tools/erc1155.ts +2 -2
- package/src/stylus/tools/erc20.ts +2 -2
- package/src/stylus/tools/erc721.ts +2 -2
- package/src/uniswap-hooks/tools/hooks.ts +2 -2
- package/dist/cairo/schemas.d.ts +0 -342
- package/dist/cairo/schemas.d.ts.map +0 -1
- package/dist/cairo/schemas.js +0 -153
- package/dist/cairo/schemas.js.map +0 -1
- package/dist/confidential/schemas.d.ts +0 -33
- package/dist/confidential/schemas.d.ts.map +0 -1
- package/dist/confidential/schemas.js +0 -33
- package/dist/confidential/schemas.js.map +0 -1
- package/dist/solidity/schemas.d.ts +0 -211
- package/dist/solidity/schemas.d.ts.map +0 -1
- package/dist/solidity/schemas.js +0 -166
- package/dist/solidity/schemas.js.map +0 -1
- package/dist/stellar/schemas.d.ts +0 -84
- package/dist/stellar/schemas.d.ts.map +0 -1
- package/dist/stellar/schemas.js +0 -58
- package/dist/stellar/schemas.js.map +0 -1
- package/dist/stylus/schemas.d.ts +0 -60
- package/dist/stylus/schemas.d.ts.map +0 -1
- package/dist/stylus/schemas.js +0 -44
- package/dist/stylus/schemas.js.map +0 -1
- package/dist/uniswap-hooks/schemas.d.ts +0 -106
- package/dist/uniswap-hooks/schemas.d.ts.map +0 -1
- package/dist/uniswap-hooks/schemas.js +0 -78
- package/dist/uniswap-hooks/schemas.js.map +0 -1
- package/src/cairo/schemas.ts +0 -176
- package/src/confidential/schemas.ts +0 -35
- package/src/solidity/schemas.ts +0 -186
- package/src/stellar/schemas.ts +0 -69
- package/src/stylus/schemas.ts +0 -54
- package/src/uniswap-hooks/schemas.ts +0 -92
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { AccountOptions } from '@openzeppelin/wizard-cairo';
|
|
3
3
|
import { account } from '@openzeppelin/wizard-cairo';
|
|
4
4
|
import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { cairoAccountSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { cairoPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerCairoAccount(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'cairo-account',
|
|
11
11
|
makeDetailedPrompt(cairoPrompts.Account),
|
|
12
|
-
|
|
12
|
+
cairoAccountSchema,
|
|
13
13
|
async ({ name, type, declare, deploy, pubkey, outsideExecution, upgradeable, info, macros }) => {
|
|
14
14
|
const opts: AccountOptions = {
|
|
15
15
|
name,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { CustomOptions } from '@openzeppelin/wizard-cairo';
|
|
3
3
|
import { custom } from '@openzeppelin/wizard-cairo';
|
|
4
4
|
import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { cairoCustomSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { cairoPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerCairoCustom(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'cairo-custom',
|
|
11
11
|
makeDetailedPrompt(cairoPrompts.Custom),
|
|
12
|
-
|
|
12
|
+
cairoCustomSchema,
|
|
13
13
|
async ({ name, pausable, access, upgradeable, info, macros }) => {
|
|
14
14
|
const opts: CustomOptions = {
|
|
15
15
|
name,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { ERC1155Options } from '@openzeppelin/wizard-cairo';
|
|
3
3
|
import { erc1155 } from '@openzeppelin/wizard-cairo';
|
|
4
4
|
import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { cairoERC1155Schema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { cairoPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerCairoERC1155(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'cairo-erc1155',
|
|
11
11
|
makeDetailedPrompt(cairoPrompts.ERC1155),
|
|
12
|
-
|
|
12
|
+
cairoERC1155Schema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
baseUri,
|
package/src/cairo/tools/erc20.ts
CHANGED
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { ERC20Options } from '@openzeppelin/wizard-cairo';
|
|
3
3
|
import { erc20 } from '@openzeppelin/wizard-cairo';
|
|
4
4
|
import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { cairoERC20Schema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { cairoPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerCairoERC20(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'cairo-erc20',
|
|
11
11
|
makeDetailedPrompt(cairoPrompts.ERC20),
|
|
12
|
-
|
|
12
|
+
cairoERC20Schema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { ERC721Options } from '@openzeppelin/wizard-cairo';
|
|
3
3
|
import { erc721 } from '@openzeppelin/wizard-cairo';
|
|
4
4
|
import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { cairoERC721Schema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { cairoPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerCairoERC721(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'cairo-erc721',
|
|
11
11
|
makeDetailedPrompt(cairoPrompts.ERC721),
|
|
12
|
-
|
|
12
|
+
cairoERC721Schema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { GovernorOptions } from '@openzeppelin/wizard-cairo';
|
|
3
3
|
import { governor } from '@openzeppelin/wizard-cairo';
|
|
4
4
|
import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { cairoGovernorSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { cairoPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerCairoGovernor(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'cairo-governor',
|
|
11
11
|
makeDetailedPrompt(cairoPrompts.Governor),
|
|
12
|
-
|
|
12
|
+
cairoGovernorSchema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
delay,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { MultisigOptions } from '@openzeppelin/wizard-cairo';
|
|
3
3
|
import { multisig } from '@openzeppelin/wizard-cairo';
|
|
4
4
|
import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { cairoMultisigSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { cairoPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerCairoMultisig(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'cairo-multisig',
|
|
11
11
|
makeDetailedPrompt(cairoPrompts.Multisig),
|
|
12
|
-
|
|
12
|
+
cairoMultisigSchema,
|
|
13
13
|
async ({ name, quorum, upgradeable, info, macros }) => {
|
|
14
14
|
const opts: MultisigOptions = {
|
|
15
15
|
name,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { VestingOptions } from '@openzeppelin/wizard-cairo';
|
|
3
3
|
import { vesting } from '@openzeppelin/wizard-cairo';
|
|
4
4
|
import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { cairoVestingSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { cairoPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerCairoVesting(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'cairo-vesting',
|
|
11
11
|
makeDetailedPrompt(cairoPrompts.Vesting),
|
|
12
|
-
|
|
12
|
+
cairoVestingSchema,
|
|
13
13
|
async ({ name, startDate, duration, cliffDuration, schedule, info, macros }) => {
|
|
14
14
|
const opts: VestingOptions = {
|
|
15
15
|
name,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { ERC7984Options } from '@openzeppelin/wizard-confidential';
|
|
3
3
|
import { erc7984 } from '@openzeppelin/wizard-confidential';
|
|
4
4
|
import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { confidentialERC7984Schema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { confidentialPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerConfidentialERC7984(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'erc7984',
|
|
11
11
|
makeDetailedPrompt(confidentialPrompts.ERC7984),
|
|
12
|
-
|
|
12
|
+
confidentialERC7984Schema,
|
|
13
13
|
async ({ name, symbol, contractURI, premint, networkConfig, wrappable, votes, info }) => {
|
|
14
14
|
const opts: ERC7984Options = {
|
|
15
15
|
name,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { AccountOptions } from '@openzeppelin/wizard';
|
|
3
3
|
import { account } from '@openzeppelin/wizard';
|
|
4
4
|
import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { solidityAccountSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { solidityPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerSolidityAccount(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'solidity-account',
|
|
11
11
|
makeDetailedPrompt(solidityPrompts.Account),
|
|
12
|
-
|
|
12
|
+
solidityAccountSchema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
signatureValidation,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { CustomOptions } from '@openzeppelin/wizard';
|
|
3
3
|
import { custom } from '@openzeppelin/wizard';
|
|
4
4
|
import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { solidityCustomSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { solidityPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerSolidityCustom(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'solidity-custom',
|
|
11
11
|
makeDetailedPrompt(solidityPrompts.Custom),
|
|
12
|
-
|
|
12
|
+
solidityCustomSchema,
|
|
13
13
|
async ({ name, pausable, access, upgradeable, info }) => {
|
|
14
14
|
const opts: CustomOptions = {
|
|
15
15
|
name,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { ERC1155Options } from '@openzeppelin/wizard';
|
|
3
3
|
import { erc1155 } from '@openzeppelin/wizard';
|
|
4
4
|
import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { solidityERC1155Schema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { solidityPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerSolidityERC1155(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'solidity-erc1155',
|
|
11
11
|
makeDetailedPrompt(solidityPrompts.ERC1155),
|
|
12
|
-
|
|
12
|
+
solidityERC1155Schema,
|
|
13
13
|
async ({ name, uri, burnable, pausable, mintable, supply, updatableUri, access, upgradeable, info }) => {
|
|
14
14
|
const opts: ERC1155Options = {
|
|
15
15
|
name,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { ERC20Options } from '@openzeppelin/wizard';
|
|
3
3
|
import { erc20 } from '@openzeppelin/wizard';
|
|
4
4
|
import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { solidityERC20Schema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { solidityPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerSolidityERC20(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'solidity-erc20',
|
|
11
11
|
makeDetailedPrompt(solidityPrompts.ERC20),
|
|
12
|
-
|
|
12
|
+
solidityERC20Schema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { ERC721Options } from '@openzeppelin/wizard';
|
|
3
3
|
import { erc721 } from '@openzeppelin/wizard';
|
|
4
4
|
import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { solidityERC721Schema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { solidityPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerSolidityERC721(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'solidity-erc721',
|
|
11
11
|
makeDetailedPrompt(solidityPrompts.ERC721),
|
|
12
|
-
|
|
12
|
+
solidityERC721Schema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { GovernorOptions } from '@openzeppelin/wizard';
|
|
3
3
|
import { governor } from '@openzeppelin/wizard';
|
|
4
4
|
import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { solidityGovernorSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { solidityPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerSolidityGovernor(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'solidity-governor',
|
|
11
11
|
makeDetailedPrompt(solidityPrompts.Governor),
|
|
12
|
-
|
|
12
|
+
solidityGovernorSchema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
delay,
|
|
@@ -2,14 +2,14 @@ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
|
2
2
|
import type { StablecoinOptions } from '@openzeppelin/wizard';
|
|
3
3
|
import { realWorldAsset } from '@openzeppelin/wizard';
|
|
4
4
|
import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { solidityRWASchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { solidityPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerSolidityRWA(server: McpServer) {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'solidity-rwa',
|
|
11
11
|
makeDetailedPrompt(solidityPrompts.RWA),
|
|
12
|
-
|
|
12
|
+
solidityRWASchema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { StablecoinOptions } from '@openzeppelin/wizard';
|
|
3
3
|
import { stablecoin } from '@openzeppelin/wizard';
|
|
4
4
|
import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { solidityStablecoinSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { solidityPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerSolidityStablecoin(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'solidity-stablecoin',
|
|
11
11
|
makeDetailedPrompt(solidityPrompts.Stablecoin),
|
|
12
|
-
|
|
12
|
+
solidityStablecoinSchema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { FungibleOptions } from '@openzeppelin/wizard-stellar';
|
|
3
3
|
import { fungible } from '@openzeppelin/wizard-stellar';
|
|
4
4
|
import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { stellarFungibleSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { stellarPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerStellarFungible(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'stellar-fungible',
|
|
11
11
|
makeDetailedPrompt(stellarPrompts.Fungible),
|
|
12
|
-
|
|
12
|
+
stellarFungibleSchema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { NonFungibleOptions } from '@openzeppelin/wizard-stellar';
|
|
3
3
|
import { nonFungible } from '@openzeppelin/wizard-stellar';
|
|
4
4
|
import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { stellarNonFungibleSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { stellarPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerStellarNonFungible(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'stellar-non-fungible',
|
|
11
11
|
makeDetailedPrompt(stellarPrompts.NonFungible),
|
|
12
|
-
|
|
12
|
+
stellarNonFungibleSchema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { StablecoinOptions } from '@openzeppelin/wizard-stellar';
|
|
3
3
|
import { stablecoin } from '@openzeppelin/wizard-stellar';
|
|
4
4
|
import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { stellarStablecoinSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { stellarPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerStellarStablecoin(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'stellar-stablecoin',
|
|
11
11
|
makeDetailedPrompt(stellarPrompts.Stablecoin),
|
|
12
|
-
|
|
12
|
+
stellarStablecoinSchema,
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { ERC1155Options } from '@openzeppelin/wizard-stylus';
|
|
3
3
|
import { erc1155 } from '@openzeppelin/wizard-stylus';
|
|
4
4
|
import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { stylusERC1155Schema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { stylusPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerStylusERC1155(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'stylus-erc1155',
|
|
11
11
|
makeDetailedPrompt(stylusPrompts.ERC1155),
|
|
12
|
-
|
|
12
|
+
stylusERC1155Schema,
|
|
13
13
|
async ({ name, burnable, supply, info }) => {
|
|
14
14
|
const opts: ERC1155Options = {
|
|
15
15
|
name,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { ERC20Options } from '@openzeppelin/wizard-stylus';
|
|
3
3
|
import { erc20 } from '@openzeppelin/wizard-stylus';
|
|
4
4
|
import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { stylusERC20Schema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { stylusPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerStylusERC20(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'stylus-erc20',
|
|
11
11
|
makeDetailedPrompt(stylusPrompts.ERC20),
|
|
12
|
-
|
|
12
|
+
stylusERC20Schema,
|
|
13
13
|
async ({ name, burnable, permit, flashmint, info }) => {
|
|
14
14
|
const opts: ERC20Options = {
|
|
15
15
|
name,
|
|
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
|
|
|
2
2
|
import type { ERC721Options } from '@openzeppelin/wizard-stylus';
|
|
3
3
|
import { erc721 } from '@openzeppelin/wizard-stylus';
|
|
4
4
|
import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
-
import {
|
|
5
|
+
import { stylusERC721Schema } from '@openzeppelin/wizard-common/schemas';
|
|
6
6
|
import { stylusPrompts } from '@openzeppelin/wizard-common';
|
|
7
7
|
|
|
8
8
|
export function registerStylusERC721(server: McpServer): RegisteredTool {
|
|
9
9
|
return server.tool(
|
|
10
10
|
'stylus-erc721',
|
|
11
11
|
makeDetailedPrompt(stylusPrompts.ERC721),
|
|
12
|
-
|
|
12
|
+
stylusERC721Schema,
|
|
13
13
|
async ({ name, burnable, enumerable, info }) => {
|
|
14
14
|
const opts: ERC721Options = {
|
|
15
15
|
name,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
2
|
import { hooks, type HooksOptions } from '@openzeppelin/wizard-uniswap-hooks';
|
|
3
|
-
import {
|
|
3
|
+
import { uniswapHooksHooksSchema } from '@openzeppelin/wizard-common/schemas';
|
|
4
4
|
import { makeDetailedPrompt, safePrintSolidityCodeBlock } from '../../utils';
|
|
5
5
|
import { uniswapHooksPrompts } from '@openzeppelin/wizard-common';
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ export function registerUniswapHooks(server: McpServer): RegisteredTool {
|
|
|
8
8
|
return server.tool(
|
|
9
9
|
'uniswap-hooks',
|
|
10
10
|
makeDetailedPrompt(uniswapHooksPrompts.Hooks),
|
|
11
|
-
|
|
11
|
+
uniswapHooksHooksSchema,
|
|
12
12
|
async ({
|
|
13
13
|
hook,
|
|
14
14
|
name,
|