@dataklin/mcp 0.0.0-stage → 1.3.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,13 @@
1
+ Copyright (c) 2026 Bharath Reddy Kontham. All rights reserved.
2
+
3
+ dataklin-mcp is free to use with DataKlin. You may install and run it to
4
+ connect AI clients to the DataKlin app on your own computer.
5
+
6
+ Use of DataKlin and of this package is subject to the DataKlin Terms of
7
+ Use at https://dataklin.com/legal/terms.
8
+
9
+ THIS PACKAGE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
10
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
11
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
12
+ AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT
13
+ OF OR IN CONNECTION WITH THE PACKAGE OR ITS USE.
package/README.md CHANGED
@@ -1,3 +1,35 @@
1
- # Temporary Holding Version
1
+ # @dataklin/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
+ The `dataklin-mcp` program: it connects an AI client (Claude Code, Codex, OpenCode, GitHub Copilot and others) to [DataKlin](https://dataklin.com), the desktop database IDE, on the same computer. The AI can then use the database connections you chose to share in DataKlin, with the access level you gave each one. Database passwords never leave DataKlin.
4
+
5
+ ## Use
6
+
7
+ 1. In DataKlin, turn on the MCP server (title bar › MCP) and share the connections the AI may use.
8
+ 2. Add this to your AI client as a stdio MCP server, with your DataKlin's version in place of `1.3.0` (DataKlin › Connect AI Client… shows the exact command):
9
+
10
+ ```sh
11
+ npx -y --registry=https://registry.npmjs.org/ --@dataklin:registry=https://registry.npmjs.org/ @dataklin/mcp@1.3.0
12
+ ```
13
+
14
+ For example, in Claude Code: `claude mcp add --scope user dataklin -- npx -y --registry=https://registry.npmjs.org/ --@dataklin:registry=https://registry.npmjs.org/ @dataklin/mcp@1.3.0`.
15
+
16
+ 3. The first time the client starts it, DataKlin asks "Allow <client> to use DataKlin?". Click Allow. There is no token to copy.
17
+
18
+ The command names npm's registry, as the default and as the `@dataklin` scope's registry (npm reads the scope's first), and an exact version, so a folder's registry settings don't choose where the bridge comes from and no other release is picked up. A folder can still run its own code: npx prefers a copy installed in the folder the AI client starts in, and a folder's `.npmrc` can set the shell npx uses. An AI client started inside a folder you don't trust can run that folder's code in place of this bridge.
19
+
20
+ The bridge works with a DataKlin of the same major version; when DataKlin moves to a new major version, the bridge tells the AI the command for the matching bridge. The unscoped npm package `dataklin-mcp` is not DataKlin's: always use `@dataklin/mcp`.
21
+
22
+ Needs Node.js 20 or later. To check which version you have: `npx -y --registry=https://registry.npmjs.org/ --@dataklin:registry=https://registry.npmjs.org/ @dataklin/mcp@1.3.0 --version`.
23
+
24
+ ## What it does
25
+
26
+ - It reads MCP messages on stdin and writes the answers on stdout; it logs to stderr only.
27
+ - It sends each message to the DataKlin app over a local channel that only your user account can use: a Unix socket in a folder only you can open (macOS, Linux) or a named pipe (Windows). It opens no network port and talks to nothing else. Before it sends a client's token, the program on the other end must prove, on that connection, that it is DataKlin (it answers a fresh random challenge with a value only DataKlin can compute); if it can't, the bridge sends nothing and tells the AI client another program answers on DataKlin's channel. Before it pairs, it also checks that the answer is signed with DataKlin's server key, a file only you can read (`~/.config/dataklin-mcp/server.key`, Windows `%USERPROFILE%\.dataklin-mcp\server.key`) that DataKlin creates; it never stores a token from, or forgets one because of, an answer that isn't.
28
+ - When DataKlin allows a client, the bridge keeps that client's token in `~/.config/dataklin-mcp/pairings.json` (Windows: `%APPDATA%\dataklin-mcp\pairings.json`), readable only by you. If that file can be read by others or isn't yours, the bridge no longer trusts it: it removes the file and the client pairs again. Remove a client in DataKlin › Settings › MCP Server and the bridge asks again next time.
29
+ - When DataKlin isn't running or its MCP server is off, the AI sees no tools and is told to open DataKlin and turn the server on. The bridge tries again on each request.
30
+
31
+ No telemetry, no update check, no dependencies.
32
+
33
+ ## License
34
+
35
+ Free to use with DataKlin. See [LICENSE](LICENSE) and the terms at https://dataklin.com/legal/terms.