@rareprotocol/rare-cli 1.0.2 → 1.1.0

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.
Files changed (3) hide show
  1. package/README.md +30 -1
  2. package/dist/index.js +3036 -2488
  3. package/package.json +4 -2
package/README.md CHANGED
@@ -19,7 +19,7 @@ rare --help
19
19
  ```
20
20
 
21
21
  See [CHANGELOG.md](./CHANGELOG.md) for release notes and migration guidance.
22
- For generated reference maps, see [rare-cli-commands.md](./rare-cli-commands.md) and [rare-cli-sdk-client-functions.md](./rare-cli-sdk-client-functions.md).
22
+ For generated reference maps, see [rare-cli-commands.md](./rare-cli-commands.md), [rare-cli-sdk-client-functions.md](./rare-cli-sdk-client-functions.md), and [rare-cli-mcp-tools.md](./rare-cli-mcp-tools.md).
23
23
 
24
24
  ## Getting Started
25
25
 
@@ -105,6 +105,35 @@ Supported chains: `mainnet`, `sepolia`, `base`, `base-sepolia`
105
105
 
106
106
  Feature deployment varies by chain. Batch listing, batch offer, batch auction, RareMinter release, Liquid Edition, and swap flows are currently available on `mainnet` and `sepolia`.
107
107
 
108
+ ### MCP Server
109
+
110
+ `rare mcp serve` starts a stdio [Model Context Protocol](https://modelcontextprotocol.io/) server for MCP clients such as Claude Desktop, Codex, Cursor, Windsurf, or the MCP Inspector. By default it registers read-only tools around the public Rare SDK surface:
111
+
112
+ ```bash
113
+ rare mcp serve
114
+ ```
115
+
116
+ Write-capable tools are available only when explicitly enabled:
117
+
118
+ ```bash
119
+ rare mcp serve --allow-writes
120
+ ```
121
+
122
+ Because MCP stdio reserves stdout for protocol messages, the command waits quietly when run directly in a terminal. For manual inspection and sample tool calls, use the MCP Inspector:
123
+
124
+ ```bash
125
+ npx @modelcontextprotocol/inspector rare mcp serve
126
+ npx @modelcontextprotocol/inspector rare mcp serve --allow-writes
127
+ ```
128
+
129
+ When testing a local build instead of a globally installed `rare`, point Inspector at the built entrypoint:
130
+
131
+ ```bash
132
+ npx @modelcontextprotocol/inspector node dist/index.js mcp serve
133
+ ```
134
+
135
+ See [rare-cli-mcp-tools.md](./rare-cli-mcp-tools.md) for the complete tool inventory, naming conventions, and structured error codes.
136
+
108
137
  ### Deploy an NFT Collection
109
138
 
110
139
  ```bash