@s-i-m-p-l-e/mcp 0.0.0-stage → 0.9.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.
- package/README.md +40 -2
- package/bin/simple-mcp.mjs +55 -0
- package/package.json +41 -4
package/README.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @s-i-m-p-l-e/mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MCP server for **Simple — the wallet for AI agents**. Gasless dollar wallets on Radius: check balance, send money by `@username` or address, onboard with free faucet funding, submit feedback, and pay/earn on-chain. Every transaction is gasless.
|
|
4
|
+
|
|
5
|
+
- Website: https://superdupersimple.com
|
|
6
|
+
- Hosted MCP endpoint: `https://mcp.superdupersimple.com/mcp`
|
|
7
|
+
- Repo: https://github.com/superdupersimple/simple
|
|
8
|
+
|
|
9
|
+
## Use it
|
|
10
|
+
|
|
11
|
+
### Option 1 — Remote (recommended, no install)
|
|
12
|
+
|
|
13
|
+
Point any MCP client at the hosted server. You'll sign in once via browser (OAuth):
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"mcpServers": {
|
|
18
|
+
"simple": { "url": "https://mcp.superdupersimple.com/mcp" }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Option 2 — Local stdio bridge (for clients that need a command)
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"mcpServers": {
|
|
28
|
+
"simple": { "command": "npx", "args": ["-y", "@s-i-m-p-l-e/mcp"] }
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
This runs a thin [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) bridge to the hosted server and handles the OAuth sign-in on first use.
|
|
34
|
+
|
|
35
|
+
## Tools
|
|
36
|
+
|
|
37
|
+
`check_balance`, `send_money`, `resolve_username`, `onboard`, `submit_report`, `list_reports`, and more. See https://superdupersimple.com for the full list.
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
MIT
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// @s-i-m-p-l-e/mcp — stdio bridge to the hosted Simple MCP server.
|
|
3
|
+
//
|
|
4
|
+
// Simple's MCP server is a remote, OAuth-protected streamable-HTTP endpoint at
|
|
5
|
+
// https://mcp.superdupersimple.com/mcp. MCP clients that prefer a local stdio
|
|
6
|
+
// command (Cursor, Claude Desktop, etc.) can run `npx @s-i-m-p-l-e/mcp`, which
|
|
7
|
+
// transparently proxies stdio <-> the hosted server using `mcp-remote` and
|
|
8
|
+
// handles the browser OAuth sign-in on first use.
|
|
9
|
+
//
|
|
10
|
+
// Usage:
|
|
11
|
+
// npx @s-i-m-p-l-e/mcp # connect to production
|
|
12
|
+
// npx @s-i-m-p-l-e/mcp <url> # connect to a custom MCP URL
|
|
13
|
+
//
|
|
14
|
+
// Equivalent remote config (no install) for clients that support remotes:
|
|
15
|
+
// { "mcpServers": { "simple": { "url": "https://mcp.superdupersimple.com/mcp" } } }
|
|
16
|
+
|
|
17
|
+
import { spawn } from "node:child_process";
|
|
18
|
+
import { dirname, resolve as resolvePath } from "node:path";
|
|
19
|
+
import { createRequire } from "node:module";
|
|
20
|
+
|
|
21
|
+
const DEFAULT_URL = "https://mcp.superdupersimple.com/mcp";
|
|
22
|
+
|
|
23
|
+
// Pass through any user-provided args; default to the production URL.
|
|
24
|
+
const args = process.argv.slice(2);
|
|
25
|
+
const url = args.find((a) => /^https?:\/\//.test(a)) ?? DEFAULT_URL;
|
|
26
|
+
const passthrough = args.filter((a) => a !== url);
|
|
27
|
+
|
|
28
|
+
const require = createRequire(import.meta.url);
|
|
29
|
+
|
|
30
|
+
let mcpRemoteBin;
|
|
31
|
+
try {
|
|
32
|
+
// Resolve the mcp-remote CLI entrypoint from its own package.json `bin`
|
|
33
|
+
// (version-robust across mcp-remote releases).
|
|
34
|
+
const pkgPath = require.resolve("mcp-remote/package.json");
|
|
35
|
+
const pkg = require("mcp-remote/package.json");
|
|
36
|
+
const binRel =
|
|
37
|
+
typeof pkg.bin === "string" ? pkg.bin : pkg.bin?.["mcp-remote"] ?? "dist/proxy.js";
|
|
38
|
+
mcpRemoteBin = resolvePath(dirname(pkgPath), binRel);
|
|
39
|
+
} catch {
|
|
40
|
+
console.error(
|
|
41
|
+
"[simple-mcp] Could not locate 'mcp-remote'. Reinstall with `npm i -g @s-i-m-p-l-e/mcp` " +
|
|
42
|
+
"or point your MCP client straight at the hosted server: " + DEFAULT_URL,
|
|
43
|
+
);
|
|
44
|
+
process.exit(1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const child = spawn(process.execPath, [mcpRemoteBin, url, ...passthrough], {
|
|
48
|
+
stdio: "inherit",
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
child.on("exit", (code) => process.exit(code ?? 0));
|
|
52
|
+
child.on("error", (err) => {
|
|
53
|
+
console.error("[simple-mcp] failed to start mcp-remote:", err?.message ?? err);
|
|
54
|
+
process.exit(1);
|
|
55
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s-i-m-p-l-e/mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "MCP server for Simple — the wallet for AI agents. Gasless dollar wallets on Radius: check balance, send by @username, onboard, submit feedback, pay/earn on-chain.",
|
|
5
|
+
"homepage": "https://superdupersimple.com",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/superdupersimple/simple.git",
|
|
9
|
+
"directory": "packages/mcp"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/superdupersimple/simple/issues"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"mcp",
|
|
17
|
+
"model-context-protocol",
|
|
18
|
+
"wallet",
|
|
19
|
+
"agent",
|
|
20
|
+
"ai",
|
|
21
|
+
"radius",
|
|
22
|
+
"stablecoin",
|
|
23
|
+
"gasless",
|
|
24
|
+
"payments",
|
|
25
|
+
"x402",
|
|
26
|
+
"simple"
|
|
27
|
+
],
|
|
28
|
+
"mcpName": "io.github.superdupersimple/simple",
|
|
29
|
+
"type": "module",
|
|
30
|
+
"bin": {
|
|
31
|
+
"simple-mcp": "bin/simple-mcp.mjs"
|
|
32
|
+
},
|
|
33
|
+
"files": ["bin", "README.md"],
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"mcp-remote": "^0.17.2"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=18"
|
|
42
|
+
}
|
|
43
|
+
}
|