@ls.graphics/connect 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 +10 -0
- package/README.md +102 -2
- package/dist/ls-graphics-connect.mjs +4784 -0
- package/package.json +51 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
ls.graphics connect - Copyright (c) 2026 ls.graphics. All rights reserved.
|
|
2
|
+
|
|
3
|
+
You may install and run this software for as long as you use it with the ls.graphics
|
|
4
|
+
service (https://ls.graphics, mcp.ls.graphics), under your own ls.graphics account.
|
|
5
|
+
|
|
6
|
+
You may not copy it for others, redistribute it, publish it elsewhere, modify it, reverse
|
|
7
|
+
engineer it, or use it with any other service.
|
|
8
|
+
|
|
9
|
+
The software is provided "as is", without warranty of any kind. It depends on third-party
|
|
10
|
+
open-source packages, each under its own licence.
|
package/README.md
CHANGED
|
@@ -1,3 +1,103 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ls.graphics/connect
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
One command that connects your AI tools to ls.graphics:
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx -y @ls.graphics/connect@latest
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
It finds the AI tools on this computer, asks which to set up (all detected ones are selected), adds the ls.graphics MCP server
|
|
10
|
+
to each, and installs the ls.graphics skill that teaches your agent how to use it. It asks for no key: every tool signs in to
|
|
11
|
+
ls.graphics itself, in the browser, the first time it renders.
|
|
12
|
+
|
|
13
|
+
The server is always the same one address, `https://mcp.ls.graphics/mcp`, under the name `ls-graphics`. The wizard never adds the
|
|
14
|
+
local stdio package.
|
|
15
|
+
|
|
16
|
+
## Options
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
-y, --yes no questions: set up every detected tool and install the skill
|
|
20
|
+
--client LIST only these tools, even if not detected: claude-code, cursor, vscode, codex, windsurf, zed, claude-desktop, claude-desktop-bridge
|
|
21
|
+
--skill LIST where to install the skill: claude, universal (default: both)
|
|
22
|
+
--no-skill do not install the skill
|
|
23
|
+
--helper also offer to render on this computer (not public yet)
|
|
24
|
+
--dry-run show what would change, write nothing
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Without `--yes`, or without a terminal, the wizard is not interactive: it takes the defaults and prints plain lines.
|
|
28
|
+
|
|
29
|
+
## What it changes
|
|
30
|
+
|
|
31
|
+
| Tool | What the wizard does | Docs |
|
|
32
|
+
| --- | --- | --- |
|
|
33
|
+
| Claude Code | `claude mcp add --transport http ls-graphics https://mcp.ls.graphics/mcp --scope user` (reads `$CLAUDE_CONFIG_DIR`). An existing entry is replaced by adding the new one first under a temporary name, so you are never left with none. With only `~/.claude` and no `claude` command, it prints the command instead. | code.claude.com/docs/en/mcp |
|
|
34
|
+
| Codex | With the `codex` command: always `codex mcp add ls-graphics --url …` (and `codex mcp remove` for an old entry); the file is not edited. Without it: only a plain `[mcp_servers.ls-graphics]` table is edited; an inline table or dotted key is refused and the manual config printed. A replace says which settings and sub-tables (env, http_headers, ...) were dropped and where the backup is. A real TOML parser reads the file. | learn.chatgpt.com/docs/extend/mcp |
|
|
35
|
+
| Cursor | `~/.cursor/mcp.json`: `mcpServers` → `{"url": "…"}` | cursor.com/docs/context/mcp |
|
|
36
|
+
| VS Code | user `mcp.json` (`Code/User/mcp.json` in the app-data folder): `servers` → `{"type": "http", "url": "…"}` | code.visualstudio.com/docs/agents/reference/mcp-configuration |
|
|
37
|
+
| Windsurf | `~/.codeium/windsurf/mcp_config.json`: `mcpServers` → `{"serverUrl": "…"}` | docs.windsurf.com/windsurf/cascade/mcp |
|
|
38
|
+
| Zed | `settings.json`: `context_servers` → `{"enabled": true, "url": "…"}` | zed.dev/docs/ai/mcp |
|
|
39
|
+
| Claude Desktop | No file edit. The wizard prints Settings → Connectors → Add custom connector and offers to open the page; a connector added on claude.ai also shows in Desktop. `--client claude-desktop-bridge` instead edits `claude_desktop_config.json` to run `npx -y mcp-remote@<exact version>` (Desktop needs Node.js on its PATH). The Microsoft Store build (`%LOCALAPPDATA%\Packages\Claude_*`) is detected. | modelcontextprotocol.io/docs/develop/connect-local-servers |
|
|
40
|
+
|
|
41
|
+
Config files are edited in place: your other servers, comments and indentation stay. Before a file is changed it is copied to
|
|
42
|
+
`<file>.ls-graphics-backup-<time>`. A file that is not valid JSON is copied the same way and **left untouched**; the wizard says so
|
|
43
|
+
and moves on. Running the wizard again changes nothing. An existing `ls-graphics` entry that started the old local package
|
|
44
|
+
(`@ls.graphics/mcp-local`), or an `ls-graphics-local` entry that did, is replaced or removed, and the wizard says so.
|
|
45
|
+
|
|
46
|
+
Edits are minimal: only the added or removed lines change (a trailing comment on a neighbouring entry stays where it is). A comment
|
|
47
|
+
on the same line as a removed old entry goes with it, and the summary says so. Files are written to a temp file in the same folder
|
|
48
|
+
and renamed over the real file, so a symlink stays a symlink and the file keeps its mode. Backup names carry milliseconds.
|
|
49
|
+
On Windows the wizard never uses a shell: it resolves `claude.cmd`, `codex.cmd`, `npx.cmd` from PATH and runs them through
|
|
50
|
+
`cmd.exe /d /s /c` with checked arguments. The bundle ends with the licenses of the packages inside it.
|
|
51
|
+
|
|
52
|
+
Paths: macOS and Linux use `~`, `~/Library/Application Support` (macOS) or `$XDG_CONFIG_HOME` (Linux); Windows uses
|
|
53
|
+
`%USERPROFILE%` and `%APPDATA%`.
|
|
54
|
+
|
|
55
|
+
## The skill
|
|
56
|
+
|
|
57
|
+
`SKILL.md` and a few `references/` recipes ship inside this package (no download). They say when and how to use the ls.graphics
|
|
58
|
+
MCP; the per-tool rules come from the server itself. Installed to:
|
|
59
|
+
|
|
60
|
+
- `~/.claude/skills/ls-graphics/` for Claude Code
|
|
61
|
+
- `~/.agents/skills/ls-graphics/` for Codex, Cursor and other tools that read it
|
|
62
|
+
|
|
63
|
+
Files carry a hash line. A file you have not touched is updated silently; one you edited is only overwritten when you confirm
|
|
64
|
+
(a backup is kept), and under `--yes` it is skipped.
|
|
65
|
+
|
|
66
|
+
## ChatGPT and claude.ai in the browser
|
|
67
|
+
|
|
68
|
+
They cannot be set up from a terminal. The wizard prints the steps and offers to open the settings page:
|
|
69
|
+
|
|
70
|
+
- ChatGPT: Settings → Apps & Connectors → Advanced settings → Developer mode → Create. URL `https://mcp.ls.graphics/mcp`, authentication OAuth.
|
|
71
|
+
- claude.ai: Settings → Connectors → Add custom connector, URL `https://mcp.ls.graphics/mcp`.
|
|
72
|
+
|
|
73
|
+
## Render on this computer (`--helper`)
|
|
74
|
+
|
|
75
|
+
Off by default: the helper install is not public yet (`SHOW_HELPER_INSTALL=false` on the site). With `--helper` the wizard asks
|
|
76
|
+
"Render on this computer to save cloud time?" and, on yes, runs `npx -y @ls.graphics/mcp-local@<pinned> helper pair`, installs that
|
|
77
|
+
exact version globally and runs `ls-graphics-helper install`. The pinned version equals `mcp/local/package.json` (a test checks it).
|
|
78
|
+
|
|
79
|
+
## Development
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
pnpm --filter @ls.graphics/connect typecheck
|
|
83
|
+
pnpm --filter @ls.graphics/connect test
|
|
84
|
+
pnpm --filter @ls.graphics/connect build # dist/ls-graphics-connect.mjs, one file, no runtime dependencies
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The build fails if the bundle contains `AIza` (a Google/Firebase API key). The Pro line under the banner is plain text in
|
|
88
|
+
`src/banner.ts`; the wizard makes no network call for it.
|
|
89
|
+
|
|
90
|
+
## Publishing (the owner)
|
|
91
|
+
|
|
92
|
+
Releases are made by `.github/workflows/publish-mcp-connect.yml`: bump `version` in `mcp/connect/package.json` and merge to main.
|
|
93
|
+
It publishes with npm trusted publishing (OIDC), like `publish-mcp-local.yml`.
|
|
94
|
+
|
|
95
|
+
**The first publish of a new npm package name needs the owner.** npm only lets you set a trusted publisher on a package that
|
|
96
|
+
exists, and `@ls.graphics/connect` does not exist yet. Do one of these once:
|
|
97
|
+
|
|
98
|
+
1. Publish version 0.1.0 by hand: `pnpm --filter @ls.graphics/connect build`, then in `mcp/connect` run
|
|
99
|
+
`npm publish --access public` (2FA on the `@ls.graphics` scope); then
|
|
100
|
+
2. On npmjs.com, open the package, Settings, Trusted Publisher: GitHub Actions, this repository, workflow file
|
|
101
|
+
`publish-mcp-connect.yml`, no environment. Later versions then publish from the workflow.
|
|
102
|
+
|
|
103
|
+
After that, `npx -y @ls.graphics/connect@latest` works for everyone.
|