Skip to content

Commit 4968c40

Browse files
committed
fix: prettify
1 parent 09f309e commit 4968c40

File tree

1 file changed

+33
-48
lines changed

1 file changed

+33
-48
lines changed

tools.ts

Lines changed: 33 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -374,12 +374,8 @@ export function registerSessionTools(server: McpServer) {
374374
}
375375
);
376376

377-
server.tool(
378-
"get_code_of_conduct",
379-
"Get the SITCON Code of Conduct (CoC) policies and guidelines.",
380-
{},
381-
async () => {
382-
const cocContent = `SITCON Code of Conduct
377+
server.tool("get_code_of_conduct", "Get the SITCON Code of Conduct (CoC) policies and guidelines.", {}, async () => {
378+
const cocContent = `SITCON Code of Conduct
383379
384380
SITCON 冀望打造屬於學生自己的舞台,而我們也致力於為社群中的每位成員提供更友善、開放的環境。我們相信每位參與社群活動的夥伴都值得被尊重,而我們會盡力提供最安全的環境,讓參與 SITCON 盛會的每位朋友能夠認識個體間的差異、在社群中相互扶助、並鼓勵每個人揮灑屬於自己生命的色彩。
385381
@@ -404,23 +400,18 @@ SITCON 冀望打造屬於學生自己的舞台,而我們也致力於為社群
404400
405401
詳細請參考:https://sitcon.org/code-of-conduct/`;
406402

407-
return {
408-
content: [
409-
{
410-
type: "text",
411-
text: cocContent
412-
}
413-
]
414-
};
415-
}
416-
);
403+
return {
404+
content: [
405+
{
406+
type: "text",
407+
text: cocContent
408+
}
409+
]
410+
};
411+
});
417412

418-
server.tool(
419-
"get_theme",
420-
"Get the SITCON 2026 Theme and its concept.",
421-
{},
422-
async () => {
423-
const themeContent = `SITCON 2026 年會主題:Jam the Chaos
413+
server.tool("get_theme", "Get the SITCON 2026 Theme and its concept.", {}, async () => {
414+
const themeContent = `SITCON 2026 年會主題:Jam the Chaos
424415
425416
時代的劇本已被打破,劃一的旋律變得七零八落在這混沌的時代,平衡能否被我們重新尋回?
426417
@@ -432,38 +423,32 @@ SITCON 冀望打造屬於學生自己的舞台,而我們也致力於為社群
432423
433424
詳細請參考:https://sitcon.org/2026/`;
434425

435-
return {
436-
content: [
437-
{
438-
type: "text",
439-
text: themeContent
440-
}
441-
]
442-
};
443-
}
444-
);
426+
return {
427+
content: [
428+
{
429+
type: "text",
430+
text: themeContent
431+
}
432+
]
433+
};
434+
});
445435

446-
server.tool(
447-
"get_sitcon_info",
448-
"Get the introduction and spirit of SITCON (Students' Information Technology Conference).",
449-
{},
450-
async () => {
451-
const sitconInfo = `SITCON 學生計算機年會 | Students' Information Technology Conference
436+
server.tool("get_sitcon_info", "Get the introduction and spirit of SITCON (Students' Information Technology Conference).", {}, async () => {
437+
const sitconInfo = `SITCON 學生計算機年會 | Students' Information Technology Conference
452438
453439
以學生為本、由學生自發舉辦,SITCON 學生計算機年會不只是學生「學以致用、教學相長」的實際展現,更冀望所有對資訊有興趣的學生,能夠在年會裏齊聚一堂,彼此激盪、傳承、啟發。
454440
455441
詳細請參考:https://sitcon.org/`;
456442

457-
return {
458-
content: [
459-
{
460-
type: "text",
461-
text: sitconInfo
462-
}
463-
]
464-
};
465-
}
466-
);
443+
return {
444+
content: [
445+
{
446+
type: "text",
447+
text: sitconInfo
448+
}
449+
]
450+
};
451+
});
467452
}
468453

469454
export default registerSessionTools;

0 commit comments

Comments
 (0)