feat: validate receive message contract args
This commit is contained in:
@@ -172,7 +172,13 @@ func main() {
|
||||
fail("tools/call win_helper_version", fmt.Errorf("helper_name = %q, want ISphereWinHelper", helperName))
|
||||
}
|
||||
|
||||
receiveResult, err := session.CallTool(ctx, &mcp.CallToolParams{Name: "isphere_receive_messages", Arguments: map[string]any{"limit": 5}})
|
||||
receiveResult, err := session.CallTool(ctx, &mcp.CallToolParams{Name: "isphere_receive_messages", Arguments: map[string]any{
|
||||
"source_preference": "local_readonly",
|
||||
"preview": true,
|
||||
"cursor": "",
|
||||
"include_attachment_metadata": true,
|
||||
"limit": 5,
|
||||
}})
|
||||
if err != nil {
|
||||
fail("tools/call isphere_receive_messages", err)
|
||||
}
|
||||
@@ -302,6 +308,10 @@ func verifyConfiguredReceiveSource(ctx context.Context) (int, int, int, int) {
|
||||
"conversation_id": "project-room@conference.imopenfire1-lanzhou|sender@imopenfire1-lanzhou",
|
||||
"query": "report",
|
||||
"since": "2026-07-07T11:30:00Z",
|
||||
"source_preference": "auto",
|
||||
"preview": true,
|
||||
"cursor": "",
|
||||
"include_attachment_metadata": true,
|
||||
"limit": 5,
|
||||
}})
|
||||
if err != nil {
|
||||
@@ -427,6 +437,10 @@ func verifyConfiguredDirectorySource(ctx context.Context) (int, int, int, int) {
|
||||
"conversation_id": "project-room@conference.imopenfire1-lanzhou|sender@imopenfire1-lanzhou",
|
||||
"query": "dir-report",
|
||||
"since": "2026-07-07T11:30:00Z",
|
||||
"source_preference": "auto",
|
||||
"preview": true,
|
||||
"cursor": "",
|
||||
"include_attachment_metadata": true,
|
||||
"limit": 5,
|
||||
}})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user