# SDK Deprecation Checker MCP Server (Currency) (`tankster_ai/sdk-deprecation-mcp`) Actor

MCP server for coding agents: checks JavaScript and TypeScript code for deprecated SDK calls (Clerk, Stripe, OpenAI, Anthropic, Vercel AI SDK, Next.js, Supabase, Prisma, Firebase, PostHog), with the replacement and a dated source.

- **URL**: https://apify.com/tankster_ai/sdk-deprecation-mcp.md
- **Developed by:** [Tankster AI](https://apify.com/tankster_ai) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 deprecation checks

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SDK Deprecation Checker MCP Server (Currency)

**Coding agents write code against SDK versions they learned in training.** When an SDK removes a method, the agent keeps calling it, and you find out at build time or in production. This Actor is an **MCP server** that gives your agent **sourced, dated deprecation data for 10 popular JavaScript and TypeScript SDKs**: it checks a code snippet for deprecated calls and names each **replacement and its primary source** (an official changelog, migration guide or release note).

Every answer says **how fresh the data is** (`generated`, `freshness`), so your agent can tell current facts from stale ones.

### What can this MCP server do?

- 🔍 **`check_snippet`**: finds calls to deprecated or removed SDK methods in a JavaScript or TypeScript snippet (JSX allowed), for the packages you name. Each finding gives the line, the replacement and the source. It also lists the dated advisories for those packages (API shutdowns, model retirements, breaking changes).
- 📚 **`lookup_deprecations`**: every known deprecation, removal and dated advisory for one npm package.
- 🗂️ **`list_covered_sdks`**: what the data covers, with pattern and advisory counts. **Free.**

All three tools are **read-only**: they never change anything, and they call no network. The data is built into the Actor, so answers are fast and consistent.

### Which SDKs are covered?

78 sourced entries for 10 SDKs, across these npm packages:

| SDK | Packages |
|---|---|
| Clerk | `@clerk/nextjs`, `@clerk/expo`, `@clerk/backend`, `@clerk/ui`, `@clerk/react-router` |
| PostHog | `posthog-js` |
| Supabase | `@supabase/supabase-js`, `@supabase/server`, `@supabase/auth-helpers-nextjs` |
| OpenAI | `openai` |
| Anthropic | `@anthropic-ai/sdk` |
| Vercel AI SDK | `ai` |
| Next.js | `next` |
| Stripe | `stripe` |
| Prisma | `@prisma/client`, `prisma` |
| Firebase | `firebase` |

Call `list_covered_sdks` for the current list and the date the data was last checked against its sources.

### How to connect your agent

This Actor runs in **Standby mode**: it is a server that is ready when your agent calls it. Point your MCP client at:

```
https://<username>--sdk-deprecation-mcp.apify.actor/mcp
Authorization: Bearer <your Apify API token>
```

Apify Console shows the exact MCP URL in the Actor's **Server** tab. The endpoint speaks Streamable HTTP and serves both the 2025 MCP clients and the 2026-07-28 ones.

For example, in Claude Code:

```
claude mcp add --transport http sdk-deprecations https://<username>--sdk-deprecation-mcp.apify.actor/mcp --header "Authorization: Bearer <your Apify API token>"
```

### Example: an agent checks its own code

Before it commits, your agent calls `check_snippet` with:

```json
{ "code": "const upcoming = await stripe.invoices.retrieveUpcoming({ customer });", "packages": ["stripe"] }
```

and gets back (shortened):

```json
{
  "findings": [{
    "patternId": "stripe-invoices-upcoming",
    "severity": "high",
    "replacement": "stripe.invoices.createPreview({ customer, subscription })",
    "source": "https://docs.stripe.com/changelog/basil/2025-03-31/invoice-preview-api-deprecations",
    "calls": [{ "line": 1, "column": 23, "matchedIdentifier": "retrieveUpcoming" }]
  }],
  "advisories": [{ "id": "stripe-v22-client-construction", "severity": "high", "source": "https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md" }],
  "generated": "2026-11-13",
  "freshness": { "ageDays": 1, "targetDays": 7, "stale": false }
}
```

It then rewrites the call to `invoices.createPreview()`, as the source says.

### Pricing

You pay per successful check (pay per event):

| Event | Price | When |
|---|---|---|
| `deprecation-check` | **$0.005** | One successful `check_snippet` or `lookup_deprecations` answer |

So 1,000 checks cost $5 in check events, plus the platform usage of your server's runs.

- **Free:** `list_covered_sdks`, and any call that ends in an error: an untracked package, a snippet that does not parse or is over the size limit, a refusal at a spending limit, or a refusal by the checks below.
- **Platform usage:** your server runs **in your own Apify account (single-tenant)**, at 256 MB of memory, so you also pay for its runs while they are up, including while they wait for requests until the idle timeout stops them. To change the idle timeout (or the memory), open the Actor in Apify Console, select **Save as a new task**, change the task's **Settings**, and connect your MCP client to the task's hostname instead of the Actor's.
- **Run start:** if the Actor's pricing includes Apify's standard start event, it costs $0.00005 per run start at this Actor's memory (one event per start up to 1 GB).

#### Spending limits

- **Your account's monthly usage hard limit** caps spending across all runs: once it is reached, Apify rejects new requests to Server Actors.
- **A per-run limit** applies only if the run has one. Apify's pay-per-event limit is per run, not per user, and Standby may start more runs (when one run is busy, after an idle timeout, or to replace a run), each with its own limit. When the run you reach has spent its limit, paid calls to it are refused with `spending_limit` and nothing is charged; a new run has its own limit. If another check on the same run is still using the last of its budget, the refusal says so, and a retry a moment later may succeed.

#### When something is wrong on Apify's side

- **Billing unavailable:** if Apify does not confirm a charge within a few seconds, the check is refused with `billing_unavailable`, not charged, and its answer withheld. Retry in a minute.
- **Pricing or setup misconfigured:** if the Actor's pricing does not price the `deprecation-check` event, or the Actor is not single-tenant, paid checks are refused with `pricing_misconfigured` or `tenancy_misconfigured` and nothing is charged; the run's status message says why. `list_covered_sdks` keeps working.

### Limits

- `check_snippet` takes at most **2,048 bytes** of code and **10 packages** per call. Send the lines that call the SDK, not whole files.
- Matching is by **called name**, not traced imports, so check each finding against the code. Advisories are facts to read, not detected in code.
- The data has **no version ranges** yet: `lookup_deprecations` returns every entry for a package, and each message says which releases it concerns.
- **PostHog:** the entries are filed under `posthog-js`, but its flag deprecations describe the server SDK, `posthog-node`. Read each PostHog finding's message before acting on it in browser code.
- **Stale data:** the data is built into the Actor. When it is older than its 7-day freshness target, answers are still charged and carry a `notice` saying how old it is: every entry stays sourced and true, but deprecations announced since `generated` may be missing.

### FAQ

**Is a package missing?** An untracked package is an error, never an empty "all clear": the answer says it is not tracked and lists what is.

**How current is the data?** Each answer carries `generated` (the date the entries were last checked against their sources) and `freshness` against a 7-day target, with a `stale` flag.

**What does a run started from the input form do?** It serves nothing: it writes the coverage list to the run's `OUTPUT` record, charges no check, and finishes. Use the Standby URL with an MCP client to check code.

**Where do the facts come from?** Every entry links its primary source: the vendor's changelog, migration guide, release notes or the SDK's own `@deprecated` tags.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `coverage` (type: `string`):

The SDKs the deprecation data tracks, with pattern and advisory counts, the data's date (generated) and freshness.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("tankster_ai/sdk-deprecation-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("tankster_ai/sdk-deprecation-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call tankster_ai/sdk-deprecation-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tankster_ai/sdk-deprecation-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/skvKvgSapCGnZ2eQJ/builds/qL7epbJCbnLJoxHji/openapi.json
