Skip to main content
Glama

kobold_abort

Stop the active text generation process on the Kobold MCP Server by using this tool. Ideal for halting ongoing tasks when needed.

Instructions

Abort the currently ongoing generation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiUrlNohttp://localhost:5001

Implementation Reference

  • Handler logic for kobold_abort (and other POST tools): validates input using AbortSchema, proxies POST request to KoboldAI /api/extra/abort endpoint, returns JSON response.
    if (postEndpoints[name]) { const { endpoint, schema } = postEndpoints[name]; const parsed = schema.safeParse(args); if (!parsed.success) { throw new Error(`Invalid arguments: ${parsed.error}`); } const result = await makeRequest(`${apiUrl}${endpoint}`, 'POST', requestData); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], isError: false, }; }
  • src/index.ts:338-338 (registration)
    Dispatch registration mapping kobold_abort to its endpoint '/api/extra/abort' and validation schema.
    kobold_abort: { endpoint: '/api/extra/abort', schema: AbortSchema },
  • src/index.ts:224-227 (registration)
    Public tool registration in ListTools response.
    name: "kobold_abort", description: "Abort the currently ongoing generation", inputSchema: zodToJsonSchema(AbortSchema), },
  • Input schema for kobold_abort tool (aliases BaseConfigSchema).
    const AbortSchema = BaseConfigSchema;
  • Helper function used by all proxy tools including kobold_abort to make HTTP requests to KoboldAI API.
    async function makeRequest(url: string, method = 'GET', body: Record<string, unknown> | null = null) { const options: RequestInit = { method, headers: body ? { 'Content-Type': 'application/json' } : undefined, }; if (body && method !== 'GET') { options.body = JSON.stringify(body); } const response = await fetch(url, options); if (!response.ok) { throw new Error(`KoboldAI API error: ${response.statusText}`); } return response.json(); }
  • Base schema extended/aliased by AbortSchema, provides optional apiUrl.
    const BaseConfigSchema = z.object({ apiUrl: z.string().default('http://localhost:5001'), });

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/PhialsBasement/KoboldCPP-MCP-Server'

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