@secondlayer/mcp 10.0.1 → 11.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.
package/README.md CHANGED
@@ -9,6 +9,19 @@ status, archive verify/bootstrap, and hosted credits/quote. Everything else
9
9
  (single-record lookups, mempool, stacking, proofs, live Streams reads) is
10
10
  available over REST `/v1` + OpenAPI. There is no `consume` tool.
11
11
 
12
+ ## Hosted
13
+
14
+ No install: the hosted API serves the read tools over Streamable HTTP, with a
15
+ browser sign-in.
16
+
17
+ ```bash
18
+ claude mcp add --transport http secondlayer https://api.secondlayer.tools/mcp
19
+ ```
20
+
21
+ Clients without OAuth send `Authorization: Bearer <sk-sl_ key>`. Subgraph
22
+ deploys, webhooks, archive, codegen and instance tools are local only. See
23
+ [/docs/mcp](https://secondlayer.tools/docs/mcp#connect).
24
+
12
25
  ## Install
13
26
 
14
27
  ```bash
@@ -55,7 +68,7 @@ bunx -p @secondlayer/mcp secondlayer-mcp-http
55
68
  | `INSTANCE_TOKEN` | Writes on your instance | — | From `secondlayer init`. Required for write tools elsewhere than `api.secondlayer.tools`; reads are public. Not sent to the hosted API. |
56
69
  | `SECONDLAYER_API_KEY` | Hosted API, credits/quote/latest | — | `sk-sl_*`, used automatically when `SECONDLAYER_API_URL` is `https://api.secondlayer.tools`. |
57
70
  | `SECONDLAYER_API_URL` | No | `http://127.0.0.1:3800` | Instance API, or `https://api.secondlayer.tools` for hosted. |
58
- | `SECONDLAYER_BIN` | CLI tools | `secondlayer` on PATH | Path to the CLI binary (`setup`, `bootstrap`, `repair`). |
71
+ | `SECONDLAYER_BIN` | CLI tools | `secondlayer` on PATH | Path to the CLI binary (`bootstrap`, `repair`). |
59
72
  | `SECONDLAYER_CWD` | CLI tools | process cwd | Compose project directory. |
60
73
  | `SECONDLAYER_MCP_PORT` | No | `3100` | HTTP transport port. |
61
74
  | `SECONDLAYER_MCP_SECRET` | No | — | Bearer token for HTTP auth. Disabled if unset. |
@@ -71,12 +84,11 @@ bunx -p @secondlayer/mcp secondlayer-mcp-http
71
84
  | **Contracts** (2) | `contracts_find`, `contracts_get_abi` |
72
85
  | **Instance** (1) | `instance_status` |
73
86
  | **Archive** (5) | `archive_verify`, `archive_bootstrap`, `archive_repair`, `archive_latest`, `archive_quote` |
74
- | **Setup** (1) | `setup` |
75
87
  | **Credits** (1) | `credits_balance` (needs `SECONDLAYER_API_KEY`) |
76
88
  | **Account** (2) | `account_whoami`, `account_create_key` (only when pointed at `https://api.secondlayer.tools`) |
77
89
 
78
90
  Verify after mutating: `subgraphs_operations` for deploy/reindex/backfill/stop,
79
- `webhooks_deliveries` for create/test/replay. Empty index: `setup` or
91
+ `webhooks_deliveries` for create/test/replay. Empty index:
80
92
  `archive_bootstrap`, poll `instance_status` until decoders are ok, then
81
93
  `archive_verify`, then `codegen_index_schema`.
82
94