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

Function bindingUnresolvedResult

packages/hosts/mcp/src/tool-server.ts:931–954  ·  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

929 * carries the same three facts for the same reason.
930 */
931const bindingUnresolvedResult = (input: {
932 readonly role: string;
933 readonly integration: string;
934 readonly message: string;
935 readonly candidates: readonly string[];
936}): McpToolResult => ({
937 content: [
938 {
939 type: "text",
940 text:
941 input.candidates.length > 0
942 ? `${input.message} Choose one of ${input.candidates.join(", ")}.`
943 : input.message,
944 },
945 ],
946 structuredContent: {
947 status: "error",
948 error: "binding_unresolved",
949 role: input.role,
950 integration: input.integration,
951 candidates: input.candidates,
952 },
953 isError: true,
954});
955
956const renderedInAppResult = (input: {
957 readonly code: string;

Callers 1

executeCodeFromAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected