git-mob-mcp-server 1.0.9 → 1.0.10
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.
@@ -14,7 +14,14 @@ const annotations = {
|
|
14
14
|
};
|
15
15
|
const callback = async () => {
|
16
16
|
const { ok, value } = await listMobSessionCoauthorTrailers();
|
17
|
-
|
17
|
+
if (!ok) {
|
18
|
+
return { isError: true, content: [{ type: "text", text: value }] };
|
19
|
+
}
|
20
|
+
const lines = value.split("\n").filter((line) => line.trim() !== "");
|
21
|
+
return {
|
22
|
+
isError: false,
|
23
|
+
content: lines.map((line) => ({ type: "text", text: line })),
|
24
|
+
};
|
18
25
|
};
|
19
26
|
const tool = {
|
20
27
|
name,
|
@@ -13,7 +13,14 @@ const annotations = {
|
|
13
13
|
};
|
14
14
|
const callback = async () => {
|
15
15
|
const { ok, value } = await listMobSessionCoauthors();
|
16
|
-
|
16
|
+
if (!ok) {
|
17
|
+
return { isError: true, content: [{ type: "text", text: value }] };
|
18
|
+
}
|
19
|
+
const lines = value.split("\n").filter((line) => line.trim() !== "");
|
20
|
+
return {
|
21
|
+
isError: false,
|
22
|
+
content: lines.map((line) => ({ type: "text", text: line })),
|
23
|
+
};
|
17
24
|
};
|
18
25
|
const tool = {
|
19
26
|
name,
|
@@ -14,7 +14,14 @@ const annotations = {
|
|
14
14
|
};
|
15
15
|
const callback = async () => {
|
16
16
|
const { ok, value } = await listCoauthors();
|
17
|
-
|
17
|
+
if (!ok) {
|
18
|
+
return { isError: true, content: [{ type: "text", text: value }] };
|
19
|
+
}
|
20
|
+
const lines = value.split("\n").filter((line) => line.trim() !== "");
|
21
|
+
return {
|
22
|
+
isError: false,
|
23
|
+
content: lines.map((line) => ({ type: "text", text: line })),
|
24
|
+
};
|
18
25
|
};
|
19
26
|
const tool = {
|
20
27
|
name,
|