How to sign in to Jira or Confluence
atlassian_loginReturns the terminal command to sign in to Jira or Confluence when authentication fails. Show it to the user, who runs it where a browser can open, then retry.
Instructions
Return the terminal command that signs the user in to Jira or Confluence.
(Async on purpose: upstream wraps every tool in an error handler that awaits it, so a plain function fails with "object can't be awaited".)
Sign-in is never done from inside the server (a browser login there used to hang it). Call this after a "Not authenticated" error and show the user the command; they run it in a terminal where a browser can open, then you retry. The server reuses the saved session automatically.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "atlassian_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | The service to sign in to: "jira" or "confluence". | jira |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Always action_required: sign-in happens in a terminal, not here. | |
| command | Yes | The command to run in a terminal with a display. | |
| message | Yes | What to tell the user. | |
| service | Yes | The service to sign in to. |