siesa-agents 2.1.27 β†’ 2.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,251 @@
1
+ <!-- Powered by BMADβ„’ Core -->
2
+
3
+ # Validate Jira Authentication Task
4
+
5
+ ## Purpose
6
+
7
+ Validate that the Jira MCP integration is properly authenticated before executing any Jira operations. This task prevents workflow disruptions caused by expired authentication sessions by proactively checking authentication status and instructing users to re-authenticate when needed.
8
+
9
+ ## When to Use This Task
10
+
11
+ **CRITICAL:** This task MUST be executed as the FIRST step before ANY Jira MCP operation, including:
12
+
13
+ - Creating epics or stories in Jira
14
+ - Syncing PRD to Jira
15
+ - Syncing story tasks to Jira
16
+ - Updating story status
17
+ - Retrieving project information
18
+ - Any call to `mcp_gitkraken_*` tools with `provider: "jira"`
19
+
20
+ **Do NOT skip this validation** - authentication failures mid-workflow cause confusion and wasted execution.
21
+
22
+ ## Instructions
23
+
24
+ ### Step 1: Attempt Authentication Check
25
+
26
+ **Action:** Make a lightweight Jira MCP call to verify authentication status
27
+
28
+ ```output
29
+ πŸ” Validating Jira authentication...
30
+ ```
31
+
32
+ **Execute Test Call:**
33
+
34
+ ```action
35
+ Call MCP Function: mcp_gitkraken_issues_assigned_to_me
36
+ Parameters:
37
+ - provider: "jira"
38
+ - page: 1
39
+
40
+ This is a lightweight call that will:
41
+ 1. Return immediately if authenticated
42
+ 2. Fail with authentication error if session expired
43
+ 3. Not create or modify any data
44
+ ```
45
+
46
+ ### Step 2: Interpret Response
47
+
48
+ **Expected Outcomes:**
49
+
50
+ #### βœ… Scenario A: Authentication Valid
51
+
52
+ **Indicators:**
53
+ - MCP call returns successfully (even if no issues found)
54
+ - Response contains valid data structure
55
+ - No authentication errors in response
56
+
57
+ **Output:**
58
+ ```output
59
+ βœ… Jira authentication verified
60
+ βœ… MCP connection active
61
+ ```
62
+
63
+ **Action:** Return success and allow workflow to continue
64
+
65
+ ---
66
+
67
+ #### ❌ Scenario B: Authentication Expired/Invalid
68
+
69
+ **Indicators:**
70
+ - MCP call fails with authentication error
71
+ - Error message contains: "unauthorized", "authentication", "token expired", "session expired"
72
+ - HTTP 401 or 403 error codes
73
+ - No valid response data
74
+
75
+ **Output:**
76
+ ```output
77
+ ═══════════════════════════════════════════════════════════════
78
+ ⚠️ AUTENTICACIΓ“N DE JIRA REQUERIDA
79
+ ═══════════════════════════════════════════════════════════════
80
+
81
+ ❌ La sesión de Jira MCP ha expirado o no estÑ autenticada.
82
+
83
+ Para continuar con operaciones de Jira, debes re-autenticarte:
84
+
85
+ πŸ“‹ PASOS PARA RE-AUTENTICACIΓ“N:
86
+
87
+ 1. Abre el panel de MCP en VS Code:
88
+ - Presiona Ctrl+Shift+P (Cmd+Shift+P en Mac)
89
+ - Busca: "MCP: Show MCP Panel"
90
+ - O usa el atajo si estΓ‘ configurado
91
+
92
+ 2. En el panel de MCP:
93
+ - Localiza el servidor "GitKraken Jira"
94
+ - Haz clic en "Connect" o "Authenticate"
95
+ - Se abrirΓ‘ una ventana del navegador
96
+
97
+ 3. Completa la autenticaciΓ³n OAuth:
98
+ - Inicia sesiΓ³n en Jira Cloud si es necesario
99
+ - Autoriza el acceso para GitKraken MCP
100
+ - Espera la confirmaciΓ³n de conexiΓ³n exitosa
101
+
102
+ 4. Verifica la conexiΓ³n:
103
+ - El icono de GitKraken Jira debe mostrar "Connected"
104
+ - Cierra el navegador y regresa a VS Code
105
+
106
+ 5. Reintenta el comando:
107
+ - Vuelve a ejecutar el comando que fallΓ³
108
+ - La autenticaciΓ³n ahora debe estar activa
109
+
110
+ ═══════════════════════════════════════════════════════════════
111
+
112
+ ❌ NO PUEDO CONTINUAR hasta que completes la re-autenticación.
113
+
114
+ RazΓ³n: Las operaciones de Jira requieren autenticaciΓ³n vΓ‘lida para:
115
+ - Crear/actualizar issues
116
+ - Consultar informaciΓ³n del proyecto
117
+ - Sincronizar datos entre documentos locales y Jira
118
+
119
+ Una vez que hayas completado los pasos arriba, confirma escribiendo:
120
+ "autenticado" o "listo" para continuar.
121
+
122
+ ═══════════════════════════════════════════════════════════════
123
+ ```
124
+
125
+ **CRITICAL:** HALT execution completely. Do NOT:
126
+ - Attempt to continue with Jira operations
127
+ - Try to re-authenticate programmatically
128
+ - Make additional MCP calls
129
+ - Suggest workarounds or alternatives
130
+
131
+ **Action:** Wait for user confirmation that they have re-authenticated
132
+
133
+ ---
134
+
135
+ #### πŸ”§ Scenario C: MCP Not Available
136
+
137
+ **Indicators:**
138
+ - MCP tool not found
139
+ - MCP server not running
140
+ - GitKraken MCP integration not installed
141
+
142
+ **Output:**
143
+ ```output
144
+ ═══════════════════════════════════════════════════════════════
145
+ ⚠️ MCP DE JIRA NO DISPONIBLE
146
+ ═══════════════════════════════════════════════════════════════
147
+
148
+ ❌ El servidor MCP de GitKraken no estÑ disponible.
149
+
150
+ Posibles causas:
151
+ - MCP no estΓ‘ instalado
152
+ - El servidor MCP no estΓ‘ ejecutΓ‘ndose
153
+ - ConfiguraciΓ³n de MCP incorrecta
154
+
155
+ πŸ“‹ PASOS PARA CONFIGURAR MCP:
156
+
157
+ 1. Verifica que GitKraken MCP estΓ© instalado
158
+ 2. Revisa la configuraciΓ³n de MCP en VS Code
159
+ 3. Reinicia el servidor MCP si es necesario
160
+ 4. Contacta al administrador si el problema persiste
161
+
162
+ ═══════════════════════════════════════════════════════════════
163
+
164
+ ❌ NO PUEDO CONTINUAR sin acceso al MCP de Jira.
165
+
166
+ HALT execution.
167
+ ```
168
+
169
+ ### Step 3: User Confirmation (If Re-auth Required)
170
+
171
+ ```elicit
172
+ path: Wait for user re-authentication confirmation
173
+ format: |
174
+ ⏳ Esperando confirmación de re-autenticación...
175
+
176
+ Has completado los pasos de autenticaciΓ³n en el panel de MCP?
177
+
178
+ Opciones:
179
+ 1. SΓ­, estoy autenticado - verificar de nuevo
180
+ 2. Necesito ayuda con la autenticaciΓ³n
181
+ 3. Cancelar operaciΓ³n
182
+
183
+ Ingresa tu selecciΓ³n (1-3):
184
+ ```
185
+
186
+ **If Option 1:** Retry Step 1 to verify authentication
187
+ **If Option 2:** Display detailed troubleshooting guide
188
+ **If Option 3:** Exit task gracefully
189
+
190
+ ### Step 4: Retry Verification (After User Confirms)
191
+
192
+ **Action:** Repeat Step 1 to confirm authentication is now valid
193
+
194
+ - [ ] Execute test MCP call again
195
+ - [ ] Verify successful response
196
+ - [ ] Return success if authenticated
197
+ - [ ] If still fails, return to Step 2
198
+
199
+ **Success Output:**
200
+ ```output
201
+ βœ… Re-autenticaciΓ³n exitosa
202
+ βœ… ConexiΓ³n a Jira verificada
203
+ βœ… Listo para continuar con operaciones de Jira
204
+ ```
205
+
206
+ ## Integration Points
207
+
208
+ **This task should be called from:**
209
+
210
+ - `sync-prd-to-jira.md` - Before Phase 1, Step 1
211
+ - `sync-story-to-jira.md` - Before Phase 1, Step 1
212
+ - `update-story-jira-status.md` - Before Phase 1, Step 3
213
+ - `jira-setup.md` - Before Phase 2, Step 3
214
+ - Any other task that uses Jira MCP
215
+
216
+ **Add this step to task instructions:**
217
+
218
+ ```markdown
219
+ #### Step 0: Validate Jira Authentication (REQUIRED)
220
+
221
+ **Action:** Execute `validate-jira-auth.md` task
222
+
223
+ - [ ] Call validate-jira-auth task
224
+ - [ ] Verify authentication is active
225
+ - [ ] Only proceed if validation passes
226
+
227
+ **If validation fails:** HALT and instruct user to re-authenticate before continuing.
228
+ ```
229
+
230
+ ## Error Recovery
231
+
232
+ **Common Authentication Errors:**
233
+
234
+ | Error Pattern | Meaning | Solution |
235
+ |---------------|---------|----------|
236
+ | `401 Unauthorized` | Token expired | Re-authenticate via MCP panel |
237
+ | `403 Forbidden` | Insufficient permissions | Check Jira access rights |
238
+ | `oauth_token_expired` | OAuth session expired | Re-authenticate via MCP panel |
239
+ | `ETIMEDOUT` | Network/MCP connection issue | Check MCP server status |
240
+
241
+ ## Notes
242
+
243
+ - Authentication sessions typically expire after inactivity
244
+ - OAuth tokens may have time-based expiration (e.g., 1 hour, 24 hours)
245
+ - Re-authentication does NOT require reconfiguring project settings
246
+ - `docs/jira-conf.md` configuration remains valid after re-auth
247
+
248
+ ---
249
+
250
+ **Last Updated:** 2025-12-11
251
+ **Task Version:** 1.0.0
@@ -0,0 +1,13 @@
1
+ # Jira Project Configuration
2
+
3
+ **Project Key:** `{PROJECT_KEY}`
4
+ **Project Name:** `{PROJECT_NAME}`
5
+ **Cloud ID:** `{CLOUD_ID}`
6
+
7
+ ## Available Story Statuses
8
+
9
+ _This section will be automatically populated when first using `*update-story-jira-status` command. Statuses are retrieved from Jira via MCP and cached here for efficiency._
10
+
11
+ ---
12
+
13
+ _Note: Project Key, Project Name, and Cloud ID were automatically retrieved during `*jira-setup`. Available Story Statuses will be auto-populated on first use._
@@ -73,6 +73,7 @@ commands:
73
73
  - explain: teach me what and why you did whatever you just did in detail so I can learn. Explain to me as if you were training a junior engineer.
