LinearB ACTION
Create Incident
Create a new incident within the LinearB platform. See the documentation
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's LinearB account once, then configure and run Create Incident from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "linearb-create-incident",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
linearb: { authProvisionId: "apn_xxxxxxx" },
providerId: "Provider ID",
httpUrl: "HTTP URL",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "linearb-create-incident",
"configured_props": {
"linearb": { "authProvisionId": "apn_xxxxxxx" },
"providerId": "Provider ID",
"httpUrl": "HTTP URL"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "linearb",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "linearb-create-incident",
arguments: {
providerId: "Provider ID",
httpUrl: "HTTP URL",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
providerId Provider ID | string | The unique identifier of the incident in your incident management provider. Eg. provider_internal_id1 Required |
httpUrl HTTP URL | string | The URL of your incident management provider. The combination http_url/provider_key should open the incident in your PM provider. Eg. http://myprovider.io/1 Required |
title Title | string | The title of the incident Required |
issuedAt Issued At | string | The specific time when the incident was logged and officially opened. (timestamp ISO 8601 format). Eg. 2019-09-26T07:58:30.996 Required |
startedAt Started At | string | The specific time when work on the incident commenced. (timestamp ISO 8601 format). Eg. 2019-09-26T07:58:30.996 Optional |
endedAt Ended At | string | The specific time when the incident was successfully resolved. (timestamp ISO 8601 format). Eg. 2019-09-26T07:58:30.996 Optional |
gitRef Git Ref | string | The Git reference of the release responsible for causing this incident, Eg. commit short or long sha or tag name (Eg. commit short or long sha/tag name). Optional |
teams Teams | string[] | The list of LinearB teams names related to this incident. (lowercase only) Optional Dynamic |
services Services | string[] | The list of LinearB services related to this incident. (lowercase only) Optional Dynamic |
repositoryUrls Repository URLs | string[] | The list of repos urls related to this incident. Eg. https://github.com/myorg/repo1.git Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- linearb-create-incident
- Version
- 0.0.3
- App
- LinearB
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