Skip to main content
Glama
6-get_head_changeset.ts530 B
import assert from "node:assert"; import { SdfApiClient } from "../sdf_api_client.ts"; export default async function get_head_changeset(sdfApiClient: SdfApiClient) { const workspaceId = sdfApiClient.workspaceId; const data = await sdfApiClient.call({ route: "list_open_change_sets", routeVars: { workspaceId, }, }); assert(data.defaultChangeSetId, "Expected headChangeSetId"); const head = data.changeSets.find((c) => c.id === data.defaultChangeSetId); assert(head, "Expected a HEAD changeset"); }

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/systeminit/si'

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