74
74
  - review-qa: run task `apply-qa-fixes.md'
75
75
  - run-tests: Execute linting and tests
76
+ - update-story-jira-status {story}: run task `update-story-jira-status.md` with the provided story file - Update story status in Jira with validation of tasks completion and QA gates
76
77
  - exit: Say goodbye as the Developer, and then abandon inhabiting this persona
77
78
 
78
79
  dependencies:
@@ -81,5 +82,7 @@ dependencies:
81
82
  tasks:
82
83
  - apply-qa-fixes.md
83
84
  - execute-checklist.md
85
+ - update-story-jira-status.md
86
+ - validate-jira-auth.md
84
87
  - validate-next-story.md
85
88
  ```
@@ -69,6 +69,8 @@ commands:
69
69
  - create-story: Create user story from requirements (task brownfield-create-story)
70
70
  - doc-out: Output full document to current destination file
71
71
  - shard-prd: run the task shard-doc.md for the provided prd.md (ask if not found)
72
+ - sync-epic-files-to-jira: Sync individual epic files from docs/prd/ to Jira (task sync-epic-files-to-jira.md)
73
+ - sync-prd-to-jira: Automatically create Jira epics and stories from PRD (task sync-prd-to-jira.md)
72
74
  - yolo: Toggle Yolo Mode
