internaltool-mcp 1.2.0 → 1.3.0
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.
- package/index.js +14 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -118,6 +118,20 @@ function registerUserTools(server) {
|
|
|
118
118
|
return call(() => api.get(`/api/users/directory${qs}`))
|
|
119
119
|
}
|
|
120
120
|
)
|
|
121
|
+
|
|
122
|
+
server.tool(
|
|
123
|
+
'get_my_tasks',
|
|
124
|
+
'Get all tasks assigned to you. Optionally filter by column. Use this to find your active work before a hotfix or priority switch.',
|
|
125
|
+
{
|
|
126
|
+
column: z.enum(['backlog', 'todo', 'in_progress', 'in_review', 'done'])
|
|
127
|
+
.optional()
|
|
128
|
+
.describe('Filter to a specific column — e.g. "in_progress" to find your active task'),
|
|
129
|
+
},
|
|
130
|
+
async ({ column } = {}) => {
|
|
131
|
+
const qs = column ? `?column=${encodeURIComponent(column)}` : ''
|
|
132
|
+
return call(() => api.get(`/api/users/me/tasks${qs}`))
|
|
133
|
+
}
|
|
134
|
+
)
|
|
121
135
|
}
|
|
122
136
|
|
|
123
137
|
function registerProjectTools(server, { isAdmin, scopedProjectId }) {
|
package/package.json
CHANGED