spurvik_setup_snippet
Return a setup snippet for openai, anthropic, google-genai, vercel-ai-sdk, mastra, openai-agents, or langgraph. Provider clients are wrapped with withSpurvik. The Vercel AI SDK snippet passes spurvikMiddleware to wrapLanguageModel. The Mastra snippet calls withSpurvikMastra. The OpenAI Agents snippet calls withSpurvikModelProvider. The LangGraph snippet calls withSpurvikLangGraph and spurvikInterrupt. The snippet is built from the installed spurvik exports (spurvik or spurvik-sdk, including spurvik/ai, spurvik/langgraph, spurvik/mastra, and spurvik/openai-agents). The disclosure label is a separate React client snippet that imports spurvik/react. riskTier is a sample value. Set your own classification (as provider or deployer); Spurvik does not classify your use case. The SDK logs the call and attaches an HMAC receipt. It does not mark content. Also accepts react, nuxt, sveltekit, astro, python, fastapi, langchain, pydantic-ai (zero-dependency Python 3.10+ helper at https://spurvik.com/r/spurvik_guard.py), dotnet / csharp (SpurvikGuard.cs), go (spurvik_guard.go), php / laravel (SpurvikGuard.php), spring-boot, mistral, azure-openai, bedrock, litellm, shopify (.liquid Online Store 2.0 section), wordpress (plugin .zip & wp_footer), prestashop, shopware, gtm / google-tag-manager (importable GTM container .json), cookiebot / usercentrics, cloudflare, framer, webflow, n8n, make, cursor, claude-code, github-actions, gitlab-ci, bitbucket, pre-commit, annex-iv, well-known, and html. Pass optional domain and locale to prefill 1-click Console signup, readiness report, and white-label links.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "spurvik_setup_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Optional public domain or HTTPS URL of your app or store (for example, acme.eu). Prefills signup, report, and white-label links. | |
| locale | No | Optional EU language code (for example, de, fr, es, it, nl, da, sv) to localize Console signup and report links. | |
| target | Yes | SDK, framework, backend language, sovereign EU gateway, CMS, workflow, or CI target (for example, openai, anthropic, vercel-ai-sdk, react, nuxt, sveltekit, astro, python, fastapi, langchain, dotnet, go, spring-boot, laravel, php, mistral, azure-openai, bedrock, litellm, shopify, wordpress, prestashop, shopware, gtm, cookiebot, usercentrics, cloudflare, framer, webflow, n8n, make, lovable, cursor, claude-code, github-actions, gitlab-ci, bitbucket, pre-commit, annex-iv, well-known, html). | |
| runtime | No | Optional runtime environment: node, next, vercel, supabase-edge (Deno Edge Functions), or python. | |
| framework | No | Optional alias for target when a caller passes framework instead of target. |