73
75
  - exit: Exit (confirm)
74
76
  dependencies:
@@ -76,6 +78,7 @@ dependencies:
76
78
  - change-checklist.md
77
79
  - pm-checklist.md
78
80
  data:
81
+ - jira-preferences.md
79
82
  - technical-preferences.md
80
83
  tasks:
81
84
  - brownfield-create-epic.md
@@ -85,6 +88,9 @@ dependencies:
85
88
  - create-doc.md
86
89
  - execute-checklist.md
87
90
  - shard-doc.md
91
+ - sync-epic-files-to-jira.md
92
+ - sync-prd-to-jira.md
93
+ - validate-jira-auth.md
88
94
  templates:
89
95
  - brownfield-prd-tmpl.yaml
90
96
  - prd-tmpl.yaml
@@ -34,6 +34,7 @@ activation-instructions:
34
34
  - When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
35
35
  - STAY IN CHARACTER!
36
36
  - CRITICAL: On activation, ONLY greet user, auto-run `*help`, and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
37
+ - JIRA CONFIGURATION CHECK: Before executing sync-story-to-jira command, ALWAYS check if docs/jira-conf.md exists. If NOT found, inform user that project-specific Jira configuration is required and offer to run `*jira-setup` command to create it interactively.
37
38
  agent:
