We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dsazz/mcp-confluence'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import type { PageSummary, PaginationInfo } from "../models";
import { ValidationError } from "@features/confluence/shared/validators";
import type { GetChildPagesUseCase } from "../use-cases";
import { GetChildPagesValidator } from "../validators";
/**
* Handler for getting child pages
*/
export class GetChildPagesHandler {
private validator = new GetChildPagesValidator();
constructor(private getChildPagesUseCase: GetChildPagesUseCase) {}
async handle(
parentPageId: string,
options?: { limit?: number; start?: number },
): Promise<{ pages: PageSummary[]; pagination: PaginationInfo }> {
try {
this.validator.validate(parentPageId, options);
return await this.getChildPagesUseCase.execute(parentPageId, options);
} catch (error) {
if (error instanceof ValidationError) {
throw error;
}
throw new ValidationError(
`Failed to get child pages: ${error instanceof Error ? error.message : "Unknown error"}`,
);
}
}
}