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

Function bindingUnresolvedResult

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

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

Callers 1

executeCodeFromAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected