@@ -10,11 +10,12 @@ import { zodToJsonSchema } from "zod-to-json-schema";
10
10
import {
11
11
createMeeting ,
12
12
CreateMeetingOptionsSchema ,
13
+ deleteMeeting ,
14
+ DeleteMeetingOptionsSchema ,
13
15
ListMeetingOptionsSchema ,
14
16
listMeetings ,
15
17
} from "./operations/meeting.js" ;
16
18
import { z } from "zod" ;
17
- import { getAccessToken } from "./common/auth.js" ;
18
19
19
20
const server = new Server (
20
21
{
@@ -41,6 +42,11 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
41
42
description : "List scheduled meetings" ,
42
43
inputSchema : zodToJsonSchema ( ListMeetingOptionsSchema ) ,
43
44
} ,
45
+ {
46
+ name : "delete_meeting" ,
47
+ description : "Delete a meeting with a given ID" ,
48
+ inputSchema : zodToJsonSchema ( DeleteMeetingOptionsSchema ) ,
49
+ } ,
44
50
] ,
45
51
} ;
46
52
} ) ;
@@ -66,6 +72,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
66
72
content : [ { type : "text" , text : JSON . stringify ( result , null , 2 ) } ] ,
67
73
} ;
68
74
}
75
+
76
+ case "delete_meeting" : {
77
+ const args = DeleteMeetingOptionsSchema . parse ( request . params . arguments ) ;
78
+ const result = await deleteMeeting ( args ) ;
79
+ return {
80
+ content : [ { type : "text" , text : result } ] ,
81
+ } ;
82
+ }
69
83
}
70
84
} catch ( error ) {
71
85
if ( error instanceof z . ZodError ) {
0 commit comments