@settlemint/sdk-mcp 1.1.16-pr0d9719ab
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/LICENSE +110 -0
- package/README.md +260 -0
- package/dist/mcp.js +68615 -0
- package/dist/mcp.js.map +597 -0
- package/package.json +71 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, MIT Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-MIT
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2024 SettleMint
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the MIT license that is effective on the second anniversary of the date we make
|
|
91
|
+
the Software available. On or after that date, you may use the Software under
|
|
92
|
+
the MIT license, in which case the following will apply:
|
|
93
|
+
|
|
94
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
95
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
96
|
+
the Software without restriction, including without limitation the rights to
|
|
97
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
98
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
99
|
+
so, subject to the following conditions:
|
|
100
|
+
|
|
101
|
+
The above copyright notice and this permission notice shall be included in all
|
|
102
|
+
copies or substantial portions of the Software.
|
|
103
|
+
|
|
104
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
105
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
106
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
107
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
108
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
109
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
110
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://github.com/settlemint/sdk/blob/main/logo.svg" width="200px" align="center" alt="SettleMint logo" />
|
|
3
|
+
<h1 align="center">SettleMint SDK</h1>
|
|
4
|
+
<p align="center">
|
|
5
|
+
✨ <a href="https://settlemint.com">https://settlemint.com</a> ✨
|
|
6
|
+
<br/>
|
|
7
|
+
Integrate SettleMint into your application with ease.
|
|
8
|
+
</p>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://github.com/settlemint/sdk/actions?query=branch%3Amain"><img src="https://github.com/settlemint/sdk/actions/workflows/build.yml/badge.svg?event=push&branch=main" alt="CI status" /></a>
|
|
13
|
+
<a href="https://fsl.software" rel="nofollow"><img src="https://img.shields.io/npm/l/@settlemint/sdk-mcp" alt="License"></a>
|
|
14
|
+
<a href="https://www.npmjs.com/package/@settlemint/sdk-mcp" rel="nofollow"><img src="https://img.shields.io/npm/dw/@settlemint/sdk-mcp" alt="npm"></a>
|
|
15
|
+
<a href="https://github.com/settlemint/sdk" rel="nofollow"><img src="https://img.shields.io/github/stars/settlemint/sdk" alt="stars"></a>
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
<div align="center">
|
|
19
|
+
<a href="https://console.settlemint.com/documentation/docs/using-platform/dev-tools/SDK/">Documentation</a>
|
|
20
|
+
<span> • </span>
|
|
21
|
+
<a href="https://www.npmjs.com/package/@settlemint/sdk-mcp">NPM</a>
|
|
22
|
+
<span> • </span>
|
|
23
|
+
<a href="https://github.com/settlemint/sdk/issues">Issues</a>
|
|
24
|
+
<br />
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
## Table of Contents
|
|
28
|
+
|
|
29
|
+
- [About](#about)
|
|
30
|
+
- [Usage](#usage)
|
|
31
|
+
- [As a dependency in your package.json](#as-a-dependency-in-your-package.json)
|
|
32
|
+
- [Globally install the CLI](#globally-install-the-cli)
|
|
33
|
+
- [GitHub Action](#github-action)
|
|
34
|
+
- [Examples](#examples)
|
|
35
|
+
- [Get the version of the CLI](#get-the-version-of-the-cli)
|
|
36
|
+
- [Get help for a command](#get-help-for-a-command)
|
|
37
|
+
- [Login to the platform](#login-to-the-platform)
|
|
38
|
+
- [Creating a new project from a template](#creating-a-new-project-from-a-template)
|
|
39
|
+
- [Installing dependencies](#installing-dependencies)
|
|
40
|
+
- [Connecting to your SettleMint infrastructure](#connecting-to-your-settlemint-infrastructure)
|
|
41
|
+
- [Deploying your smart contracts and subgraphs](#deploying-your-smart-contracts-and-subgraphs)
|
|
42
|
+
- [Generating code for your dApp](#generating-code-for-your-dapp)
|
|
43
|
+
- [Start your dApp in development mode](#start-your-dapp-in-development-mode)
|
|
44
|
+
- [Creating a new project from a smart contract template](#creating-a-new-project-from-a-smart-contract-template)
|
|
45
|
+
- [Testing your smart contracts](#testing-your-smart-contracts)
|
|
46
|
+
- [Deploying your smart contracts and subgraphs](#deploying-your-smart-contracts-and-subgraphs)
|
|
47
|
+
- [API Reference](#api-reference)
|
|
48
|
+
- [Contributing](#contributing)
|
|
49
|
+
- [License](#license)
|
|
50
|
+
|
|
51
|
+
## About
|
|
52
|
+
|
|
53
|
+
The SettleMint CLI provides a command-line interface for interacting with the SettleMint platform. It enables you to manage your blockchain networks, deploy smart contracts, configure your SettleMint infrastructure directly from the terminal.
|
|
54
|
+
|
|
55
|
+
## Usage
|
|
56
|
+
|
|
57
|
+
### As a dependency in your package.json
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# npm
|
|
61
|
+
npm install @settlemint/sdk-mcp
|
|
62
|
+
npx settlemint --version
|
|
63
|
+
|
|
64
|
+
# bun
|
|
65
|
+
bun add @settlemint/sdk-mcp
|
|
66
|
+
bunx settlemint --version
|
|
67
|
+
|
|
68
|
+
# pnpm
|
|
69
|
+
pnpm add @settlemint/sdk-mcp
|
|
70
|
+
pnpm dlx settlemint --version
|
|
71
|
+
|
|
72
|
+
# yarn
|
|
73
|
+
yarn add @settlemint/sdk-mcp
|
|
74
|
+
yarn create settlemint --version
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Globally install the CLI
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# npm
|
|
81
|
+
npm install -g @settlemint/sdk-mcp
|
|
82
|
+
|
|
83
|
+
# bun
|
|
84
|
+
bun install -g @settlemint/sdk-mcp
|
|
85
|
+
|
|
86
|
+
# pnpm
|
|
87
|
+
pnpm add -g @settlemint/sdk-mcp
|
|
88
|
+
|
|
89
|
+
# yarn
|
|
90
|
+
yarn global add @settlemint/sdk-mcp
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
You can access the CLI globally by running `settlemint` in your terminal.
|
|
94
|
+
|
|
95
|
+
## GitHub Action
|
|
96
|
+
|
|
97
|
+
Execute SettleMint CLI commands directly in your GitHub Actions workflows using our official GitHub Action.
|
|
98
|
+
|
|
99
|
+
For detailed setup and usage instructions, check out our [documentation](https://github.com/settlemint/settlemint-action/blob/main/README.md).
|
|
100
|
+
|
|
101
|
+
Basic example:
|
|
102
|
+
|
|
103
|
+
```yaml
|
|
104
|
+
steps:
|
|
105
|
+
- name: Get SettleMint CLI version
|
|
106
|
+
uses: settlemint/settlemint-action@main
|
|
107
|
+
with:
|
|
108
|
+
access-token: ${{ secrets.SETTLEMINT_ACCESS_TOKEN }}
|
|
109
|
+
command: "--version"
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Examples
|
|
113
|
+
|
|
114
|
+
### Get the version of the CLI
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
settlemint --version
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Get help for a command
|
|
121
|
+
|
|
122
|
+
The CLI uses a hierarchical command structure. You can navigate through available commands and subcommands using the `--help` flag at any level.
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
settlemint --help
|
|
126
|
+
settlemint platform --help
|
|
127
|
+
settlemint platform create --help
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Login to the platform
|
|
131
|
+
|
|
132
|
+
To use the SettleMint CLI, you first need to authenticate with the platform. Create a Personal Access Token (PAT) on the SettleMint platformand paste it when prompted by the login command.
|
|
133
|
+
|
|
134
|
+
Visit [the documentation](https://console.settlemint.com/documentation/docs/using-platform/personal-access-tokens/) to learn how to create a Personal Access Token.
|
|
135
|
+
|
|
136
|
+
Then run the login command and paste your token when prompted:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
settlemint login
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Creating a new project from a template
|
|
143
|
+
|
|
144
|
+
To create a new project from a template, use the `create` command with the `--template` flag:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
settlemint create --project-name <project-name> --template <template-name>
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
#### Installing dependencies
|
|
151
|
+
|
|
152
|
+
To install the dependencies for your project, use the `dependencies` command.
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# bun
|
|
156
|
+
bun install
|
|
157
|
+
bun run dependencies
|
|
158
|
+
|
|
159
|
+
# npm
|
|
160
|
+
npm install
|
|
161
|
+
npm run dependencies
|
|
162
|
+
|
|
163
|
+
# yarn
|
|
164
|
+
yarn install
|
|
165
|
+
yarn run dependencies
|
|
166
|
+
|
|
167
|
+
# pnpm
|
|
168
|
+
pnpm install
|
|
169
|
+
pnpm run dependencies
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
#### Connecting to your SettleMint infrastructure
|
|
173
|
+
|
|
174
|
+
After creating your project, you'll need to connect it to your SettleMint infrastructure. This requires setting up environment variables with your SettleMint credentials and infrastructure details.
|
|
175
|
+
|
|
176
|
+
You can use the `connect` command to automatically configure your project and select the services you want to connect to.
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
settlemint connect
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
#### Deploying your smart contracts and subgraphs
|
|
183
|
+
|
|
184
|
+
To deploy your smart contracts and subgraphs, you can use the `deploy` command.
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
settlemint scs hardhat deploy remote --accept-defaults
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
To deploy your subgraphs, use the `subgraph` command.
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
settlemint scs subgraph deploy --accept-defaults <subgraph-name>
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
#### Generating code for your dApp
|
|
197
|
+
|
|
198
|
+
After deploying your smart contracts and subgraphs, you can generate TypeScript code for your dApp to interact with them. The `codegen` command will generate type-safe code for your integrations with the services selected in the `connect` command.
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
settlemint codegen
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
#### Start your dApp in development mode
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
# bun
|
|
208
|
+
bun run dev
|
|
209
|
+
|
|
210
|
+
# npm
|
|
211
|
+
npm run dev
|
|
212
|
+
|
|
213
|
+
# yarn
|
|
214
|
+
yarn dev
|
|
215
|
+
|
|
216
|
+
# pnpm
|
|
217
|
+
pnpm dev
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Creating a new project from a smart contract template
|
|
221
|
+
|
|
222
|
+
To create a new project from a smart contract template, use the `create` command with the `--use-case` flag:
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
settlemint scs create --project-name <project-name> --use-case <use-case-name>
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
#### Testing your smart contracts
|
|
229
|
+
|
|
230
|
+
To test your smart contracts, you can use the `test` command.
|
|
231
|
+
|
|
232
|
+
```bash
|
|
233
|
+
settlemint scs foundry test
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
#### Deploying your smart contracts and subgraphs
|
|
237
|
+
|
|
238
|
+
To deploy your smart contracts and subgraphs, you can use the `deploy` command.
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
settlemint scs hardhat deploy remote --accept-defaults
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
To deploy your subgraphs, use the `subgraph` command.
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
settlemint scs subgraph deploy --accept-defaults <subgraph-name>
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
## API Reference
|
|
251
|
+
|
|
252
|
+
See the [documentation](https://github.com/settlemint/sdk/tree/v1.1.16/sdk/cli/docs/settlemint.md) for available commands.
|
|
253
|
+
|
|
254
|
+
## Contributing
|
|
255
|
+
|
|
256
|
+
We welcome contributions from the community! Please check out our [Contributing](https://github.com/settlemint/sdk/blob/main/.github/CONTRIBUTING.md) guide to learn how you can help improve the SettleMint SDK through bug reports, feature requests, documentation updates, or code contributions.
|
|
257
|
+
|
|
258
|
+
## License
|
|
259
|
+
|
|
260
|
+
The SettleMint SDK is released under the [FSL Software License](https://fsl.software). See the [LICENSE](https://github.com/settlemint/sdk/blob/main/LICENSE) file for more details.
|