Skip to main content
Glama
entry-executor.ts708 B
/** * Entry node executor */ import type { EntryNode } from "../../types/config.js"; import type { ExecutionContext } from "../context.js"; import { logger } from "../../logger.js"; export function executeEntryNode( node: EntryNode, toolInput: Record<string, unknown>, context: ExecutionContext ): { output: unknown; nextNode: string } { logger.debug(`Executing entry node: ${node.id}`); // Entry node receives tool input and initializes context // The input is already in the context, so we just pass it through const output = toolInput; context.setNodeOutput(node.id, output); context.addHistory(node.id, toolInput, output); return { output, nextNode: node.next, }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TeamSparkAI/mcpGraph'

If you have feedback or need assistance with the MCP directory API, please join our Discord server