stackone-agents
БесплатноБез исполняемых скриптовНе проверенBuild AI agents that call StackOne-linked accounts using TypeScript SDK, Python SDK, MCP server, or A2A protocol. Use when user asks to "add StackOne tools to…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
StackOne Agents — AI Integration
Important
SDK APIs change frequently. Before writing code:
- For TypeScript: fetch
https://raw.githubusercontent.com/stackoneHQ/stackone-ai-node/refs/heads/main/README.md - For Python: fetch
https://raw.githubusercontent.com/stackoneHQ/stackone-ai-python/refs/heads/main/README.md - For MCP setup: fetch
https://docs.stackone.com/mcp/quickstart
These sources contain the latest code examples and API surface. Do not rely solely on this skill for code snippets.
Instructions
Step 1: Choose an integration method
| Method | Best for | Language |
|---|---|---|
TypeScript SDK (@stackone/ai) |
Custom agents with OpenAI, Vercel AI, Claude, Claude Agent SDK | TypeScript/JavaScript |
Python SDK (stackone-ai) |
Custom agents with LangChain, CrewAI, PydanticAI, Google ADK | Python |
| MCP Server | Claude Code, Claude Desktop, ChatGPT, Cursor, Windsurf — no code needed | Any (config only) |
| A2A Protocol | Agent-to-agent communication | Any |
Consult references/integration-guide.md for a detailed decision tree.
Step 2a: TypeScript SDK path
npm install @stackone/ai zod
import { StackOneToolSet } from "@stackone/ai";
// Initialize — reads STACKONE_API_KEY from environment
const toolset = new StackOneToolSet();
// Fetch tools for a specific linked account
const tools = await toolset.fetchTools({
accountIds: ["account-123"],
});
// Convert to your framework's format
const openaiTools = tools.toOpenAI(); // OpenAI Chat Completions
const anthropicTools = tools.toAnthropic(); // Anthropic Claude
const vercelTools = await tools.toAISDK(); // Vercel AI SDK
Tool naming: {provider}_{operation}_{entity} (e.g., bamboohr_list_employees)
Filtering tools:
const tools = await toolset.fetchTools({
providers: ["hibob", "bamboohr"], // Only these providers
actions: ["*_list_employees"], // Glob pattern matching
accountIds: ["account-123"],
});
Utility tools for dynamic discovery:
const utilityTools = await tools.utilityTools();
// tool_search — find tools by natural language query
// tool_execute — execute a discovered tool
For framework-specific integration code, fetch the GitHub README — it has complete examples for each framework.
Step 2b: Python SDK path
pip install stackone-ai
Fetch the Python README for usage examples and framework integrations:
https://raw.githubusercontent.com/stackoneHQ/stackone-ai-python/refs/heads/main/README.md
The Python SDK supports: OpenAI, LangChain, CrewAI, PydanticAI, Google ADK.
Step 2c: MCP Server path (no code required)
StackOne's MCP server is at https://api.stackone.com/mcp.
For client-specific setup instructions, fetch the relevant guide:
- Claude Code:
https://docs.stackone.com/mcp/framework-guides/claude-code - Claude Desktop:
https://docs.stackone.com/mcp/app-guides/claude-desktop - Other clients: fetch
https://docs.stackone.com/llms.txtand search for the client name
Testing the MCP connection:
npx @modelcontextprotocol/inspector https://api.stackone.com/mcp
Step 3: Handle multi-tenant access
For applications serving multiple customers, each with their own connected accounts:
// Option 1: Specify at fetch time
const tools = await toolset.fetchTools({
accountIds: ["customer-123-bamboohr"],
});
// Option 2: Change dynamically
tools.setAccountId("customer-456-bamboohr");
The accountId maps to a linked account created via the Connect Session flow (see the stackone-connect skill for setup).
Examples
Example 1: User wants to add StackOne to an OpenAI agent
User says: "I want my OpenAI agent to list employees from BambooHR"
Actions:
- Confirm they have a StackOne API key and a linked BambooHR account
- Install
@stackone/aiandzod - Fetch tools with
accountIdsandactions: ["bamboohr_list_employees"] - Convert with
tools.toOpenAI()and pass to the OpenAI chat completions call - Fetch the TypeScript GitHub README for the complete OpenAI example
Result: Working agent that can query BambooHR employees through StackOne.
Example 2: User wants to set up MCP with Claude Code
User says: "How do I use StackOne MCP in Claude Code?"
Actions:
- Fetch
https://docs.stackone.com/mcp/framework-guides/claude-codefor the setup guide - Walk through adding the MCP server config with their API key and account ID
- Test with
npx @modelcontextprotocol/inspectorfirst
Result: Claude Code can call StackOne tools directly.
Example 3: User is building a multi-tenant SaaS
User says: "Each of my customers has their own BambooHR. How do I handle that?"
Actions:
- Explain the account-per-customer model: each customer links their own BambooHR via Connect Sessions
- Show how to pass the customer's
accountIdwhen fetching tools - Recommend using `toolset.fetchTools
Установить stackone-agents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл stackone-agents?
Build AI agents that call StackOne-linked accounts using TypeScript SDK, Python SDK, MCP server, or A2A protocol. Use when user asks to "add StackOne tools to my agent", "set up MCP with StackOne", "list employees from BambooHR in my agent", "integrate StackOne with OpenAI", "build a multi-tenant agent", or "use StackOne with LangChain". Supports OpenAI, Vercel AI SDK, Claude, LangChain, CrewAI, PydanticAI. Do NOT use for account linking setup (use stackone-connect) or platform management (use stackone-platform).
Как установить скилл stackone-agents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл stackone-agents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic