OAUTH 2.1
TRANSLATION MANAGEMENT
Manage Smartling translation jobs, strings, and glossaries over OAuth 2.1, scoped to the signed-in user's projects.
import { ScalekitClient } from "@scalekit-sdk/node";
import { DynamicStructuredTool } from "@langchain/core/tools";
const sk = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET,
);
const page = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["smartlingmcp"], toolNames: [
"smartlingmcp_smartling_search_strings",
"smartlingmcp_smartling_list_jobs",
"smartlingmcp_smartling_get_project",
]}, pageSize: 100,
});import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";
const sk = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET,
);
const page = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["smartlingmcp"], toolNames: [
"smartlingmcp_smartling_search_strings",
"smartlingmcp_smartling_list_jobs",
"smartlingmcp_smartling_get_project",
]}, pageSize: 100,
});
const openai = new OpenAI();import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";
const sk = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET,
);
const page = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["smartlingmcp"], toolNames: [
"smartlingmcp_smartling_search_strings",
"smartlingmcp_smartling_list_jobs",
"smartlingmcp_smartling_get_project",
]}, pageSize: 100,
});
const anthropic = new Anthropic();import { ScalekitClient } from "@scalekit-sdk/node";
const sk = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET,
);
const page = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["smartlingmcp"], toolNames: [
"smartlingmcp_smartling_search_strings",
"smartlingmcp_smartling_list_jobs",
"smartlingmcp_smartling_get_project",
]}, pageSize: 100,
});// shared key
audit → bot_acct
// scalekit
audit → user_abc ✓