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

Function bindingUnresolvedResult

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

959 * carries the same three facts for the same reason.
960 */
961const bindingUnresolvedResult = (input: {
962 readonly role: string;
963 readonly integration: string;
964 readonly message: string;
965 readonly candidates: readonly string[];
966}): McpToolResult => ({
967 content: [
968 {
969 type: "text",
970 text:
971 input.candidates.length > 0
972 ? `${input.message} Choose one of ${input.candidates.join(", ")}.`
973 : input.message,
974 },
975 ],
976 structuredContent: {
977 status: "error",
978 error: "binding_unresolved",
979 role: input.role,
980 integration: input.integration,
981 candidates: input.candidates,
982 },
983 isError: true,
984});
985
986const renderedInAppResult = (input: {
987 readonly code: string;

Callers 1

executeCodeFromAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected