@freelancercom/phabricator-mcp 2.0.8 → 2.0.9
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 +1 -0
- package/dist/tools/conpherence.js +1 -1
- package/dist/tools/harbormaster.js +8 -5
- package/dist/tools/phame.js +55 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -290,6 +290,7 @@ To allowlist all tools including write operations, use `"mcp__phabricator__*"` i
|
|
|
290
290
|
| Tool | Description |
|
|
291
291
|
|------|-------------|
|
|
292
292
|
| `phabricator_blog_search` | Search Phame blogs |
|
|
293
|
+
| `phabricator_blog_edit` | Create or edit a Phame blog |
|
|
293
294
|
| `phabricator_blog_post_search` | Search blog posts |
|
|
294
295
|
| `phabricator_blog_post_create` | Create a new blog post |
|
|
295
296
|
| `phabricator_blog_post_edit` | Edit an existing blog post |
|
|
@@ -8,7 +8,7 @@ export function registerConpherenceTools(server, client) {
|
|
|
8
8
|
ids: z.array(z.coerce.number()).optional().describe('Room IDs'),
|
|
9
9
|
phids: z.array(z.string()).optional().describe('Room PHIDs'),
|
|
10
10
|
participants: z.array(z.string()).optional().describe('Participant user PHIDs'),
|
|
11
|
-
|
|
11
|
+
fulltext: z.string().optional().describe('Search for rooms containing these words'),
|
|
12
12
|
})).optional().describe('Search constraints'),
|
|
13
13
|
order: z.string().optional().describe('Result order'),
|
|
14
14
|
limit: z.coerce.number().max(100).optional().describe('Maximum results (max 100)'),
|
|
@@ -10,6 +10,7 @@ export function registerHarbormasterTools(server, client) {
|
|
|
10
10
|
objectPHIDs: z.array(z.string()).optional().describe('Object PHIDs (revision or commit PHIDs)'),
|
|
11
11
|
containerPHIDs: z.array(z.string()).optional().describe('Container PHIDs'),
|
|
12
12
|
statuses: z.array(z.string()).optional().describe('Buildable statuses'),
|
|
13
|
+
manual: z.boolean().optional().describe('Filter to manual buildables only (true) or automated only (false)'),
|
|
13
14
|
})).optional().describe('Search constraints'),
|
|
14
15
|
order: z.string().optional().describe('Result order'),
|
|
15
16
|
limit: z.coerce.number().max(100).optional().describe('Maximum results (max 100)'),
|
|
@@ -26,7 +27,7 @@ export function registerHarbormasterTools(server, client) {
|
|
|
26
27
|
ids: z.array(z.coerce.number()).optional().describe('Build IDs'),
|
|
27
28
|
phids: z.array(z.string()).optional().describe('Build PHIDs'),
|
|
28
29
|
buildables: z.array(z.string()).optional().describe('Buildable PHIDs'),
|
|
29
|
-
plans: z.array(z.string()).optional().describe('Build plan PHIDs'),
|
|
30
|
+
plans: z.array(z.string()).optional().describe('Build plan PHIDs (use phabricator_build_plan_search to find these)'),
|
|
30
31
|
statuses: z.array(z.string()).optional().describe('Build statuses: building, passed, failed, aborted, error, paused'),
|
|
31
32
|
initiators: z.array(z.string()).optional().describe('PHIDs of users/objects that initiated the build'),
|
|
32
33
|
})).optional().describe('Search constraints'),
|
|
@@ -46,10 +47,12 @@ export function registerHarbormasterTools(server, client) {
|
|
|
46
47
|
phids: z.array(z.string()).optional().describe('Target PHIDs'),
|
|
47
48
|
buildPHIDs: z.array(z.string()).optional().describe('Build PHIDs'),
|
|
48
49
|
statuses: z.array(z.string()).optional().describe('Target statuses'),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
createdStart: z.coerce.number().optional().describe('Created after (epoch timestamp)'),
|
|
51
|
+
createdEnd: z.coerce.number().optional().describe('Created before (epoch timestamp)'),
|
|
52
|
+
startedStart: z.coerce.number().optional().describe('Started executing after (epoch timestamp)'),
|
|
53
|
+
startedEnd: z.coerce.number().optional().describe('Started executing before (epoch timestamp)'),
|
|
54
|
+
completedStart: z.coerce.number().optional().describe('Completed after (epoch timestamp)'),
|
|
55
|
+
completedEnd: z.coerce.number().optional().describe('Completed before (epoch timestamp)'),
|
|
53
56
|
})).optional().describe('Search constraints'),
|
|
54
57
|
order: z.string().optional().describe('Result order'),
|
|
55
58
|
limit: z.coerce.number().max(100).optional().describe('Maximum results (max 100)'),
|
package/dist/tools/phame.js
CHANGED
|
@@ -24,6 +24,61 @@ export function registerPhameTools(server, client) {
|
|
|
24
24
|
const result = await client.call('phame.blog.search', params);
|
|
25
25
|
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
26
26
|
});
|
|
27
|
+
// Edit a blog
|
|
28
|
+
server.tool('phabricator_blog_edit', 'Create or edit a Phame blog. Omit objectIdentifier to create a new blog (name is required for creation).', {
|
|
29
|
+
objectIdentifier: z.string().optional().describe('Blog PHID or ID. Omit to create a new blog.'),
|
|
30
|
+
name: z.string().optional().describe('Blog name'),
|
|
31
|
+
subtitle: z.string().optional().describe('Blog subtitle'),
|
|
32
|
+
description: z.string().optional().describe('Blog description (Remarkup)'),
|
|
33
|
+
fullDomain: z.string().optional().describe('Custom full domain for the blog'),
|
|
34
|
+
parentSite: z.string().optional().describe('Parent site name'),
|
|
35
|
+
parentDomain: z.string().optional().describe('Parent domain URL'),
|
|
36
|
+
status: z.string().optional().describe('Blog status'),
|
|
37
|
+
addSubscriberPHIDs: z.array(z.string()).optional().describe('Subscriber PHIDs to add'),
|
|
38
|
+
removeSubscriberPHIDs: z.array(z.string()).optional().describe('Subscriber PHIDs to remove'),
|
|
39
|
+
comment: z.string().optional().describe('Add a comment alongside the edit (supports Remarkup)'),
|
|
40
|
+
}, async (params) => {
|
|
41
|
+
const transactions = [];
|
|
42
|
+
if (params.name !== undefined) {
|
|
43
|
+
transactions.push({ type: 'name', value: params.name });
|
|
44
|
+
}
|
|
45
|
+
if (params.subtitle !== undefined) {
|
|
46
|
+
transactions.push({ type: 'subtitle', value: params.subtitle });
|
|
47
|
+
}
|
|
48
|
+
if (params.description !== undefined) {
|
|
49
|
+
transactions.push({ type: 'description', value: params.description });
|
|
50
|
+
}
|
|
51
|
+
if (params.fullDomain !== undefined) {
|
|
52
|
+
transactions.push({ type: 'fullDomain', value: params.fullDomain });
|
|
53
|
+
}
|
|
54
|
+
if (params.parentSite !== undefined) {
|
|
55
|
+
transactions.push({ type: 'parentSite', value: params.parentSite });
|
|
56
|
+
}
|
|
57
|
+
if (params.parentDomain !== undefined) {
|
|
58
|
+
transactions.push({ type: 'parentDomain', value: params.parentDomain });
|
|
59
|
+
}
|
|
60
|
+
if (params.status !== undefined) {
|
|
61
|
+
transactions.push({ type: 'status', value: params.status });
|
|
62
|
+
}
|
|
63
|
+
if (params.addSubscriberPHIDs !== undefined) {
|
|
64
|
+
transactions.push({ type: 'subscribers.add', value: params.addSubscriberPHIDs });
|
|
65
|
+
}
|
|
66
|
+
if (params.removeSubscriberPHIDs !== undefined) {
|
|
67
|
+
transactions.push({ type: 'subscribers.remove', value: params.removeSubscriberPHIDs });
|
|
68
|
+
}
|
|
69
|
+
if (params.comment !== undefined) {
|
|
70
|
+
transactions.push({ type: 'comment', value: params.comment });
|
|
71
|
+
}
|
|
72
|
+
if (transactions.length === 0) {
|
|
73
|
+
return { content: [{ type: 'text', text: 'No changes specified' }] };
|
|
74
|
+
}
|
|
75
|
+
const apiParams = { transactions };
|
|
76
|
+
if (params.objectIdentifier !== undefined) {
|
|
77
|
+
apiParams.objectIdentifier = params.objectIdentifier;
|
|
78
|
+
}
|
|
79
|
+
const result = await client.call('phame.blog.edit', apiParams);
|
|
80
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
81
|
+
});
|
|
27
82
|
// Search blog posts
|
|
28
83
|
server.tool('phabricator_blog_post_search', 'Search Phame blog posts', {
|
|
29
84
|
queryKey: z.string().optional().describe('Built-in query: "all", "live"'),
|
package/package.json
CHANGED