Skip to content

Commit 35c7d64

Browse files
authored
fix: support nested mcm server click param option (#523)
1 parent 10f82e0 commit 35c7d64

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

types/chat.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,16 @@ export interface ConversationClickResult extends ConversationClickParams {
517517
success: boolean
518518
}
519519

520+
interface OptionValueItem {
521+
[key: string]: string
522+
}
523+
524+
type OptionValueType = string | OptionValueItem[]
525+
520526
export interface McpServerClickParams {
521527
id: string
522528
title?: string
523-
optionsValues?: Record<string, string>
529+
optionsValues?: Record<string, OptionValueType>
524530
}
525531

526532
export interface McpServerClickResult extends McpServerClickParams {

0 commit comments

Comments
 (0)