charter-mcp 0.3.0 → 0.3.1
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/server.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ What it rents, by the hour, at 0.007 USDC an hour on the live host:
|
|
|
6
6
|
|
|
7
7
|
- **A Python sandbox.** Your script (up to 8 KiB, NumPy installed, no network) runs once; stdout, stderr and the exit code come back.
|
|
8
8
|
- **A page fetcher.** Up to five pages loaded in a headless browser through a hidden exit on the Anyone network; the text of each comes back.
|
|
9
|
-
- **A Linux home.** A Debian box of your own with 1 CPU, 1 GiB of memory, a
|
|
9
|
+
- **A Linux home.** A Debian box of your own with 1 CPU, 1 GiB of memory, a 10 GiB disk kept 7 days after the lease ends, and SSH in.
|
|
10
10
|
|
|
11
11
|
## Install
|
|
12
12
|
|
|
@@ -98,7 +98,7 @@ Other settings: `CHARTER_MCP_KEY_FILE`, `CHARTER_MCP_SPEND_FILE`, `CHARTER_MCP_N
|
|
|
98
98
|
|
|
99
99
|
- SSH is plain: `ssh -p <port> tenant@<host>`, with the host and port from the lease's `access.ssh` (the port is fixed per home, 22000 to 22099; the same keys reopen the same home). A host may also publish `access.onion`, which needs an Anyone client.
|
|
100
100
|
- All of the box's outbound traffic leaves through the host's Anyone client: slow, and some services refuse shared exits.
|
|
101
|
-
-
|
|
101
|
+
- Log in as `root` (apt works) or `tenant`. 1 GiB of memory. Homes are limited (`home.slots` in the offer); an open answers `busy` when they are full.
|
|
102
102
|
- The operator of the host can read the disk. Secrets go in over `scp`, never through Charter.
|
|
103
103
|
- A home that is not paid closes; its disk and port are kept 7 days and the same keys open it again.
|
|
104
104
|
|
package/dist/server.js
CHANGED
|
@@ -20,7 +20,7 @@ import { privateKeyToAccount } from 'viem/accounts';
|
|
|
20
20
|
import { base } from 'viem/chains';
|
|
21
21
|
import { z } from 'zod';
|
|
22
22
|
import { BASE, BASE_USDC, CapError, DEFAULT_DOOR, PayError, extend, grantStatus, lease, microToUsdc, onlyDoorExact, output, pitch, rent, runJob, usdcToMicro, } from './core.js';
|
|
23
|
-
export const VERSION = '0.3.
|
|
23
|
+
export const VERSION = '0.3.1';
|
|
24
24
|
export function optionsFromEnv(env) {
|
|
25
25
|
const dir = join(homedir(), '.charter');
|
|
26
26
|
const v = (k) => env[k]?.trim() || undefined;
|
|
@@ -392,7 +392,7 @@ export function build(o, log, fetchFn = fetch) {
|
|
|
392
392
|
}, ({ urls, waitSeconds }) => answer(() => actions.fetchPages(urls, waitSeconds)));
|
|
393
393
|
server.registerTool('charter_rent_home', {
|
|
394
394
|
title: 'Rent a Linux home with SSH',
|
|
395
|
-
description: `PAID. ${cost} Opens a Linux box of your own (Debian, 1 CPU, 1 GiB memory, a
|
|
395
|
+
description: `PAID. ${cost} Opens a Linux box of your own (Debian, 1 CPU, 1 GiB memory, a 10 GiB disk kept 7 days after the lease ends, logins "root" (apt works) and "tenant") and pays its first interval. Pass 1 to 8 SSH PUBLIC keys; the key set is the home's identity, so the same keys open the same disk again. Read this before renting: SSH is plain: ssh -p <port> tenant@<host> to the public address the lease shows, no special client needed (some hosts publish an onion address on the Anyone network instead, which needs an Anyone client); outbound traffic may be slow; homes are limited (home.slots in the offer) and an open answers busy when they are full. After renting, call charter_lease about once a minute until it shows the SSH address, and charter_extend before the paid time runs out.`,
|
|
396
396
|
inputSchema: {
|
|
397
397
|
sshKeys: z.array(z.string().max(1023)).min(1).max(8).describe('SSH public key lines (ssh-ed25519, ecdsa-sha2-nistp256/384/521 or ssh-rsa). Public keys only: never a private key.'),
|
|
398
398
|
image: z.enum(['charter-home', 'charter-hermes']).optional().describe('charter-home (default) is a plain box; charter-hermes has Hermes Agent preinstalled'),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "charter-mcp",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "MCP server and command line that let an agent rent a sandboxed machine by the hour on Charter and pay for it itself: run a Python script, fetch pages through a hidden exit, or rent a Linux home with SSH. USDC on Base over x402, no account.",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "MCP server and command line that let an agent rent a sandboxed machine by the hour on Charter and pay for it itself: run a Python script, fetch pages through a hidden exit, or rent a Linux home with root, apt and SSH. A grant fund pays a free month to agents that pitch. USDC on Base over x402, no account.",
|
|
5
5
|
"mcpName": "io.github.drew-dot-com/charter",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|