# Vinktar > Vinktar is error tracking built for small teams, with product analytics on > the same identity, made to be set up and run by your coding agent: it installs > the SDK (or a Sentry SDK keeps working with one DSN change), defines the > events it tracks, builds boards and alerts, triages issues and answers > questions over MCP. You can also explore everything yourself as trends, > funnels, boards, SQL and an issue list. Events are sent to the ingest > endpoint with a project write key (`vnk_pk_…`). ## Setup - To add Vinktar to an app, an agent does the work over the Vinktar MCP connection. The person connects it once, from the app the agent runs in, and can make the Vinktar account during that sign-in (it creates a workspace and a project): - Claude on the web or Claude Desktop: https://claude.ai/customize/connectors, add Vinktar (Add custom connector, address `https://mcp.vinktar.com/mcp`), choose Connect, then start a new chat. With the Vinktar plugin added in Claude Desktop, the plugin's Connectors tab does the same. - Claude Code: `claude plugin marketplace add vinktarhq/agent`, then `claude plugin install vinktar@vinktar`, then `/mcp` to sign in and `/vinktar:setup`. - Cursor and Codex: see https://vinktar.com/docs/mcp. - Once connected, the agent calls `get_install_guide` and follows it. It picks the SDK, fetches the write key (`get_project_keys`), defines the events it tracks (`define_event`), checks what arrived (`get_setup_status`), and lists where each environment variable goes. In a chat with no codebase open the guide says how to go on: the person opens the project in Claude Code, or adds the lines the agent hands them. Setup calls are never counted against the agent allowance. - [Vinktar skill](/skill.md): the same instructions as an Agent Skill, for agents that load skills. The plugin repository also carries it at `.agents/skills/setup/`, the path most harnesses read. - After setup the agent writes a short Vinktar block into the repository's `AGENTS.md` (the MCP resource `vinktar://guide/agents-md`, between `` and `` markers), so the next agent in the codebase knows it is there. - [Wire contract](/api.md): The full ingest API reference. Endpoints, auth, payload shapes, every limit and status code. What SDK authors integrate against. - [Limits](/limits.json): every numeric ingest limit as JSON, generated from the server constants, for a hand-written client to compile in. ## Ingest - Endpoint: `POST https://in.vinktar.com/v1/batch` - Auth header: `X-Vinktar-Key: vnk_pk_…` (a `write`-scoped key; a `read` key returns `403 write_scope_required`) - Body: `{ "batch": [{ "name": "signed_up", "user_id": "user_123", "payload": { "plan": "pro" } }] }` - Success is not the 202. Assert the body: `rejected` is 0, `errors` is empty, `received` equals what you sent, and no `identify_ignored` key. `received` counts accepted events plus every identify entry, including ones the same response reports as ignored. - `payload` vs `context`: `payload` is free-form properties; `context` is a fixed set of well-known keys (`current_url`, `referrer`, `utm_*`, `os`, `browser`) that land in typed columns and drive the fast filters. URL and campaign data belongs in `context`. - Identity: two ids. `device_id` is the device, `user_id` is the person. Send both on an `identify` entry to link them; because identity resolves at query time, the person's prior anonymous activity joins their history retroactively. First link wins, so call reset (a fresh `device_id`) on logout. - User traits: `identify` also takes `$set` (last write wins), `$set_once` (first write wins, for signup date / first referrer) and `$unset`. These ARE stored and queryable as `user.` in the SQL editor and as board filters. SQL results can be pinned to a board as a table or chart. Reserved traits are `$`-prefixed (`$email`, `$name`, `$username`, `$avatar`, `$created`); bare spellings are accepted and normalised. Flat scalars only, 255 bytes per value. - Traits with no event attached: `POST /v1/identify`. - Errors: `POST /v1/errors`. An app that already runs a Sentry SDK can instead point its DSN at `https://@in.vinktar.com/`: errors and captured messages are stored, everything else in the envelope is accepted and dropped, and source maps still upload with `@vinktarhq/cli` ([/docs/migrate-sentry](https://vinktar.com/docs/migrate-sentry)). On `/v1/errors` the response also carries `suppressed`: an inbound filter drops the usual browser noise, so `received: 0` there is not a broken key. ## SDKs Official packages, and the only ones: `@vinktarhq/browser` and `@vinktarhq/node` on npm (use 0.3.0 or later), `@vinktarhq/cli` for source maps, and `vinktarhq/php` on Packagist (beta: `composer require vinktarhq/php:^0.2@beta`). A front-end framework uses the browser SDK and a PHP framework the PHP SDK. Do not install or import any other Vinktar package. For any other stack, integrate over the HTTP API per [/api.md](/api.md), which is the same contract the SDKs use — the setup skill writes that client for you — or point a Sentry SDK at a Vinktar DSN for errors only. ## Connect an AI agent (MCP) - Endpoint: `https://mcp.vinktar.com/mcp` (MCP over Streamable HTTP). This is for querying a workspace's analytics and errors from an agent, not for sending events. - Auth is OAuth, no key: the client opens a Vinktar consent page where the user picks one workspace, the projects it may reach (or all of them), and read, build or configure. - Claude Code: `claude mcp add --transport http vinktar https://mcp.vinktar.com/mcp`, then `/mcp` to sign in. Every request needs the sign-in, so the client asks for it as soon as it connects. - No MCP in your agent (pi, Aider, a CI job)? `npx @vinktarhq/cli login`, then `npx @vinktarhq/cli tools` and `npx @vinktarhq/cli call key=value`. Same sign-in, same tools, same limits, and every call is logged. Needs `@vinktarhq/cli` 0.2.0 or later. - On every plan, with a monthly allowance of data requests. Setting a project up (the write key, the install check, the schema) is never counted. - With read and write access an agent can define events, write project notes, create, edit and delete boards and panels (a deleted one can be restored for 30 days, and a board can delete itself after a launch), add, change, pause and delete uptime monitors (a deleted one keeps its history), change an issue's status, and create and change alerts (on the error stream, an issue or its fix, a panel, a board, an event or a query) and snooze them. An alert it creates tells the workspace's owners and admins, or members and channels a person already set up; it cannot name a webhook URL or an outside email address. It cannot delete events, errors, issues or projects, or create projects or keys. Everything an agent made is listed on the project's AI agents page. - [Setup for each client, the tools and the limits](https://vinktar.com/docs/mcp) - Hosted app builders add the same server from their own settings, with OAuth: [Lovable](https://vinktar.com/docs/lovable), [Replit](https://vinktar.com/docs/replit), [v0](https://vinktar.com/docs/v0). Written from each builder's docs; not yet run live inside any of them. - [What an agent can and cannot do, where data lives, and what Vinktar does not have](https://vinktar.com/security) - [Where your data lives](https://vinktar.com/eu): one UpCloud server in Helsinki, Finland; what is stored in ClickHouse, Postgres and Valkey; IPs kept only as a keyed hash; what deleting a project removes. ## Key rules - Event names are case-sensitive; pick one convention and keep it consistent. - Send numeric properties as numbers, not strings, so they can be aggregated. - Never build event names dynamically; put the variable part in a property. - Use a stable user id (a database id), never an email. - Do not honour `Retry-After` blindly on a `429`: the monthly-cap codes set it to the first of next month. - There is no `/v1/flags` endpoint and no feature-flags product. ## Founding teams - [Ten founding teams](https://vinktar.com/founding): the first ten SaaS teams get the $99 plan free for a year and the founder does the setup; write to john@vinktar.com with a link to the app.