@secondlayer/mcp 6.0.0 → 6.0.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.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # @secondlayer/mcp
2
2
 
3
- MCP server for Secondlayer, the hosted indexer for Stacks — Index (decoded
4
- rows), Subgraphs (your schema, hosted), and Streams (raw inputs). Exposes the
5
- golden-path tools only — Index reads, the subgraph lifecycle, subscriptions,
6
- contract discovery/scaffolding, and key self-provisioning. Everything else
7
- (single-record lookups, mempool, stacking, proofs, codegen, credits,
8
- live Streams reads) is available over REST `/v1` + OpenAPI.
3
+ Gives your coding agent direct access to the Stacks data on your own instance —
4
+ Index (decoded rows), Subgraphs (tables you define, served from your instance),
5
+ and Streams (raw inputs). Exposes the golden-path tools only: Index reads, the
6
+ subgraph lifecycle, subscriptions, and contract discovery/scaffolding.
7
+ Everything else (single-record lookups, mempool, stacking, proofs, codegen,
8
+ credits, live Streams reads) is available over REST `/v1` + OpenAPI.
9
9
 
10
10
  ## Install
11
11
 
@@ -15,7 +15,7 @@ bun add @secondlayer/mcp
15
15
 
16
16
  ## Auth
17
17
 
18
- Most reads are public — `index_*` and `contracts_find` work with no key. Subgraph tools need an `SL_API_KEY`; separately, **public** subgraphs are anon-readable over HTTP at `GET /v1/subgraphs/<name>/<table>` (`{ rows, next_cursor, tip }` cursor envelope), while private ones need the owning account's key (anon → 404). `streams_dumps` needs no key — the dumps manifest is public; the tool only needs `SL_STREAMS_DUMPS_URL` configured. Writes (deploy, reindex, delete, subscriptions) and account tools need a key: create one (prefixed `sk-sl_`) from your account console at https://console.secondlayer.tools and set it as `SL_API_KEY`. Read `secondlayer://context` first — it reports auth state and read-auth tiers.
18
+ Most reads are public — `index_*` and `contracts_find` work with no key. Subgraph tools need an `SL_API_KEY`; separately, **public** subgraphs are anon-readable over HTTP at `GET /v1/subgraphs/<name>/<table>` (`{ rows, next_cursor, tip }` cursor envelope), while private ones need the owning account's key (anon → 404). `streams_dumps` needs no key — the dumps manifest is public; the tool only needs `SL_STREAMS_DUMPS_URL` configured. Writes (deploy, reindex, delete, subscriptions) need a key: set `SL_API_KEY` to the `INSTANCE_TOKEN` that `secondlayer init` wrote for your instance. Read `secondlayer://context` first — it reports auth state and read-auth tiers.
19
19
 
20
20
  ## Quick Start — Stdio (IDE)
21
21
 
@@ -48,7 +48,7 @@ bunx -p @secondlayer/mcp secondlayer-mcp-http
48
48
 
49
49
  | Variable | Required | Default | Description |
50
50
  | --- | --- | --- | --- |
51
- | `SL_API_KEY` | Writes only | — | An `sk-sl_` API key from your account console (https://console.secondlayer.tools). Required for write/account tools; reads are public. |
51
+ | `SL_API_KEY` | Writes only | — | The `INSTANCE_TOKEN` from `secondlayer init`. Required for write tools; reads are public. |
52
52
  | `SECONDLAYER_API_URL` | No | `https://api.secondlayer.tools` | Base API URL. Point at a local instance for dev. |
53
53
  | `SECONDLAYER_MCP_PORT` | No | `3100` | HTTP transport port. |
54
54
  | `SECONDLAYER_MCP_SECRET` | No | — | Bearer token for HTTP auth. Disabled if unset. |
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@secondlayer/mcp",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
+ "description": "Give your coding agent direct access to your Stacks data — find contracts, query rows, deploy tables.",
4
5
  "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
@@ -35,10 +36,10 @@
35
36
  "@modelcontextprotocol/sdk": "^1.29.0",
36
37
  "@secondlayer/bundler": "^0.5.1",
37
38
  "@secondlayer/scaffold": "^1.5.4",
38
- "@secondlayer/sdk": "^8.0.0",
39
- "@secondlayer/shared": "^9.0.0",
39
+ "@secondlayer/sdk": "^8.0.1",
40
+ "@secondlayer/shared": "^10.0.0",
40
41
  "@secondlayer/stacks": "^4.0.0",
41
- "@secondlayer/subgraphs": "^4.0.1",
42
+ "@secondlayer/subgraphs": "^4.0.2",
42
43
  "zod": "^4.3.6"
43
44
  },
44
45
  "devDependencies": {