@attocash/cli 0.1.1 → 0.1.2
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 +2 -2
- package/dist/cli/onboarding.d.ts +1 -2
- package/dist/cli/onboarding.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -736,13 +736,13 @@ git clone https://github.com/attocash/integrations.git
|
|
|
736
736
|
cd integrations
|
|
737
737
|
npm ci
|
|
738
738
|
npm run pack
|
|
739
|
-
npm install --global ./attocash-cli-0.
|
|
739
|
+
npm install --global ./attocash-cli-0.0.0.tgz
|
|
740
740
|
```
|
|
741
741
|
|
|
742
742
|
To test MCP with the same local CLI build, install both artifacts together:
|
|
743
743
|
|
|
744
744
|
```sh
|
|
745
|
-
npm install --global ./attocash-cli-0.
|
|
745
|
+
npm install --global ./attocash-cli-0.0.0.tgz ./attocash-mcp-0.0.0.tgz
|
|
746
746
|
```
|
|
747
747
|
|
|
748
748
|
For development and testing, see the [contributor guide](https://github.com/attocash/integrations/blob/main/docs/contributing.md).
|
package/dist/cli/onboarding.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ interface ProposalOptions {
|
|
|
8
8
|
export declare function approveLimitsProposal({ id, directory }: ProposalOptions): Promise<unknown>;
|
|
9
9
|
export declare function rejectLimitsProposal({ id, directory }: ProposalOptions): Promise<unknown>;
|
|
10
10
|
/** Returns only public host configuration; recovery material is displayed directly on the TTY. */
|
|
11
|
-
export declare function setupMcp({
|
|
12
|
-
version: string;
|
|
11
|
+
export declare function setupMcp({ directory }: {
|
|
13
12
|
directory?: string;
|
|
14
13
|
}): Promise<unknown>;
|
package/dist/cli/onboarding.js
CHANGED
|
@@ -107,7 +107,7 @@ async function configurePool(current) {
|
|
|
107
107
|
return { indexes, consolidate };
|
|
108
108
|
}
|
|
109
109
|
/** Returns only public host configuration; recovery material is displayed directly on the TTY. */
|
|
110
|
-
export async function setupMcp({
|
|
110
|
+
export async function setupMcp({ directory }) {
|
|
111
111
|
requireTerminal();
|
|
112
112
|
process.stderr.write('Atto MCP setup. Recovery phrases stay in your OS password store and this terminal.\n');
|
|
113
113
|
const wallet = await choose('Wallet: [1] Dedicated MCP wallet (default), [2] Existing CLI wallet: ');
|
|
@@ -136,7 +136,7 @@ export async function setupMcp({ version, directory }) {
|
|
|
136
136
|
const { proposal } = await application.call('limits_propose', { policy, access, pool });
|
|
137
137
|
await approve(application, proposal.id);
|
|
138
138
|
process.stderr.write('\nAdd this public configuration to your MCP client. The explicit data directory preserves your wallet selection.\n');
|
|
139
|
-
return { mcpServers: { atto: { command: 'npx', args: ['--yes',
|
|
139
|
+
return { mcpServers: { atto: { command: 'npx', args: ['--yes', '@attocash/mcp@latest', '--data-dir', profile.directory] } } };
|
|
140
140
|
}
|
|
141
141
|
finally {
|
|
142
142
|
await application.close();
|