SDK Usage #
// Import typed helpers for full type safety
import { Hotglue } from "@hotglue/sdk";
import { toolName } from "@hotglue/sdk/sentry";
const client = new Hotglue({ apiKey: "hg_live_xxx" });
const result = await client.execute({
...toolName({ /* typed input */ }),
userId: "user_123",
});
// result is fully typed!
import { Hotglue } from "@hotglue/sdk";
const client = new Hotglue({ apiKey: "hg_live_xxx" });
const result = await client.execute({
integration: "sentry",
tool: "tool_name",
userId: "user_123",
input: { /* ... */ },
});
import { createHotglueTools } from "@hotglue/sdk";
import { Agent } from "@mastra/core/agent";
const hotglueTools = createHotglueTools({ apiKey: "hg_live_xxx" });
const agent = new Agent({
name: "Sentry Agent",
model: "anthropic/claude-sonnet-4-0",
tools: () => hotglueTools({
integrations: ["sentry"],
userId: "user_123",
}),
});
Authentication Setup #
Create an auth token in Sentry with the appropriate scopes.
1. Access Auth Tokens
- Log in to sentry.io
- Click your avatar → User settings
- Click Auth Tokens
2. Create Token
Click Create New Token and select scopes:
org:read
list and view organizations
project:read
list and view projects
project:write
update project settings
event:read
view issues and events
event:write
update issue status
team:read
view team information
3. Copy Token
Copy the token immediately after creation.
// Tokens have full user access. Store securely.
Organization Slug
Find your slug in the URL:
https://sentry.io/organizations/your-org-slug/