Skip to main content
Glama

Notion MCP Server

by Kazy1014
CreatePageUseCase.ts678 B
/** * CreatePageUseCase - ページ作成のユースケース */ import { IPageRepository } from '../../domain/repositories/IPageRepository.js'; import { Page, PageProperties } from '../../domain/entities/Page.js'; import { DatabaseId } from '../../domain/value-objects/DatabaseId.js'; export interface CreatePageInput { databaseId: string; properties: PageProperties; } export class CreatePageUseCase { constructor(private readonly pageRepository: IPageRepository) {} async execute(input: CreatePageInput): Promise<Page> { const databaseId = new DatabaseId(input.databaseId); return await this.pageRepository.create(databaseId, input.properties); } }

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/Kazy1014/notion-mcp'

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