umtri-mcp 1.4.1 → 1.4.2
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/core/tools.js +3 -3
- package/package.json +1 -1
package/core/tools.js
CHANGED
|
@@ -592,6 +592,8 @@ export function registerTools(server, { api }) {
|
|
|
592
592
|
},
|
|
593
593
|
);
|
|
594
594
|
|
|
595
|
+
// visibility 인자는 두지 않는다. 배지를 밖에 보이는 경로가 없어 받아도 버려졌고(#70), 트리는
|
|
596
|
+
// 경로·연동·버그까지 담은 지도라 공개 여부는 에이전트가 아니라 사람이 정할 일이다.
|
|
595
597
|
server.registerTool(
|
|
596
598
|
'create_project',
|
|
597
599
|
{
|
|
@@ -601,17 +603,15 @@ export function registerTools(server, { api }) {
|
|
|
601
603
|
slug: z.string().regex(/^[a-z0-9][a-z0-9-]{0,49}$/).describe('URL slug. Lowercase letters, digits, hyphens; 1–50 chars.'),
|
|
602
604
|
name: z.string().min(1).max(200).describe('Display name.'),
|
|
603
605
|
description: z.string().optional(),
|
|
604
|
-
visibility: z.enum(['private', 'unlisted', 'public']).optional().describe('Defaults to private.'),
|
|
605
606
|
org: z.string().min(1).optional().describe('Team slug to create the ground in. Omit for your personal space. You must own the team.'),
|
|
606
607
|
}),
|
|
607
608
|
},
|
|
608
|
-
async ({ slug, name, description,
|
|
609
|
+
async ({ slug, name, description, org }) => {
|
|
609
610
|
try {
|
|
610
611
|
const markupWarnings = toolMarkupCheck({ description });
|
|
611
612
|
const body = { slug, name };
|
|
612
613
|
if (org !== undefined) body.org = org;
|
|
613
614
|
if (description !== undefined) body.description = description;
|
|
614
|
-
if (visibility !== undefined) body.visibility = visibility;
|
|
615
615
|
const created = await api.post('/api/projects', body);
|
|
616
616
|
return jsonResult(markupWarnings.length ? { ...created, warnings: markupWarnings } : created);
|
|
617
617
|
} catch (e) { return errorResult(e); }
|
package/package.json
CHANGED