MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / bindingUnresolvedResult

Function bindingUnresolvedResult

packages/hosts/mcp/src/tool-server.ts:902–925  ·  view source on GitHub ↗
(input: {
  readonly role: string;
  readonly integration: string;
  readonly message: string;
  readonly candidates: readonly string[];
})

Source from the content-addressed store, hash-verified

900 * carries the same three facts for the same reason.
901 */
902const 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
927const renderedInAppResult = (input: {
928 readonly code: string;

Callers 1

executeCodeFromAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected