# Tipolink Cloud: Full Documentation > Complete documentation for Tipolink Cloud in a single file. Index: https://tipolink.co/llms.txt # Quickstart Connect a multi-language repository (TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, C#, PHP, Ruby, or C/C++) to Tipolink Cloud over MCP in four short steps. Your raw source code stays on your machine; only minimal structural metadata is sent to the cloud. ## 1. Create your account & API key 1. Sign up at [the Tipolink sign-up page](https://tipolink.co/login). Every new account receives **150 free trial credits** right away. 2. Open the [Console](https://tipolink.co/console), go to **API Keys**, enter a descriptive label, and click **Create New Key**. 3. Copy the full `sk_live_` secret from the one-time confirmation dialog—for your security, keys remain permanently masked afterward. ## 2. Install the global Tipolink Skill Install the universal Tipolink skill once into your user profile: ```bash npx @tipolink/mcp init ``` This command is idempotent and installs only the global skill file at `~/.agents/skills/tipolink/SKILL.md` (`C:\Users\\.agents\skills\tipolink\SKILL.md` on Windows) without modifying your project repository. ## 3. Configure Tipolink in your coding app's MCP JSON Because coding apps (Antigravity, Cursor, Claude Code, Windsurf, Codex, OpenCode, Cline, Roo) launch MCP servers directly from their host process rather than from an interactive terminal tab, configure your API key inside your coding app's native **MCP JSON file** instead of temporary shell `export` commands. ### Tipolink MCP Server (`@tipolink/mcp`) Add the `"tipolink"` server entry to your coding app's MCP JSON file, then **personally paste** your `sk_live_...` key into `TIPOLINK_API_KEY`: ```json { "mcpServers": { "tipolink": { "command": "npx", "args": ["-y", "@tipolink/mcp@latest", "mcp"], "env": { "TIPOLINK_API_KEY": "sk_live_PASTE_YOUR_KEY_HERE" } } } } ``` > **Security best practice:** Never paste a live `sk_live_...` key into an AI chat prompt or commit MCP JSON files containing real keys to Git. Let your AI agent generate the JSON schema with the placeholder, then paste your real key directly into the file yourself and reload MCP in your editor. ## 4. Bind, sync, and run your first MCP checks Reload MCP servers in your coding app, then ask your AI agent to run: 1. `tipolink_workspace({ action: "bind" })` — Bind the active repository (**0 credits / free**). 2. `tipolink_sync({})` — Sync local structural metadata to Tipolink Cloud (**0 credits** no-op / **1 credit** incremental `<10` files / **5 credits** cold index, `>=10` files, or `force: true`). 3. `tipolink_map({ target: "src/index.ts" })` — Map direct and transitive callers before editing (**5 credits**). 4. `tipolink_find_helper({ query: "format currency", limit: 30 })` — Find existing helpers before writing duplicates (**1 credit**, `score >= 40`, explicit `limit >= 30`). 5. `tipolink_guard({})` — Verify imports, dependency cycles, and duplicate helpers after edits (**2 credits** incremental). ## Next steps - Let your AI agent scaffold the MCP JSON schema automatically: [AI Agent Setup](https://tipolink.co/docs/agent-setup.md) - Learn the MCP-first Cloud workflow: [Cloud Workflow](https://tipolink.co/docs/workflow.md) - See MCP JSON examples for every coding app: [Editor & Agent Configs](https://tipolink.co/docs/integrations.md) - Understand credit costs and packs: [Credits & Billing](https://tipolink.co/docs/credits.md) --- # AI Agent Setup This guide is written for AI coding agents: Antigravity, Cursor, Claude Code, OpenAI Codex, Windsurf, OpenCode, Cline, Roo, or any MCP-compatible agent. Follow the steps in order and strictly uphold the API key security boundary in Step 3. Tipolink Cloud gives you an accurate dependency map of a multi-language repository (TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, C#, PHP, Ruby, and C/C++), helps you reuse existing helpers instead of writing duplicates, and verifies your edits before you finish. Raw source code is never uploaded (*Zero Source-Code Upload*); the local `@tipolink/mcp` bridge extracts and transmits only minimal structural metadata. ## Step 1: Inspect the workspace - Look for project manifests in the repository root, such as `package.json`, `tsconfig.json` / `jsconfig.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `pom.xml` / `build.gradle`, `*.csproj`, or `composer.json`. - Confirm the project contains supported source files (`.ts`, `.tsx`, `.mts`, `.cts`, `.js`, `.jsx`, `.mjs`, `.cjs`, `.py`, `.go`, `.rs`, `.java`, `.kt`, `.kts`, `.cs`, `.php`, `.rb`, `.c`, `.cc`, `.cpp`, `.cxx`, `.h`, `.hh`, `.hpp`, `.hxx`). - If the project has none of these supported language sources, stop and tell the user which languages Tipolink currently supports. ## Step 2: Install the global Tipolink Skill Run the Tipolink initializer once: ```bash npx -y @tipolink/mcp@latest init ``` This command is idempotent and installs only the global skill file at `~/.agents/skills/tipolink/SKILL.md` (`C:\Users\\.agents\skills\tipolink\SKILL.md` on Windows) without modifying your project repository. ## Step 3: Create the MCP JSON schema for your host coding app (placeholder key only) Tipolink runs over **MCP** (not ephemeral terminal shell variables). Terminal `export` or `$env:` commands execute in short-lived sub-shells and are **not** inherited by the IDE or harness process that launches MCP servers. 1. Identify the host coding app / harness where you are running and locate its native MCP JSON configuration file according to that harness's rules (for example, your app's user-level MCP config JSON such as Antigravity `mcp_config.json`, Cursor `~/.cursor/mcp.json`, Claude Code `~/.claude.json`, Windsurf `~/.codeium/windsurf/mcp_config.json`, OpenCode `opencode.json`, or the harness's documented MCP JSON path). 2. Create or non-destructively merge the Tipolink MCP server entry into that JSON file using **placeholder credentials only** (`sk_live_PASTE_YOUR_KEY_HERE`). Match the exact JSON schema required by your host harness: ### Tipolink MCP Server (`@tipolink/mcp` — supports automatic local indexing & `tipolink_sync`) ```json { "mcpServers": { "tipolink": { "command": "npx", "args": ["-y", "@tipolink/mcp@latest", "mcp"], "env": { "TIPOLINK_API_KEY": "sk_live_PASTE_YOUR_KEY_HERE" } } } } ``` 3. **Security Handoff — Stop and let the user insert their own API key:** - Do **not** ask the user to paste their live `sk_live_...` secret into the AI chat, and do **not** run shell `export` commands for `TIPOLINK_API_KEY`. - Tell the user the exact path of the MCP JSON file you created or updated, and ask **the user** to: 1. Sign in or create an account at https://tipolink.co/login (new accounts receive **150 free trial credits**). 2. Open https://tipolink.co/console, go to **API Keys**, create a labeled key, and copy the one-time `sk_live_...` secret. 3. Open that MCP JSON file directly in their editor, replace `sk_live_PASTE_YOUR_KEY_HERE` with their real `sk_live_...` key inside `env.TIPOLINK_API_KEY`, save the file, and reload/reconnect MCP in their coding app. ## Step 4: Verify MCP connection & sync workspace Once the user confirms they saved their API key in the MCP JSON file and reloaded MCP: 1. Call `tipolink_workspace({ action: "status" })` (**0 credits / free**) to confirm MCP authentication succeeds and inspect indexed workspaces. 2. Call `tipolink_workspace({ action: "bind", workspaceId: "" })` (**0 credits / free**) to lock the current repository as the active workspace. 3. If the repository is not yet indexed, or if a response flags an outdated schema, call `tipolink_sync({})` (**0 credits** no-op / **1 credit** incremental `<10` files / **5 credits** cold index, `>=10` files, or `force: true`) directly via MCP to sync fresh structural metadata to Tipolink Cloud—no CLI invocation required. ## Step 5: Use the Cloud MCP workflow while you code All five Tipolink operations run natively over MCP: 1. **Workspace Status & Binding (0 credits / free):** Call `tipolink_workspace` (`action: "list"`, `"status"`, or `"bind"`) when switching repositories. 2. **Workspace Sync (0 no-op / 1 incremental / 5 full):** Call `tipolink_sync({})` when onboarding a repository or upgrading an outdated schema (pass `{ force: true }` for a full disk re-extract). Routine edits and deletions are already auto-synced via `manifestDelta` + `activeFiles` whenever you call `tipolink_map`, `tipolink_find_helper`, or `tipolink_guard`. 3. **Impact Map before editing shared files (5 credits):** Call `tipolink_map` on target file(s) before changing exports, signatures, or shared modules. 4. **Helper Discovery before writing new utilities (1 credit):** Call `tipolink_find_helper` and reuse the canonical import statement it returns. 5. **Codebase Guard after editing (2 credits incremental / 5 cold):** Call `tipolink_guard` to verify zero broken imports, zero dependency cycles, and zero duplicated helpers before completing your task. ## Rules for agents - Never ask the user to send a live `sk_live_...` key in chat; always write a placeholder into the harness MCP JSON file and let the user paste their key locally. - Never print, log, or commit any real API key or MCP file containing a real key to version control. - Keep the user's project repository untouched during setup; `npx -y @tipolink/mcp@latest init` installs only the global skill at `~/.agents/skills/tipolink/SKILL.md`. - Never upload raw source files; only the local `@tipolink/mcp` bridge sends structural metadata. - If an MCP tool returns authentication failure (401) or exhausted credits (402), stop and tell the user. See https://tipolink.co/docs/troubleshooting.md for fixes. --- # Cloud Workflow Tipolink Cloud runs natively over **MCP** around every code change. Once configured in your coding app's MCP JSON file, your AI agent executes the complete lifecycle—workspace alignment, resync, impact mapping, helper discovery, and post-edit guard—without switching to terminal CLI commands. ## 0. Align & Sync Workspace Before inspecting or editing a repository, verify your active workspace binding: - **MCP tool:** `tipolink_workspace({ action: "status" })` or `tipolink_workspace({ action: "bind", workspaceId: "" })` - **Cost:** 0 credits (free) When onboarding a repository, after large refactors/branch switches, or when a response reports an outdated schema, sync directly via MCP (note: routine edits and deletions are already auto-synced by `tipolink_map`, `tipolink_find_helper`, and `tipolink_guard`): - **MCP tool:** `tipolink_sync({})` (or `tipolink_sync({ force: true })` for full disk re-extraction) - **Cost:** 0 credits (no-op) / 1 credit (incremental `<10` files) / 5 credits (cold index, `>=10` files, or `force: true`) - **CLI companion:** `npx -y @tipolink/mcp@latest sync [--force]` ## 1. Impact Map before you edit Before changing a shared file, exported function, or type contract, find out which files depend on it. - **MCP tool:** `tipolink_map({ target: "src/billing/checkout.ts" })` - **Cost:** 5 credits - **CLI companion:** `npx -y @tipolink/mcp@latest map src/billing/checkout.ts` The result lists direct callers, transitive callers (including re-exports through barrel `index.ts` files), and frequently co-imported sibling modules so every affected call site can be updated in one pass. ## 2. Helper Discovery before you write a utility Before writing a new helper, search the workspace for an existing export. - **MCP tool:** `tipolink_find_helper({ query: "format currency with tax", limit: 30, fromFile: "src/billing/invoice.ts" })` - **Cost:** 1 credit - **CLI companion:** `npx -y @tipolink/mcp@latest find-helper "format currency with tax" --limit 30` The result lists matching exported functions, types, and constants together with the exact relative import statement so you can reuse the canonical helper instead of duplicating it. ## 3. Codebase Guard after you edit After editing, verify your changes before finishing or merging. - **MCP tool:** `tipolink_guard({ modifiedFiles: ["src/billing/checkout.ts"] })` (or `{}` for the entire workspace) - **Cost:** 2 credits incremental (5 credits on a cold/first full index) - **CLI companion:** `npx -y @tipolink/mcp@latest guard --staged` Guard checks three critical invariants: - **Import integrity:** every relative path and `tsconfig` / language path alias resolves cleanly. - **Dependency health:** changes introduce zero static runtime circular import loops. - **Deduplication:** changes do not duplicate existing helper implementations. ## Credit summary | Operation | MCP Tool | Cost | | --- | --- | --- | | Workspace Status / Bind | `tipolink_workspace` | 0 credits (free) | | Helper Discovery (Symbol Search) | `tipolink_find_helper` | 1 credit | | Codebase Guard | `tipolink_guard` | 2 credits (5 cold index) | | Impact Map (Dependency Map) | `tipolink_map` | 5 credits | | Workspace Sync | `tipolink_sync` | 0 no-op / 1 incremental / 5 full | --- # Privacy & Architecture Tipolink is built for repositories where source code privacy is mandatory. With **Zero Source-Code Upload**, your proprietary code never leaves your machine. ## How it works | Layer | Where it runs | What it does | | --- | --- | --- | | Local Cloud Connector (`@tipolink/mcp`) | Your workstation or CI runner | Indexes your project structure locally on your machine (*Zero Source-Code Upload*) and sends only minimal structural metadata when files change. | | Tipolink Cloud Engine | Tipolink servers, over HTTPS | Authenticates `TIPOLINK_API_KEY`, meters credits, and runs Impact Map, Helper Discovery, and Codebase Guard checks. | ## What leaves your machine The connector sends only minimal structural metadata needed to map module relationships: - module import and export links between files, - exported symbol names and type signatures, - opaque, non-reversible metadata used by Codebase Guard to detect duplicated utilities. ## What never leaves your machine - raw source files and function implementations, - comments, prompts, and string literal values, - environment variables, credentials, and application secrets. ## Authentication and metering Every request carries your `TIPOLINK_API_KEY` as a bearer token over HTTPS. Credits are metered transparently for each Cloud operation, and your balance and full usage ledger are always visible in the Console. ## Why a thin local connector Processing files locally keeps your proprietary implementation private on your workstation while Tipolink Cloud delivers fast impact mapping, helper reuse, and automated guardrails across your repositories. --- # Credits & Billing Tipolink Cloud is metered with prepaid credits. New accounts start with 150 free trial credits, and you can top up at any time in the Console under **Credits & Billing**. ## Operation costs | Operation | Cost | When it runs | | --- | --- | --- | | Dependency Map | 5 credits | Before you change shared files or exported signatures | | Helper Discovery (Symbol Search) | 1 credit | Before you write a new utility | | Architecture Guard | 2 credits (5 on a cold/full index) | After edits, before you merge | | Workspace Graph Sync | 0 credits (no-op) · 1 credit (incremental `<10` files) · 5 credits (`force: true`, cold index, or `>=10` files) | Initial indexing, incremental delta/orphan sync, or full schema resync | ## Credit Packs | Pack | Price | Credits | Tool Calls & Bonus | | --- | --- | --- | --- | | Starter | $5 | 1,250 credits | **250–1,250 MCP tool calls** (250 credits per $1) — up to 250 dependency maps, 625 incremental guards, or 1,250 helper searches & incremental syncs | | Pro (recommended) | $20 | 6,500 credits | **1,300–6,500 MCP tool calls** (+1,500 Bonus Credits) — up to 1,300 dependency maps, 3,250 incremental guards, or 6,500 helper searches & incremental syncs | | Scale | $50 | 20,000 credits | **4,000–20,000 MCP tool calls** (+7,500 Bonus Credits) — up to 4,000 dependency maps, 10,000 incremental guards, or 20,000 helper searches & incremental syncs | Each one-time prepaid pack never expires. Buying a pack never rotates or invalidates your API keys. ## When credits run out When your balance reaches zero, Cloud operations return `402 Payment Required`. Open the [Console](https://tipolink.co/console), choose **Credits & Billing**, and buy a pack. Your existing API keys work again immediately. ## Track your usage The Console shows your current balance, a recent activity list and a full credit ledger with the operation, workspace and balance after each entry. --- # Editor & Agent Configs Running `npx @tipolink/mcp init` is idempotent and installs only the global skill file at `~/.agents/skills/tipolink/SKILL.md` (`C:\Users\\.agents\skills\tipolink\SKILL.md` on Windows) without modifying your project repository. Instead, configure Tipolink once inside your coding app's native **MCP JSON file** and paste your `sk_live_...` API key directly into that JSON file. ## Global Skill Location (`init`) ```bash npx -y @tipolink/mcp@latest init ``` - **Windows:** `C:\Users\\.agents\skills\tipolink\SKILL.md` - **macOS / Linux:** `~/.agents/skills/tipolink/SKILL.md` Re-running `init` updates only that single global skill file and leaves every repository working tree untouched. ## MCP JSON Schema ### Local Stdio MCP Bridge (`tipolink`) Use this schema for local repositories so `@tipolink/mcp@latest` automatically extracts local structural deltas and exposes all 5 MCP tools including `tipolink_sync`: ```json { "mcpServers": { "tipolink": { "command": "npx", "args": ["-y", "@tipolink/mcp@latest", "mcp"], "env": { "TIPOLINK_API_KEY": "sk_live_PASTE_YOUR_KEY_HERE" } } } } ``` > **Security workflow:** When using an AI agent to set up Tipolink, let the agent create or merge the MCP JSON schema with `sk_live_PASTE_YOUR_KEY_HERE`. Then open the JSON file yourself, replace the placeholder with your real `sk_live_...` key from [Console](https://tipolink.co/console), save, and reload MCP. Never expose live keys in AI chat or shell history. ## Where Coding Apps Store MCP JSON Configs Follow your coding app's documented MCP configuration file (user-level config keeps secrets outside Git repositories): - **Antigravity:** User MCP configuration JSON (`mcp_config.json`) via Plugins / MCP Manager. - **Cursor:** `~/.cursor/mcp.json` (user global MCP settings). - **Claude Code:** `~/.claude.json` (user-scope MCP configuration) or `claude mcp add`. - **Windsurf:** `~/.codeium/windsurf/mcp_config.json`. - **OpenCode / Codex / Cline / Roo / Custom Harnesses:** Add `"tipolink"` (`npx -y @tipolink/mcp@latest mcp`) using that app's native MCP JSON format. ## MCP Tools Reference The local `@tipolink/mcp` stdio server exposes **5 MCP tools**: | MCP Tool | Cost | Purpose | | --- | --- | --- | | `tipolink_workspace` | 0 credits (free) | List indexed workspaces, check active workspace status, or bind a local directory / workspace ID | | `tipolink_sync` | 0 / 1 / 5 credits | Incremental metadata sync (`force: false` default: 0 no-op, 1 for `<10` changes, 5 cold/`>=10` or `force: true` full replace) | | `tipolink_map` | 5 credits | Compute downstream Impact Map (direct and transitive callers, outbound links, co-imports) | | `tipolink_find_helper` | 1 credit | Search exported workspace symbols and return canonical relative import statements | | `tipolink_guard` | 2 credits (5 cold) | Verify imports, circular dependencies, and duplicate helpers on modified or full workspace files | ## CLI Command Reference (Optional / CI) Every MCP capability also has a companion CLI command for scripts or CI pipelines: | Command | Purpose | | --- | --- | | `npx -y @tipolink/mcp@latest init` | Install or update global `~/.agents/skills/tipolink/SKILL.md` (zero repo files written) | | `npx -y @tipolink/mcp@latest mcp` | Start the local stdio MCP server launched by your coding app's MCP JSON | | `npx -y @tipolink/mcp@latest workspace [list\|status\|bind]` | List or bind the active workspace (0 credits) | | `npx -y @tipolink/mcp@latest sync [--force]` | Sync metadata graph to Tipolink Cloud (0 no-op / 1 incremental / 5 full `--force` or cold index) | | `npx -y @tipolink/mcp@latest map ` | Compute Impact Map for target files (5 credits) | | `npx -y @tipolink/mcp@latest find-helper "" --limit 30` | Search existing helpers (`score >= 40`, `--limit` required `>= 30`) and get canonical imports (1 credit) | | `npx -y @tipolink/mcp@latest guard [files...]` | Verify staged, modified, or explicitly listed files (2 credits incremental) | | `npx -y @tipolink/mcp@latest --version` | Print installed `@tipolink/mcp` version | | `npx -y @tipolink/mcp@latest --help` | Print all commands and flags | | Option | Applies to | Purpose | | --- | --- | --- | | `--dir ` | cloud commands | Select the workspace folder | | `--api-url ` | cloud commands | Override the Cloud API base URL | | `--api-key ` | cloud commands | Pass an API key explicitly in CI scripts | | `--json` | `init`, `workspace`, `map`, `find-helper`, `guard`, `sync` | Print machine-readable JSON output | | `--depth ` | `map` | Number of inbound caller levels to follow | | `--limit ` | `find-helper` | Required maximum result count (`integer >= 30`, no implicit default) | | `--kind ` | `find-helper` | Filter matches by symbol kind | | `--from ` | `find-helper` | Resolve the import path relative to a file | | `--staged` | `guard` | Inspect staged or modified sources | | `--hook-json` | `guard` | Read editor hook payload from stdin | Subcommand names are case sensitive and there is no `serve` alias: the MCP server always starts with `npx -y @tipolink/mcp@latest mcp`. --- # Troubleshooting Common MCP setup, authentication, and sync problems—and how to fix them cleanly. ## Quick reference | Symptom | Cause | Fix | | --- | --- | --- | | `TIPOLINK_API_KEY is not set` or placeholder rejected | The MCP JSON entry is missing your key, still contains `sk_live_PASTE_YOUR_KEY_HERE`, or was only set in a temporary terminal shell. | Paste your real `sk_live_...` key directly into `env.TIPOLINK_API_KEY` inside your coding app's MCP JSON, save the file, and reload MCP. Do not rely on shell `export` / `$env:` commands. | | `401 Unauthorized` | The key in your MCP JSON is invalid or revoked. | Open the [Console](https://tipolink.co/console), go to **API Keys**, create a new `sk_live_` key, paste it directly into your MCP JSON file, and reload MCP. | | `402 Payment Required` | Your credit balance has reached zero. | Open the [Console](https://tipolink.co/console), choose **Credits & Billing**, and purchase a Credit Pack. Existing keys resume working immediately. | | `429 Too Many Requests` | Too many requests in a short window. | Wait a few seconds and retry. | | Stale schema warning or outdated files in Cloud | Local repository changed outside the bridge or Cloud uses an older schema. | Call `tipolink_sync({})` (or `tipolink_sync({ force: true })` for a full disk re-extract; 0 no-op / 1 incremental / 5 full) directly via MCP to refresh Cloud metadata with the latest schema. | | Path aliases such as `@/*` do not resolve | `tsconfig.json` is missing or has no `paths` mapping. | Keep `tsconfig.json` in the workspace root or package folder, then call `tipolink_sync({})`. | | `init` reports `Unchanged` | `~/.agents/skills/tipolink/SKILL.md` is already up to date. | Expected behavior. Running `npx -y @tipolink/mcp@latest init` is idempotent and never modifies repository files. | | `Unknown command` | CLI subcommand name is misspelled. | Use one of `init`, `workspace`, `map`, `find-helper`, `guard`, `sync`, or `mcp`. | ## Verify your MCP JSON configuration Check your coding app's MCP JSON config file and verify: 1. Verify `"tipolink"` uses `"args": ["-y", "@tipolink/mcp@latest", "mcp"]` and `"env"."TIPOLINK_API_KEY"` starts with `sk_live_` (not a placeholder like `sk_live_PASTE_YOUR_KEY_HERE` or `${TIPOLINK_API_KEY}`). 2. After saving the MCP JSON file, **reload or restart MCP servers** in your coding app, then test with `tipolink_workspace({ action: "status" })` (0 credits). ## Still stuck Check your credit balance, active API keys, and recent activity logs in the [Console](https://tipolink.co/console), or open [Contact Support](#contact-support) directly from this page.