@tipolink/mcp 1.0.7 → 1.0.8

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.md ADDED
@@ -0,0 +1,36 @@
1
+ # Tipolink Client Bridge Proprietary License
2
+
3
+ Copyright (c) 2026 Tipolink. All rights reserved.
4
+
5
+ This license governs your installation and use of the `@tipolink/mcp` software package ("Software"), including its compiled JavaScript bundles, TypeScript declaration files, CLI, local MCP stdio bridge, local AST extractor, and polyglot language adapters.
6
+
7
+ ## 1. Permitted Use (Free Companion Client License)
8
+
9
+ Subject to your full compliance with the terms of this License, Tipolink grants you a limited, non-exclusive, non-transferable, revocable, royalty-free license to install, execute, and use the Software solely for the purpose of:
10
+
11
+ 1. Indexing your local software repositories and extracting privacy-safe structural metadata; and
12
+ 2. Connecting your local workspaces, editors, CLI workflows, and AI coding agents to the Tipolink Cloud Engine, Tipolink APIs, and the official Tipolink ecosystem (`https://tipolink.co`).
13
+
14
+ No license fee is charged for installing or running `@tipolink/mcp` as a companion client to Tipolink services.
15
+
16
+ ## 2. Strict Prohibitions
17
+
18
+ Except to the minimal extent explicitly permitted by mandatory applicable law notwithstanding this limitation, you **SHALL NOT**, directly or indirectly, and shall not permit or assist any third party to:
19
+
20
+ 1. **Reverse Engineer, Decompile, or Disassemble:** Reverse engineer, decompile, disassemble, unminify, deobfuscate, or otherwise attempt to derive or reconstruct the human-readable source code, internal algorithms, hashing logic, or data structures of the Software.
21
+ 2. **Copy, Modify, or Create Derivative Works:** Copy (other than transient copies necessary for standard package installation and execution), modify, adapt, translate, patch, or create derivative works based upon the Software or any component thereof.
22
+ 3. **Redistribute or Sublicense:** Redistribute, republish, mirror, sell, rent, lease, sublicense, host, or make the Software (in whole or in part) available to third parties as a standalone package, SDK, library, or hosted service, except by referencing the official `@tipolink/mcp` package published by Tipolink on npm.
23
+ 4. **Competitive Extraction:** Extract, scrape, replicate, or reuse the AST extractor logic, structural hashing rules, cache delta synchronization engine, or polyglot language adapters contained in the Software to build, train, benchmark, or operate any competing product, developer tool, MCP server, or code intelligence service.
24
+ 5. **Bypass Licensing or Metering Controls:** Circumvent, disable, or interfere with authentication, workspace ownership enforcement, or credit metering mechanisms of Tipolink Cloud services.
25
+
26
+ ## 3. Ownership & Intellectual Property
27
+
28
+ The Software is licensed, not sold. Tipolink retains all right, title, and interest in and to the Software, including all intellectual property rights, copyrights, trade secrets, and proprietary algorithms embodied therein. No rights are granted by implication, estoppel, or otherwise except as expressly stated in Section 1.
29
+
30
+ ## 4. Disclaimer of Warranty & Limitation of Liability
31
+
32
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL TIPOLINK OR ITS CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33
+
34
+ ## 5. Termination
35
+
36
+ This License terminates automatically without notice if you breach any restriction in Section 2. Upon termination, you must immediately cease all use of the Software and delete all copies in your possession or control.
package/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # `@tipolink/mcp`
2
2
 
