(input: {
readonly role: string;
readonly integration: string;
readonly message: string;
readonly candidates: readonly string[];
})
| 900 | * carries the same three facts for the same reason. |
| 901 | */ |
| 902 | const bindingUnresolvedResult = (input: { |
| 903 | readonly role: string; |
| 904 | readonly integration: string; |
| 905 | readonly message: string; |
| 906 | readonly candidates: readonly string[]; |
| 907 | }): McpToolResult => ({ |
| 908 | content: [ |
| 909 | { |
| 910 | type: "text", |
| 911 | text: |
| 912 | input.candidates.length > 0 |
| 913 | ? `${input.message} Choose one of ${input.candidates.join(", ")}.` |
| 914 | : input.message, |
| 915 | }, |
| 916 | ], |
| 917 | structuredContent: { |
| 918 | status: "error", |
| 919 | error: "binding_unresolved", |
| 920 | role: input.role, |
| 921 | integration: input.integration, |
| 922 | candidates: input.candidates, |
| 923 | }, |
| 924 | isError: true, |
| 925 | }); |
| 926 | |
| 927 | const renderedInAppResult = (input: { |
| 928 | readonly code: string; |
no outgoing calls
no test coverage detected