grain-tools 0.10.8 → 0.10.11

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
@@ -105,38 +105,41 @@ named connection profile when you open **Grain: Show Welcome Guide** or
105
105
 
106
106
  ## Quick Start: MCP Agents
107
107
 
108
- ### One command
108
+ ### Install once, then connect every client
109
109
 
110
110
  ```
111
- npx -y grain-tools --stdio
111
+ grain --stdio
112
112
  ```
113
113
 
114
- That is the command every MCP client is given, on every platform. There is no
115
- second setup path.
114
+ This is the normal command for an installed Grain setup on every platform. It
115
+ attaches to the shared local Grain service when that service is available, so
116
+ connections and result tabs stay shared. If the service cannot be reached, the
117
+ bridge reports isolated mode and its sessions do not appear in the editor.
116
118
 
117
119
  1. Run **Grain: Manage Connections** and confirm your active connection.
118
120
  2. Open the Grain settings panel and **enable the MCP server** (`grain.mcpEnabled`).
119
121
  This is required and ships **off** — the daemon serves no MCP surface until you turn it on.
120
122
  3. Keep safe mode enabled unless you explicitly want agents to run mutating SQL.
121
123
  4. Give your client the command:
122
- - **Claude Code**: `claude mcp add grain -- npx -y grain-tools --stdio`
124
+ - **Claude Code**: `claude mcp add grain -- grain --stdio`
123
125
  - **Cursor**: Settings → MCP Servers → Add new MCP server, type `command`,
124
- command `npx -y grain-tools --stdio`
125
- - **VS Code**: open the Extensions view, search `@mcp Grain`, and install it
126
- into your user profile or the current workspace — the gallery entry carries
127
- the command
126
+ command `grain --stdio`
127
+ - **VS Code**: add `grain --stdio` through **MCP: Open User Configuration**;
128
+ VS Code uses a `servers` key rather than `mcpServers`
128
129
  - **Claude Desktop and other file-configured clients**: see
129
130
  [the setup guide](docs/engineering/guides/mcp-client-setup.md), which
130
131
  transcribes the same command into that client's config file
131
132
 
132
- This bridges to the daemon the VS Code extension is already running, so agent
133
- queries and sessions show up in the results grid alongside anything you run from
134
- the editor. It works with every MCP client — including ones that cannot send
133
+ This bridges to the shared Grain service, so agent queries and sessions show up
134
+ in the results grid alongside anything you run from the editor. It works with
135
+ every MCP client — including ones that cannot send
135
136
  custom HTTP headers, such as Claude Desktop — and it needs no credential in your
136
137
  config, because the bridge reads the daemon's access token itself.
137
138
 
138
- `-y` is not decoration: an MCP client starts the server with no terminal
139
- attached, so npm's install prompt would have nobody to answer it.
139
+ To try Grain without installing it, use `npx -y grain-tools --stdio`. This
140
+ requires Node.js and may run in isolated mode when no shared Grain service is
141
+ available, so it is a trial and headless path rather than the recommended
142
+ desktop setup.
140
143
 
141
144
  Enabling `grain.mcpEnabled` in the Grain settings panel is required
142
145
  for this stdio bridge too. Launching the bridge without it produces a clear
@@ -199,7 +202,7 @@ command carries its own connection profiles through the environment:
199
202
 
200
203
  ```bash
201
204
  GRAIN_CONNECTIONS='[{"id":"analytics","name":"Analytics","type":"postgres","host":"localhost","port":5432,"user":"analyst","database":"warehouse","password":"YOUR_PASSWORD"}]' \
202
- npx -y grain-tools --stdio
205
+ grain --stdio --embedded
203
206
  ```
204
207
 
205
208
  The same variable goes in an `env` block for a file-configured client; see