3
- The official CLI and Model Context Protocol (MCP) connector for **[Tipolink Cloud](https://tipolink.co)**.
3
+ The official CLI and Model Context Protocol (MCP) Client Bridge for **[Tipolink Cloud](https://tipolink.co)**.
4
4
 
5
5
  Give AI coding agents an accurate dependency map of your multi-language repositories (TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, C#, PHP, Ruby, and C/C++), help them reuse existing utilities before writing duplicates, and verify edits automatically — with **Zero Source-Code Upload** (only minimal structural metadata leaves your machine).
6
6
 
7
+ - **Client Bridge Version:** `1.0.8`
8
+ - **AST Manifest Schema:** `1.0.5` (`CACHE_SCHEMA_VERSION`)
7
9
  - **Website & Console:** [https://tipolink.co](https://tipolink.co)
8
10
  - **Quickstart Guide:** [https://tipolink.co/docs/quickstart.md](https://tipolink.co/docs/quickstart.md)
9
11
  - **AI Agent Setup:** [https://tipolink.co/docs/agent-setup.md](https://tipolink.co/docs/agent-setup.md)
@@ -15,10 +17,10 @@ Give AI coding agents an accurate dependency map of your multi-language reposito
15
17
  Run the idempotent initializer in your repository root:
16
18
 
17
19
  ```bash
18
- npx @tipolink/mcp init
20
+ npx @tipolink/mcp@latest init
19
21
  ```
20
22
 
21
- This writes ready-to-use MCP configs, rules, and post-edit guard hooks for **Antigravity**, **Claude Code**, **Cursor**, **Windsurf**, and **OpenAI Codex**.
23
+ This writes ready-to-use MCP configs, rules, skills, and post-edit guard hooks for **Antigravity**, **Claude Code**, **Cursor**, **Windsurf**, and **OpenAI Codex** (pinned to `@tipolink/mcp@latest` so local clients automatically pick up new AST schemas).
22
24
 
23
25
  ### 2. Export your API key
24
26
 
@@ -35,17 +37,17 @@ $env:TIPOLINK_API_KEY="sk_live_your_key_here"
35
37
  ### 3. Run Cloud checks
36
38
 
37
39
  ```bash
38
- # Impact Map before editing shared files (1 credit)
39
- npx @tipolink/mcp map src/index.ts
40
+ # Impact Map before editing shared files (5 credits)
41
+ npx @tipolink/mcp@latest map src/index.ts
40
42
 
41
43
  # Helper Discovery before writing new utilities (1 credit)
42
- npx @tipolink/mcp find-helper "format currency"
44
+ npx @tipolink/mcp@latest find-helper "format currency"
43
45
 
44
- # Codebase Guard after edits (2 credits)
45
- npx @tipolink/mcp guard --staged
46
+ # Codebase Guard after edits (2 credits incremental / 5 credits cold index)
47
+ npx @tipolink/mcp@latest guard --staged
46
48
 
47
49
  # Refresh the cloud metadata graph after major structural changes (5 credits)
48
- npx @tipolink/mcp sync
50
+ npx @tipolink/mcp@latest sync
49
51
  ```
50
52
 
51
53
  ## Manual MCP Configuration
@@ -57,7 +59,7 @@ For any MCP-compatible client:
57
59
  "mcpServers": {
58
60
  "tipolink": {
59
61
  "command": "npx",
60
- "args": ["@tipolink/mcp", "mcp"],
62
+ "args": ["@tipolink/mcp@latest", "mcp"],
61
63
  "env": {
62
64
  "TIPOLINK_API_KEY": "sk_live_your_key_here"
63
65
  }
@@ -70,15 +72,49 @@ For any MCP-compatible client:
70
72
 
71
73
  | Command | Description |
72
74
  | --- | --- |
73
- | `npx @tipolink/mcp init` | Write agent MCP configs, rules, and hooks into the repository |
74
- | `npx @tipolink/mcp map <file...>` | Compute downstream Impact Map for target files |
75
- | `npx @tipolink/mcp find-helper "<query>"` | Search exported helpers and get canonical import statements |
76
- | `npx @tipolink/mcp guard [files...]` | Check staged, modified, or specified files for broken imports, cycles, and duplicates |
77
- | `npx @tipolink/mcp workspace [list\|bind]` | List indexed workspaces or bind the active default workspace (0 credits) |
78
- | `npx @tipolink/mcp sync` | Refresh the workspace structural metadata graph in Tipolink Cloud |
79
- | `npx @tipolink/mcp mcp` | Start the local stdio MCP server (`tipolink_map`, `tipolink_find_helper`, `tipolink_guard`, `tipolink_workspace`) |
80
- | `npx @tipolink/mcp --help` | Print all commands and flags |
75
+ | `npx @tipolink/mcp@latest init` | Write agent MCP configs, rules, skills, and hooks into the repository |
76
+ | `npx @tipolink/mcp@latest map <file...>` | Compute downstream Impact Map for target files |
77
+ | `npx @tipolink/mcp@latest find-helper "<query>"` | Search exported helpers and get canonical import statements |
78
+ | `npx @tipolink/mcp@latest guard [files...]` | Check staged, modified, or specified files for broken imports, cycles, and duplicates |
79
+ | `npx @tipolink/mcp@latest workspace [list\|bind]` | List indexed workspaces or bind the active default workspace (0 credits) |
80
+ | `npx @tipolink/mcp@latest sync` | Refresh the workspace structural metadata graph in Tipolink Cloud |
81
+ | `npx @tipolink/mcp@latest mcp` | Start the local stdio MCP server (`tipolink_map`, `tipolink_find_helper`, `tipolink_guard`, `tipolink_workspace`) |
82
+ | `npx @tipolink/mcp@latest --version` | Print installed Client Bridge version (`1.0.8`) |
83
+ | `npx @tipolink/mcp@latest --help` | Print all commands and flags |
84
+
85
+ ## Version & Schema Information
86
+
87
+ | Component | Current Version | Notes |
88
+ | --- | --- | --- |
89
+ | **Client Bridge (`@tipolink/mcp`)** | `1.0.8` | CLI, local stdio MCP server, AST manifest extractor, and polyglot adapters |
90
+ | **AST & Cache Schema (`CACHE_SCHEMA_VERSION`)** | `1.0.5` | Structural manifest schema in `.tipolink/cache.json` and `.tipolink/cloud-sync.json` (cache envelope `version: 1`) |
91
+ | **Architecture Engine (`@tipolink/engine`)** | `1.0.4` | Multi-language AST/polyglot index, Tarjan SCC cycle analyzer, and clone guard |
92
+ | **Tipolink Cloud API (`@tipolink/api`)** | `1.0.0` | Cloud REST API (OpenAPI `3.1.0`), SQLite vault, and credit metering |
93
+ | **Remote Cloud MCP (`tipolink-cloud-mcp`)** | `1.0.1` | Streamable HTTP / SSE MCP endpoint (`/v1/mcp`, `/v1/mcp/sse`) |
94
+ | **Web Console & Portal (`@tipolink/web`)** | `1.0.0` | Dashboard, authentication portal, Playground, and `/.well-known/mcp.json` |
95
+ | **Antigravity Plugin (`tipolink`)** | `1.0.0` | Official plugin bundle (`plugins/antigravity`) |
96
+ | **MCP Protocol Versions** | `2024-11-05` / `2025-03-26` | Supported over local `stdio` and Cloud HTTP/SSE transports |
97
+ | **Runtime & Compiler** | Node.js `>=20.0.0`, TypeScript `^5.7.2` | Cloud API server runs on Node.js `22+` |
98
+ | **Language Support** | `11` languages | TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, C#, PHP, Ruby, and C/C++ |
99
+
100
+ ### Auto-Resync & Schema Compatibility (`1.0.5`)
101
+
102
+ - **Automatic Local Re-extraction:** Whenever `@tipolink/mcp` upgrades to a newer `CACHE_SCHEMA_VERSION`, any cached manifests in `.tipolink/cache.json` or `.tipolink/cloud-sync.json` with an older schema version are automatically invalidated and re-extracted locally on the next run.
103
+ - **Automatic Cloud Delta Sync:** Each local `map`, `find-helper`, `guard`, or `sync` call compares `schemaVersion` alongside content and structural fingerprints, automatically pushing updated schema `1.0.5` manifests to Tipolink Cloud.
104
+ - **Remote Stale-Schema Detection:** When calling Tipolink Cloud directly over `/v1/mcp`, workspaces still indexed under an older schema (`< 1.0.5`) return `telemetry.schemaOutdated: true` (`workspaceSchemaVersion`, `expectedSchemaVersion: "1.0.5"`) plus a warning banner prompting one local `@tipolink/mcp@latest` call to trigger auto-resync.
105
+
106
+ ### Highlights in Client Bridge `1.0.8`
107
+
108
+ - **`@latest` Auto-Updating MCP & Hook Configs:** `tipolink init` now emits `@tipolink/mcp@latest` in generated editor MCP entries and `PostToolUse` guard hooks so `npx` does not remain pinned to outdated local caches.
109
+ - **Type-Stripped Structural Hashing (Generic `0-arg` Factory Clones):** Strips pure TypeScript type syntax (`TypeNode`, `TypeParameterDeclaration`, `as`, `satisfies`, non-null assertions `!`) during AST hashing and refines complex `0-arg` clone thresholds (`>= 3` statements and `>= 20` AST nodes) while keeping domain return-type compatibility guards intact.
110
+ - **Read-Only `DuplicateHelperIssue` JSON Aliases:** `tipolink_guard` includes `duplicateFile`, `duplicateLine`, and `duplicateEndLine` aliases matching `targetFile`, `line`, and `endLine`.
111
+ - **Hardened `SKILL.md` Rules:** Generated and bundled skills enforce the Pre-PR Gate First rule and document the explicit `tipolink_guard` JSON schema contract for single-call `execute` mode.
112
+ - **Full Production Minification & Proprietary License:** Published `dist/` bundles are fully minified (`sourcemap: false`) under the proprietary license in [LICENSE.md](./LICENSE.md).
81
113
 
82
114
  ## Privacy
83
115
 
84
116
  Raw source files, function bodies, comments, string literals, and environment secrets stay strictly on your local machine. See [Privacy & Architecture](https://tipolink.co/docs/privacy.md) for details.
117
+
118
+ ## License
119
+
120
+ `SEE LICENSE IN LICENSE.md` — Governed by the **Tipolink Client Bridge Proprietary License** ([LICENSE.md](./LICENSE.md)). Free to install and run for connecting local workspaces to Tipolink Cloud; reverse engineering, decompiling, modifying, redistributing, or extracting AST/polyglot logic for competing products is strictly prohibited.