We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/j0hanz/todokit-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
storage_mutations.ts•501 B
import { createErrorResponse } from './errors.js';
import type { MatchOutcome } from './resolve.js';
import type { Todo } from './types.js';
export type TodoUpdate = Partial<Omit<Todo, 'id' | 'createdAt'>>;
export function createNotFoundOutcome(id: string): MatchOutcome {
return {
kind: 'error',
response: createErrorResponse(
'E_NOT_FOUND',
`Todo with ID ${id} not found`
),
};
}
export type CompleteTodoOutcome =
| MatchOutcome
| { kind: 'already'; todo: Todo };