Set up Stack AI in Metorial for Claude, ChatGPT and Cursor
Share Stack AI with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 28 tools (14 read-only).
To give your team Stack AI in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Stack AI integration in a Metorial portal, and each person connects with an API key. Agents can run published Stack AI workflows, upload files to workflow Files Nodes or knowledge bases, retrieve run analytics, and use existing knowledge-base, connection, conversation, folder, and action management tools. The integration has 28 tools, 14 read-only, 6 write and 8 destructive, plus 2 triggers.
What you'll learn
- How an admin shares Stack AI in a portal and how each person connects
- What Stack AI asks for when you connect, and where to find it
- How to keep the 14 read-only tools and reject the other 14
Before you start
- A portal with at least one access group
- An API key from Stack AI for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | apiKey |
API Key
To connect, a person enters:
apiKey: Your Stack AI API key (public key). Navigate to Settings > API Keys in your Stack AI dashboard to generate one.
Setup settings
Setup also asks for:
orgId: Your Stack AI organization ID. Found in your account settings or URL.
Admin: share Stack AI in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Stack AI. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Stack AI.
Choose who gets it
Add the access groups that should see Stack AI. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Stack AI integration. Once it exists, check which groups have it:
Employee: connect Stack AI
In the portal
Open Stack AI in the catalog
Sign in to your portal and open Stack AI. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your Stack AI connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 14 read-only tools, such as list_folders and get_connection, and lose the 6 write tools, such as flow_feedback or upload_document, and the 8 destructive tools, such as run_flow or run_action.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 28 tools, minus any you rejected. list_tool_providers takes no input. It lists available tool providers in Stack AI for interacting with external services such as web search, databases, and third-party APIs.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (14)
get_knowledge_base: Retrieve details of a specific knowledge base by its ID, including its configuration, connected sources, and indexing parameters. NeedsknowledgeBaseId.browse_connection_resources: Browse or search resources available through a connection. NeedsconnectionId.list_documents: List all files in a user's document bucket for a specific flow and node. NeedsflowId,nodeIdanduserId.list_conversations: List conversations for a specific user within a project. NeedsprojectIdanduserId.list_tool_providers: List available tool providers in Stack AI for interacting with external services such as web search, databases, and third-party APIs.list_user_conversations: List all user conversations for a project via the manager interface. NeedsprojectId.get_connection: Retrieve details of a specific connection including its type, status, and configuration. NeedsconnectionId.get_organization_analytics: Retrieve analytics summary across all projects in the organization.list_folders: List and search folders in your organization.list_connections: List all connections in your organization.get_project_analytics: Retrieve run logs and analytics for a specific flow/project. NeedsflowId.list_knowledge_base_resources: List files and resources indexed in a knowledge base. NeedsknowledgeBaseId.get_storage_analytics: Retrieve storage usage analytics for the organization, including total storage and per-knowledge-base breakdowns.list_knowledge_bases: List all available knowledge bases in your organization.
Write tools (6)
create_knowledge_base: Create a new knowledge base. Needsname.update_knowledge_base: Update an existing knowledge base's properties including name, description, and indexing parameters. NeedsknowledgeBaseId.sync_knowledge_base: Synchronize a knowledge base with its connected data sources. NeedsknowledgeBaseId.flow_feedback: Submit feedback for a specific flow run. NeedsflowId,runIdandfeedback.upload_knowledge_base_resource: Upload a file directly into an existing Stack AI knowledge base and start indexing.upload_document: Upload a file to a deployed workflow Files Node for a specific user or conversation.
Destructive tools (8)
delete_document: Delete a file from a user's document bucket associated with a specific flow and node. NeedsflowId,nodeId,userIdandfilename.manage_folder: Create, update, or delete a folder. Needsaction.run_action: Execute a specific action from a tool provider. NeedsproviderId,actionIdandinputs.delete_knowledge_base: Permanently delete a knowledge base and all its indexed resources. NeedsknowledgeBaseId.delete_knowledge_base_resource: Remove a specific file or resource from a knowledge base. NeedsknowledgeBaseIdandresourceId.delete_connection: Remove a connection from your organization. NeedsconnectionId.manage_conversation: Manage a conversation within a project. NeedsprojectId,conversationId,userIdandaction.run_flow: Execute a deployed Stack AI workflow and retrieve its output. NeedsflowIdandinputs.
Triggers
Stack AI has 2 triggers, which fire on events in Stack AI:
flow_run_completed: Triggers when a flow run completes.inbound_webhook
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Stack AI there
- Tool permissions: tool filters and what employees see
- Stack AI on metorial.com: the integration overview