@sheetpane/mcp 0.0.0-stage → 0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Arpit Arya
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,34 @@
1
- # Temporary Holding Version
1
+ # @sheetpane/mcp
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **A Model Context Protocol server for sheetpane: agents ask, it answers from what ships — never a guess.**
4
+
5
+ ```bash
6
+ npx -y @sheetpane/mcp # stdio; any MCP client
7
+ npx sheetpane-skills install # registers it for Claude Code, Kiro and Codex (with the skills)
8
+ ```
9
+
10
+ | tool | ask | answer, computed from |
11
+ |---|---|---|
12
+ | `describe_api` | `{ "name": "flagging" }` — an element, attribute, property, method, event, `--sp-*` property, slot, part or plugin | its entry in `custom-elements.json` (with its TSDoc) and the record that specifies it |
13
+ | `inspect_workbook` | `{ "path": "data/q3.xlsx" }` | sheets, size, header-row guess, titles, each column's type, blanks and values, merges, and which plugins the file would use — `@sheetpane/import` |
14
+ | `draft_rules` | `{ "path": "data/q3.xlsx", "sheet"?: "Sales" }` | a rules file for `<sheetpane-excel rules-src>`: `required`, `type`, `oneOf` per titled column — **a draft to review** |
15
+ | `check_rules` | `{ "rules": {…} or "…json…", "path"?: "data/q3.xlsx" }` | the grid's own check, each rule in words, and the sheets and titles the workbook lacks |
16
+ | `explain_code` | `{ "code": "SP-1002" }` | meaning, likely cause, fix and link — [docs/ERRORS.md](../../docs/ERRORS.md) |
17
+ | `find_skill` | `{ "task": "validate columns from a JSON file" }` | the skill to read, with its `SKILL.md` path |
18
+
19
+ ## Registering it by hand
20
+
21
+ | tool | file | entry |
22
+ |---|---|---|
23
+ | Claude Code | `.mcp.json` | `{ "mcpServers": { "sheetpane": { "command": "npx", "args": ["-y", "@sheetpane/mcp"] } } }` |
24
+ | Kiro | `.kiro/settings/mcp.json` | the same |
25
+ | Codex | `.codex/config.toml` (trusted projects) | `[mcp_servers.sheetpane]` · `command = "npx"` · `args = ["-y", "@sheetpane/mcp"]` |
26
+
27
+ ## What it is and is not
28
+
29
+ - **Protocol:** MCP revision 2026-07-28 — stateless, `server/discover`, the version in each request's `_meta` — and 2025-11-25 / 2025-06-18 clients through `initialize`. JSON-RPC over stdio, one message per line. **Tools only.**
30
+ - **Read-only:** paths are only read; `.xlsx` and `.csv` only; 256 MB at most; no network, no writes.
31
+ - **Deterministic:** the same input gives the same output (the tests compare against golden files).
32
+ - **Errors** are tool results with `isError: true` and an SP code first — `SP-7001`…`SP-7007`, or the reader's own `SP-10xx`.
33
+
34
+ Spec: [SR-MCP](../../records/0119_MCP.md). MIT.