38
39
  name: Sarah
39
40
  id: po
@@ -41,6 +42,15 @@ agent:
41
42
  icon: πŸ“
42
43
  whenToUse: Use for backlog management, story refinement, acceptance criteria, sprint planning, and prioritization decisions
43
44
  customization: null
45
+ jira-config:
46
+ project-config-file: docs/jira-conf.md
47
+ global-preferences-file: .bmad-core/data/jira-preferences.md
48
+ required-project-fields:
49
+ - cloud-id: Jira Cloud ID (UUID format)
50
+ - jira-url: Full Jira instance URL
51
+ - project-key: Jira project key (e.g., PM, PROJ)
52
+ - project-name: Human-readable project name
53
+ validation: Auto-check docs/jira-conf.md before Jira operations, prompt for setup if missing
44
54
  persona:
45
55
  role: Technical Product Owner & Process Steward
46
56
  style: Meticulous, analytical, detail-oriented, systematic, collaborative
@@ -68,7 +78,11 @@ commands:
68
78
  - create-story: Create user story from requirements (task brownfield-create-story)
69
79
  - doc-out: Output full document to current destination file
70
80
  - execute-checklist-po: Run task execute-checklist (checklist po-master-checklist)
81
+ - jira-setup: Configure Jira integration (provider, project, organization)
71
82
  - shard-doc {document} {destination}: run the task shard-doc against the optionally provided document to the specified destination
83
+ - sync-story-to-jira {story}: Sync approved story tasks/subtasks to Jira (task sync-story-to-jira)
84
+ - sync-epic-to-jira {epic-number}: Sync all approved stories from an epic to Jira (task sync-stories-batch-to-jira with scope epic-N)
85
+ - update-epic-status {epic-number}: Batch update status of all stories in an epic (task update-epic-stories-jira-status)
72
86
  - validate-story-draft {story}: run the task validate-next-story against the provided story file
73
87
  - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
74
88
  - exit: Exit (confirm)
@@ -76,11 +90,18 @@ dependencies:
76
90
  checklists:
77
91
  - change-checklist.md
78
92
  - po-master-checklist.md
93
+ data:
94
+ - jira-preferences.md
79
95
  tasks:
80
96
  - correct-course.md
81
97
  - execute-checklist.md
98
+ - jira-setup.md
82
99
  - shard-doc.md
100
+ - sync-story-to-jira.md
101
+ - update-epic-stories-jira-status.md
102
+ - validate-jira-auth.md
83
103
  - validate-next-story.md
84
104
  templates:
105
+ - jira-conf-tmpl.md
85
106
  - story-tmpl.yaml
86
107
  ```
@@ -1,4 +1,7 @@
1
1
  {
2
+ "enabledMcpjsonServers": [
3
+ "atlassian"
4
+ ],
2
5
  "permissions": {
3
6
  "allow": [
4
7
  "Bash(node:*)",
@@ -80,6 +80,7 @@ commands:
80
80
  - explain: teach me what and why you did whatever you just did in detail so I can learn. Explain to me as if you were training a junior engineer.
81
81
  - review-qa: run task `apply-qa-fixes.md'
82
82
  - run-tests: Execute tests and validations (dotnet test for backend with xUnit, npm test for frontend with Vitest, dotnet format for code style, code analyzers)
83
+ - update-story-jira-status {story}: run task `update-story-jira-status.md` with the provided story file - Update story status in Jira with validation of tasks completion and QA gates
83
84
  - build: Build solution (dotnet build for backend, npm run build for frontend)
84
85
  - restore: Restore dependencies (dotnet restore for NuGet packages, npm install for Node packages)
85
86
  - exit: Say goodbye as the Developer, and then abandon inhabiting this persona
@@ -90,5 +91,7 @@ dependencies:
90
91
  tasks:
91
92
  - apply-qa-fixes.md
