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

Function bindingUnresolvedResult

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

940 * carries the same three facts for the same reason.
941 */
942const bindingUnresolvedResult = (input: {
943 readonly role: string;
944 readonly integration: string;
945 readonly message: string;
946 readonly candidates: readonly string[];
947}): McpToolResult => ({
948 content: [
949 {
950 type: "text",
951 text:
952 input.candidates.length > 0
953 ? `${input.message} Choose one of ${input.candidates.join(", ")}.`
954 : input.message,
955 },
956 ],
957 structuredContent: {
958 status: "error",
959 error: "binding_unresolved",
960 role: input.role,
961 integration: input.integration,
962 candidates: input.candidates,
963 },
964 isError: true,
965});
966
967const renderedInAppResult = (input: {
968 readonly code: string;

Callers 1

executeCodeFromAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected