@geeks.ltd/geeks-amp-mcp 1.0.3 → 1.0.5
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/README.md +10 -3
- package/dist/index.js +186 -2
- package/dist/tools.js +126 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Local MCP server for Cursor that authenticates to your AMP backend via OAuth 2.0
|
|
|
6
6
|
|
|
7
7
|
1. **First use** – When you call an AMP tool, the server opens your browser to AMP’s login. After you sign in, AMP redirects to `http://127.0.0.1:5005/callback`. The server exchanges the code for access and refresh tokens and stores them (e.g. in `~/.amp-mcp/credentials.json`).
|
|
8
8
|
2. **Later uses** – The server reuses the stored access token. When it expires, it uses the refresh token; if refresh fails, it runs the browser flow again.
|
|
9
|
-
3. **Tools** – `get_projects`, `get_amp_item_with_test_cases`, `submit_amp_progress_update`, `add_amp_test_case_references`, `submit_pen_test_review`, `
|
|
9
|
+
3. **Tools** – `get_user_projects`, `get_projects`, `get_amp_item`, `get_amp_comments`, `get_amp_item_with_test_cases`, `create_amp`, `add_amp_update`, `submit_amp_progress_update`, `add_amp_test_case_references`, `submit_pen_test_review`, `audit_tdd_amp`, and `audit_pen_test_amp` are forwarded to AMP with `Authorization: Bearer <token>`. `get_auth_status` reports the local authentication state without calling AMP.
|
|
10
10
|
|
|
11
11
|
## Prerequisites
|
|
12
12
|
|
|
@@ -64,14 +64,21 @@ In `.cursor/mcp.json` (project or global), use the **local server** via npx (no
|
|
|
64
64
|
## Tools
|
|
65
65
|
|
|
66
66
|
- **get_auth_status** – Returns `Authenticated: YES` or `Authenticated: NO` (no browser).
|
|
67
|
-
- **
|
|
68
|
-
- **
|
|
67
|
+
- **get_user_projects** – Non-archived projects the authenticated user belongs to: `{ projects: [{ id, key, name }] }`, ordered by key. Use this before `create_amp`.
|
|
68
|
+
- **get_projects** – Legacy global project search (optional `searchTerm`, `limit`); returns id + name only, not user-scoped. Do not use for create flows.
|
|
69
|
+
- **get_amp_item** – Rich details for an authorized AMP by `ampReference` (`12345` or `AMP-12345`): metadata, project, type, priority, status/progress/stage, completion, assignees, workplans, tags, URLs, linked AMPs, extension relationships (`extendedFrom`, `extensions`), pen-test review fields, and test case references. It does not return full comment history; use `get_amp_comments` for the conversation.
|
|
70
|
+
- **get_amp_comments** – Authorized AMP comment history, newest first. Required: `ampReference`. Optional: `column` (`Team`, `Client`, `Director`, or `all`) and `limit` (1–500). With no column, AMP returns every column visible to the authenticated user's role; with no limit, it returns all visible comments. The response reports visible/returned counts and truncation, and includes decoded text, author, column, status/progress changes, assignees, and attachment URLs.
|
|
71
|
+
- **create_amp** – Create a new work item (status New). Required: `project` (key or GUID from `get_user_projects`), `subject`, `type`, `priority`. Optional: `description`, `url`, `note`, `visualSpecLink`, `linkedWorkItems`, `parentAmpReference`. Response includes `reference`, `projectId`, `projectKey`, `projectName`, `url`, etc.
|
|
72
|
+
- **get_amp_item_with_test_cases** – Existing TDD/pen-test-focused subset by `ampReference`. It requires authenticated access. Prefer `get_amp_item` plus `get_amp_comments` for general agent workflows.
|
|
73
|
+
- **add_amp_update** – Team-column update (mirrors Form_EnterComment team fields except assignees/attachments). Required: `ampReference` plus at least one of `message`, `teamPercentageDone` (0–100, step 10), `teamProgress` (Not started, TDD, Developing, Testing, Done, Blocked), or `stage` (Test, Local, UAT, Live, Pre-Live). Stage changes post a separate `"Done on: {stage}"` comment.
|
|
69
74
|
- **submit_amp_progress_update** – Team board: optional `teamPercentageDone` (0, 10, …, 100) and/or `message`; at least one required. Omits `message` when only updating % so AMP can default the comment to `"{n}% completed"`.
|
|
70
75
|
- **add_amp_test_case_references** – `ampReference`, required `testCaseReferences` (array of strings), optional `message` after refs; same as AMP “Update test cases” (`[#+REF#]` markers).
|
|
71
76
|
- **submit_pen_test_review** – Record a completed Cursor AI pen test review: required `ampReference` and `scope` (branch, commits, files, or PR reviewed); optional `findings` (one per line, or `"None"`), `falsePositives` (`"N/A"` if none), `knownRisks` (`"N/A"` if none), `summary`. Posts a team comment with `[#PENTEST:COMPLETE#]` and sets review metadata on the work item.
|
|
72
77
|
- **audit_tdd_amp** – Same as above plus auth status message for `/audit-tdd-amp` flows.
|
|
73
78
|
- **audit_pen_test_amp** – AMP item + pen test review status + test cases, plus auth status message for `/run-pen-test` flows.
|
|
74
79
|
|
|
80
|
+
For general agent workflows, call `get_amp_item` to understand the work item, then `get_amp_comments` for acceptance details, blockers, and conversation history before using write tools such as `add_amp_update`.
|
|
81
|
+
|
|
75
82
|
## Cursor command: `/run-pen-test`
|
|
76
83
|
|
|
77
84
|
Copy `.cursor/commands/run-pen-test.md` into your project (or use it from a repo that includes it). The command loads AMP context via MCP, runs a security review, and after human confirmation calls `submit_pen_test_review` to persist the outcome on AMP.
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,69 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
|
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { ensureAccessToken, getAuthStatus } from "./auth.js";
|
|
10
10
|
import { callAmpTool } from "./tools.js";
|
|
11
|
+
const teamProgressValues = [
|
|
12
|
+
"Not started",
|
|
13
|
+
"TDD",
|
|
14
|
+
"Developing",
|
|
15
|
+
"Testing",
|
|
16
|
+
"Done",
|
|
17
|
+
"Blocked",
|
|
18
|
+
];
|
|
19
|
+
const stageValues = ["Test", "Local", "UAT", "Live", "Pre-Live"];
|
|
20
|
+
const createAmpSchema = z.object({
|
|
21
|
+
project: z
|
|
22
|
+
.string()
|
|
23
|
+
.min(1)
|
|
24
|
+
.describe("Project key (preferred) or GUID from get_user_projects"),
|
|
25
|
+
subject: z.string().min(1).describe("Work item subject/title"),
|
|
26
|
+
type: z.string().min(1).describe("Work item type (AMP-defined value)"),
|
|
27
|
+
priority: z.string().min(1).describe("Priority (AMP-defined value)"),
|
|
28
|
+
description: z.string().optional().describe("Optional description"),
|
|
29
|
+
url: z.string().optional().describe("Optional URL"),
|
|
30
|
+
note: z.string().optional().describe("Optional note"),
|
|
31
|
+
visualSpecLink: z.string().optional().describe("Optional visual spec link"),
|
|
32
|
+
linkedWorkItems: z
|
|
33
|
+
.array(z.string().min(1))
|
|
34
|
+
.optional()
|
|
35
|
+
.describe("Optional linked AMP references"),
|
|
36
|
+
parentAmpReference: z
|
|
37
|
+
.string()
|
|
38
|
+
.optional()
|
|
39
|
+
.describe("Optional parent AMP reference, e.g. '12345' or 'AMP-12345'"),
|
|
40
|
+
});
|
|
41
|
+
const addAmpUpdateSchema = z
|
|
42
|
+
.object({
|
|
43
|
+
ampReference: z.string().min(1).describe("e.g. '12345' or 'AMP-12345'"),
|
|
44
|
+
message: z.string().optional().describe("Team comment text"),
|
|
45
|
+
teamPercentageDone: z
|
|
46
|
+
.number()
|
|
47
|
+
.int()
|
|
48
|
+
.min(0)
|
|
49
|
+
.max(100)
|
|
50
|
+
.refine((n) => n % 10 === 0, "Must be a multiple of 10 (0, 10, …, 100)")
|
|
51
|
+
.optional()
|
|
52
|
+
.describe("Team % done (0–100, step 10)"),
|
|
53
|
+
teamProgress: z
|
|
54
|
+
.enum(teamProgressValues)
|
|
55
|
+
.optional()
|
|
56
|
+
.describe("Team progress: Not started, TDD, Developing, Testing, Done, Blocked"),
|
|
57
|
+
stage: z
|
|
58
|
+
.enum(stageValues)
|
|
59
|
+
.optional()
|
|
60
|
+
.describe('Workflow stage; posts separate "Done on: {stage}" comment when changed'),
|
|
61
|
+
})
|
|
62
|
+
.superRefine((val, ctx) => {
|
|
63
|
+
const hasUpdate = (val.message !== undefined && val.message.trim().length > 0) ||
|
|
64
|
+
val.teamPercentageDone !== undefined ||
|
|
65
|
+
val.teamProgress !== undefined ||
|
|
66
|
+
val.stage !== undefined;
|
|
67
|
+
if (!hasUpdate) {
|
|
68
|
+
ctx.addIssue({
|
|
69
|
+
code: z.ZodIssueCode.custom,
|
|
70
|
+
message: "Provide at least one of message, teamPercentageDone, teamProgress, or stage.",
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
});
|
|
11
74
|
const submitAmpProgressUpdateSchema = z
|
|
12
75
|
.object({
|
|
13
76
|
ampReference: z.string().min(1).describe("e.g. '12345' or 'AMP-12345'"),
|
|
@@ -51,8 +114,8 @@ async function main() {
|
|
|
51
114
|
],
|
|
52
115
|
};
|
|
53
116
|
});
|
|
54
|
-
// get_projects –
|
|
55
|
-
server.tool("get_projects", "
|
|
117
|
+
// get_projects – legacy global project search (not user-scoped)
|
|
118
|
+
server.tool("get_projects", "Legacy: global search of non-archived AMP projects (id + name only, not scoped to the current user). Prefer get_user_projects for create_amp flows.", {
|
|
56
119
|
searchTerm: z.string().optional().describe("Optional search term to filter projects by name or ID"),
|
|
57
120
|
limit: z.number().optional().describe("Maximum number of projects to return (default: 100)"),
|
|
58
121
|
}, async ({ searchTerm, limit, }) => {
|
|
@@ -64,6 +127,11 @@ async function main() {
|
|
|
64
127
|
args.limit = limit;
|
|
65
128
|
return callAmpTool("get_projects", args, token);
|
|
66
129
|
});
|
|
130
|
+
// get_user_projects – projects the authenticated user can use
|
|
131
|
+
server.tool("get_user_projects", "List non-archived projects the authenticated user belongs to (id, key, name), ordered by key. Use before create_amp to pick a valid project key or GUID.", {}, async () => {
|
|
132
|
+
const token = await ensureAccessToken();
|
|
133
|
+
return callAmpTool("get_user_projects", {}, token);
|
|
134
|
+
});
|
|
67
135
|
// get_amp_item_with_test_cases – ensure token, then call AMP
|
|
68
136
|
server.tool("get_amp_item_with_test_cases", "Get AMP (work item) details and all its test case references for a given AMP item. Use the reference number (e.g. 12345) or AMP-12345 format. Returns subject, note, status, progress (workflow stage), teamPercentageDone (team board % done, 0–100 in steps of 10), project, pen test review status (hasPenTestReview, penTestReviewCompleted, penTestReviewCompletedBy, penTestReviewCommentId), and a list of test case references (e.g. +AVFD) with the comment they appear in.", {
|
|
69
137
|
ampReference: z.string().describe("AMP item reference number, e.g. '12345' or 'AMP-12345'"),
|
|
@@ -71,6 +139,122 @@ async function main() {
|
|
|
71
139
|
const token = await ensureAccessToken();
|
|
72
140
|
return callAmpTool("get_amp_item_with_test_cases", { ampReference }, token);
|
|
73
141
|
});
|
|
142
|
+
// get_amp_item – rich authorized work-item details without comment history
|
|
143
|
+
server.tool("get_amp_item", "Get rich details for an AMP work item, including project, type, priority, status, progress, stage, assignees, workplans, tags, links, extension relationships (extendedFrom / extensions), URLs, completion, and test case references. Use get_amp_comments separately for its conversation history.", {
|
|
144
|
+
ampReference: z
|
|
145
|
+
.string()
|
|
146
|
+
.min(1)
|
|
147
|
+
.describe("AMP item reference number, e.g. '12345' or 'AMP-12345'"),
|
|
148
|
+
}, async ({ ampReference }) => {
|
|
149
|
+
const token = await ensureAccessToken();
|
|
150
|
+
return callAmpTool("get_amp_item", { ampReference }, token);
|
|
151
|
+
});
|
|
152
|
+
// get_amp_comments – authorized, role-filtered AMP conversation history
|
|
153
|
+
server.tool("get_amp_comments", "Get comments on an AMP that the authenticated user is allowed to view, ordered newest first. Returns all visible comments by default. Optionally filter to Team, Client, or Director and/or limit the result.", {
|
|
154
|
+
ampReference: z
|
|
155
|
+
.string()
|
|
156
|
+
.min(1)
|
|
157
|
+
.describe("AMP item reference number, e.g. '12345' or 'AMP-12345'"),
|
|
158
|
+
column: z
|
|
159
|
+
.string()
|
|
160
|
+
.optional()
|
|
161
|
+
.describe("Optional comment column: 'Team', 'Client', 'Director', or 'all'. Defaults to all columns visible to the user."),
|
|
162
|
+
limit: z
|
|
163
|
+
.number()
|
|
164
|
+
.int()
|
|
165
|
+
.min(1)
|
|
166
|
+
.max(500)
|
|
167
|
+
.optional()
|
|
168
|
+
.describe("Optional maximum number of newest comments to return (1-500). Omit to return all visible comments."),
|
|
169
|
+
}, async ({ ampReference, column, limit, }) => {
|
|
170
|
+
const token = await ensureAccessToken();
|
|
171
|
+
const args = { ampReference };
|
|
172
|
+
if (column !== undefined)
|
|
173
|
+
args.column = column;
|
|
174
|
+
if (limit !== undefined)
|
|
175
|
+
args.limit = limit;
|
|
176
|
+
return callAmpTool("get_amp_comments", args, token);
|
|
177
|
+
});
|
|
178
|
+
// create_amp – new work item (status New)
|
|
179
|
+
server.tool("create_amp", "Create a new AMP work item with status New. Required project is a project key (preferred) or GUID from get_user_projects. User must belong to the project. Extension items add Team + Client column comments automatically.", {
|
|
180
|
+
project: z
|
|
181
|
+
.string()
|
|
182
|
+
.min(1)
|
|
183
|
+
.describe("Project key (preferred) or GUID from get_user_projects"),
|
|
184
|
+
subject: z.string().min(1).describe("Work item subject/title"),
|
|
185
|
+
type: z.string().min(1).describe("Work item type (AMP-defined value)"),
|
|
186
|
+
priority: z.string().min(1).describe("Priority (AMP-defined value)"),
|
|
187
|
+
description: z.string().optional().describe("Optional description"),
|
|
188
|
+
url: z.string().optional().describe("Optional URL"),
|
|
189
|
+
note: z.string().optional().describe("Optional note"),
|
|
190
|
+
visualSpecLink: z
|
|
191
|
+
.string()
|
|
192
|
+
.optional()
|
|
193
|
+
.describe("Optional visual spec link"),
|
|
194
|
+
linkedWorkItems: z
|
|
195
|
+
.array(z.string().min(1))
|
|
196
|
+
.optional()
|
|
197
|
+
.describe("Optional linked AMP references"),
|
|
198
|
+
parentAmpReference: z
|
|
199
|
+
.string()
|
|
200
|
+
.optional()
|
|
201
|
+
.describe("Optional parent AMP reference, e.g. '12345' or 'AMP-12345'"),
|
|
202
|
+
}, async (raw) => {
|
|
203
|
+
const parsed = createAmpSchema.parse(raw);
|
|
204
|
+
const token = await ensureAccessToken();
|
|
205
|
+
const args = {
|
|
206
|
+
project: parsed.project,
|
|
207
|
+
subject: parsed.subject,
|
|
208
|
+
type: parsed.type,
|
|
209
|
+
priority: parsed.priority,
|
|
210
|
+
};
|
|
211
|
+
if (parsed.description !== undefined)
|
|
212
|
+
args.description = parsed.description;
|
|
213
|
+
if (parsed.url !== undefined)
|
|
214
|
+
args.url = parsed.url;
|
|
215
|
+
if (parsed.note !== undefined)
|
|
216
|
+
args.note = parsed.note;
|
|
217
|
+
if (parsed.visualSpecLink !== undefined)
|
|
218
|
+
args.visualSpecLink = parsed.visualSpecLink;
|
|
219
|
+
if (parsed.linkedWorkItems !== undefined)
|
|
220
|
+
args.linkedWorkItems = parsed.linkedWorkItems;
|
|
221
|
+
if (parsed.parentAmpReference !== undefined)
|
|
222
|
+
args.parentAmpReference = parsed.parentAmpReference;
|
|
223
|
+
return callAmpTool("create_amp", args, token);
|
|
224
|
+
});
|
|
225
|
+
// add_amp_update – team-column update (Form_EnterComment team fields)
|
|
226
|
+
server.tool("add_amp_update", 'Post a team-column update on an AMP item (mirrors Form_EnterComment team fields except assignees and attachments). At least one of message, teamPercentageDone, teamProgress, or stage required. Changing stage posts a separate "Done on: {stage}" comment.', {
|
|
227
|
+
ampReference: z.string().min(1).describe("e.g. '12345' or 'AMP-12345'"),
|
|
228
|
+
message: z.string().optional().describe("Team comment text"),
|
|
229
|
+
teamPercentageDone: z
|
|
230
|
+
.number()
|
|
231
|
+
.int()
|
|
232
|
+
.min(0)
|
|
233
|
+
.max(100)
|
|
234
|
+
.optional()
|
|
235
|
+
.describe("Team % done (0–100, step 10)"),
|
|
236
|
+
teamProgress: z
|
|
237
|
+
.enum(teamProgressValues)
|
|
238
|
+
.optional()
|
|
239
|
+
.describe("Team progress: Not started, TDD, Developing, Testing, Done, Blocked"),
|
|
240
|
+
stage: z
|
|
241
|
+
.enum(stageValues)
|
|
242
|
+
.optional()
|
|
243
|
+
.describe('Workflow stage; posts separate "Done on: {stage}" comment when changed'),
|
|
244
|
+
}, async (raw) => {
|
|
245
|
+
const parsed = addAmpUpdateSchema.parse(raw);
|
|
246
|
+
const token = await ensureAccessToken();
|
|
247
|
+
const args = { ampReference: parsed.ampReference };
|
|
248
|
+
if (parsed.message !== undefined && parsed.message.trim() !== "")
|
|
249
|
+
args.message = parsed.message.trim();
|
|
250
|
+
if (parsed.teamPercentageDone !== undefined)
|
|
251
|
+
args.teamPercentageDone = parsed.teamPercentageDone;
|
|
252
|
+
if (parsed.teamProgress !== undefined)
|
|
253
|
+
args.teamProgress = parsed.teamProgress;
|
|
254
|
+
if (parsed.stage !== undefined)
|
|
255
|
+
args.stage = parsed.stage;
|
|
256
|
+
return callAmpTool("add_amp_update", args, token);
|
|
257
|
+
});
|
|
74
258
|
// submit_amp_progress_update – team board % done and/or team comment (AMP MCPServer parity)
|
|
75
259
|
server.tool("submit_amp_progress_update", "Update the AMP team board: set team % done (0, 10, …, 100) and/or append a team-column comment. Not the same as workflow progress. At least one of teamPercentageDone or a non-empty message is required.", {
|
|
76
260
|
ampReference: z.string().min(1).describe("e.g. '12345' or 'AMP-12345'"),
|
package/dist/tools.js
CHANGED
|
@@ -6,7 +6,7 @@ import { getAmpBaseUrl } from "./auth.js";
|
|
|
6
6
|
export const TOOL_DEFINITIONS = [
|
|
7
7
|
{
|
|
8
8
|
name: "get_projects",
|
|
9
|
-
description: "
|
|
9
|
+
description: "Legacy: global search of non-archived AMP projects (id + name only, not scoped to the current user). Prefer get_user_projects for create_amp flows.",
|
|
10
10
|
inputSchema: {
|
|
11
11
|
type: "object",
|
|
12
12
|
properties: {
|
|
@@ -35,6 +35,131 @@ export const TOOL_DEFINITIONS = [
|
|
|
35
35
|
required: ["ampReference"],
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
+
{
|
|
39
|
+
name: "get_amp_item",
|
|
40
|
+
description: "Get rich details for an AMP work item, including project, type, priority, status, progress, stage, assignees, workplans, tags, links, extension relationships (extendedFrom / extensions), URLs, completion, and test case references. Use get_amp_comments separately for its conversation history.",
|
|
41
|
+
inputSchema: {
|
|
42
|
+
type: "object",
|
|
43
|
+
properties: {
|
|
44
|
+
ampReference: {
|
|
45
|
+
type: "string",
|
|
46
|
+
description: "AMP item reference number, e.g. '12345' or 'AMP-12345'",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
required: ["ampReference"],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "get_amp_comments",
|
|
54
|
+
description: "Get comments on an AMP that the authenticated user is allowed to view, ordered newest first. Returns all visible comments by default. Optionally filter to Team, Client, or Director and/or limit the result.",
|
|
55
|
+
inputSchema: {
|
|
56
|
+
type: "object",
|
|
57
|
+
properties: {
|
|
58
|
+
ampReference: {
|
|
59
|
+
type: "string",
|
|
60
|
+
description: "AMP item reference number, e.g. '12345' or 'AMP-12345'",
|
|
61
|
+
},
|
|
62
|
+
column: {
|
|
63
|
+
type: "string",
|
|
64
|
+
description: "Optional comment column: 'Team', 'Client', 'Director', or 'all'. Defaults to all columns visible to the user.",
|
|
65
|
+
},
|
|
66
|
+
limit: {
|
|
67
|
+
type: "number",
|
|
68
|
+
description: "Optional maximum number of newest comments to return (1-500). Omit to return all visible comments.",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
required: ["ampReference"],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "get_user_projects",
|
|
76
|
+
description: "List non-archived projects the authenticated user belongs to (id, key, name), ordered by key. Use before create_amp to pick a valid project key or GUID.",
|
|
77
|
+
inputSchema: {
|
|
78
|
+
type: "object",
|
|
79
|
+
properties: {},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "create_amp",
|
|
84
|
+
description: "Create a new AMP work item with status New. Required project is a project key (preferred) or GUID from get_user_projects. User must belong to the project. Extension items add Team + Client column comments automatically.",
|
|
85
|
+
inputSchema: {
|
|
86
|
+
type: "object",
|
|
87
|
+
properties: {
|
|
88
|
+
project: {
|
|
89
|
+
type: "string",
|
|
90
|
+
description: "Project key (preferred) or GUID from get_user_projects",
|
|
91
|
+
},
|
|
92
|
+
subject: {
|
|
93
|
+
type: "string",
|
|
94
|
+
description: "Work item subject/title",
|
|
95
|
+
},
|
|
96
|
+
type: {
|
|
97
|
+
type: "string",
|
|
98
|
+
description: "Work item type (AMP-defined value)",
|
|
99
|
+
},
|
|
100
|
+
priority: {
|
|
101
|
+
type: "string",
|
|
102
|
+
description: "Priority (AMP-defined value)",
|
|
103
|
+
},
|
|
104
|
+
description: {
|
|
105
|
+
type: "string",
|
|
106
|
+
description: "Optional description",
|
|
107
|
+
},
|
|
108
|
+
url: {
|
|
109
|
+
type: "string",
|
|
110
|
+
description: "Optional URL",
|
|
111
|
+
},
|
|
112
|
+
note: {
|
|
113
|
+
type: "string",
|
|
114
|
+
description: "Optional note",
|
|
115
|
+
},
|
|
116
|
+
visualSpecLink: {
|
|
117
|
+
type: "string",
|
|
118
|
+
description: "Optional visual spec link",
|
|
119
|
+
},
|
|
120
|
+
linkedWorkItems: {
|
|
121
|
+
type: "array",
|
|
122
|
+
items: { type: "string" },
|
|
123
|
+
description: "Optional linked AMP references",
|
|
124
|
+
},
|
|
125
|
+
parentAmpReference: {
|
|
126
|
+
type: "string",
|
|
127
|
+
description: "Optional parent AMP reference, e.g. '12345' or 'AMP-12345'",
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
required: ["project", "subject", "type", "priority"],
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "add_amp_update",
|
|
135
|
+
description: "Post a team-column update on an AMP item (mirrors Form_EnterComment team fields except assignees and attachments). At least one of message, teamPercentageDone, teamProgress, or stage required. Changing stage posts a separate \"Done on: {stage}\" comment.",
|
|
136
|
+
inputSchema: {
|
|
137
|
+
type: "object",
|
|
138
|
+
properties: {
|
|
139
|
+
ampReference: {
|
|
140
|
+
type: "string",
|
|
141
|
+
description: "e.g. '12345' or 'AMP-12345'",
|
|
142
|
+
},
|
|
143
|
+
message: {
|
|
144
|
+
type: "string",
|
|
145
|
+
description: "Team comment text",
|
|
146
|
+
},
|
|
147
|
+
teamPercentageDone: {
|
|
148
|
+
type: "number",
|
|
149
|
+
description: "Team % done; integer 0–100, multiple of 10",
|
|
150
|
+
},
|
|
151
|
+
teamProgress: {
|
|
152
|
+
type: "string",
|
|
153
|
+
description: "Team progress: Not started, TDD, Developing, Testing, Done, or Blocked",
|
|
154
|
+
},
|
|
155
|
+
stage: {
|
|
156
|
+
type: "string",
|
|
157
|
+
description: "Workflow stage: Test, Local, UAT, Live, or Pre-Live",
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
required: ["ampReference"],
|
|
161
|
+
},
|
|
162
|
+
},
|
|
38
163
|
{
|
|
39
164
|
name: "submit_amp_progress_update",
|
|
40
165
|
description: "Set team board % done (0–100, multiple of 10) and/or append a team-column comment. At least one of teamPercentageDone or non-empty message required. If only teamPercentageDone is sent, AMP sets comment text to \"{n}% completed\".",
|