92
93
  - execute-checklist.md
94
+ - update-story-jira-status.md
95
+ - validate-jira-auth.md
93
96
  - validate-next-story.md
94
97
  ```
@@ -67,6 +67,8 @@ commands:
67
67
  - create-story: Create user story from requirements (task brownfield-create-story)
68
68
  - doc-out: Output full document to current destination file
69
69
  - shard-prd: run the task shard-doc.md for the provided prd.md (ask if not found)
70
+ - sync-epic-files-to-jira: Sync individual epic files from docs/prd/ to Jira (task sync-epic-files-to-jira.md)
71
+ - sync-prd-to-jira: Automatically create Jira epics and stories from PRD (task sync-prd-to-jira.md)
70
72
  - yolo: Toggle Yolo Mode
71
73
  - exit: Exit (confirm)
72
74
  dependencies:
@@ -74,6 +76,7 @@ dependencies:
74
76
  - change-checklist.md
75
77
  - pm-checklist.md
76
78
  data:
79
+ - jira-preferences.md
77
80
  - technical-preferences.md
78
81
  tasks:
79
82
  - brownfield-create-epic.md
@@ -83,6 +86,9 @@ dependencies:
83
86
  - create-doc.md
84
87
  - execute-checklist.md
85
88
  - shard-doc.md
89
+ - sync-epic-files-to-jira.md
90
+ - sync-prd-to-jira.md
91
+ - validate-jira-auth.md
86
92
  templates:
87
93
  - brownfield-prd-tmpl.yaml
88
94
  - prd-tmpl.yaml
@@ -42,6 +42,15 @@ agent:
42
42
  icon: πŸ“
43
43
  whenToUse: Use for backlog management, story refinement, acceptance criteria, sprint planning, and prioritization decisions
44
44
  customization: null
45
+ jira-config:
46
+ project-config-file: docs/jira-conf.md
47
+ global-preferences-file: .bmad-core/data/jira-preferences.md
48
+ required-project-fields:
49
+ - cloud-id: Jira Cloud ID (UUID format)
50
+ - jira-url: Full Jira instance URL
51
+ - project-key: Jira project key (e.g., PM, PROJ)
52
+ - project-name: Human-readable project name
53
+ validation: Auto-check docs/jira-conf.md before Jira operations, prompt for setup if missing
45
54
  persona:
46
55
  role: Technical Product Owner & Process Steward
47
56
  style: Meticulous, analytical, detail-oriented, systematic, collaborative
@@ -67,6 +76,8 @@ commands:
67
76
  - doc-out: Output full document to current destination file
68
77
  - execute-checklist-po: Run task execute-checklist (checklist po-master-checklist)
69
78
  - shard-doc {document} {destination}: run the task shard-doc against the optionally provided document to the specified destination
79
+ - sync-story-to-jira {story}: Sync approved story tasks/subtasks to Jira (task sync-story-to-jira)
80
+ - sync-epic-to-jira {epic-number}: Sync all approved stories from an epic to Jira (task sync-stories-batch-to-jira with scope epic-N)
70
81
  - validate-story-draft {story}: run the task validate-next-story against the provided story file
71
82
  - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
72
83
  - exit: Exit (confirm)
@@ -74,11 +85,16 @@ dependencies:
74
85
  checklists:
75
86
  - change-checklist.md
76
87
  - po-master-checklist.md
88
+ data:
89
+ - jira-preferences.md
77
90
  tasks:
78
91
  - correct-course.md
79
92
  - execute-checklist.md
80
93
  - shard-doc.md
81
- - validate-next-story.md
94
+ - sync-story-to-jira.md
95
+ - validate-jira-auth.md
96
+ - validate-next-story.md
82
97
  templates:
98
+ - jira-conf-tmpl.md
83
99
  - story-tmpl.yaml
84
100
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siesa-agents",
3
- "version": "2.1.27",
3
+ "version": "2.1.29",
4
4
  "description": "Paquete para instalar y configurar agentes SIESA en tu proyecto",
5
5
  "main": "index.js",
6
6
  "bin": {
package/vscode/mcp.json CHANGED
@@ -6,6 +6,10 @@
6
6
  "shadcn@latest",
7
7
  "mcp"
8
8
  ]
9
+ },
10
+ "atlassian-mcp-server": {
11
+ "url": "https://mcp.atlassian.com/v1/sse",
12
+ "type": "http"
9
13
  }
10
14
  }
11
15
  }