Skip to main content
Glama

Notion MCP Server

by Kazy1014
GetDatabaseUseCase.ts668 B
/** * GetDatabaseUseCase - データベース取得のユースケース */ import { IDatabaseRepository } from '../../domain/repositories/IDatabaseRepository.js'; import { Database } from '../../domain/entities/Database.js'; import { DatabaseId } from '../../domain/value-objects/DatabaseId.js'; export interface GetDatabaseInput { databaseId: string; } export class GetDatabaseUseCase { constructor(private readonly databaseRepository: IDatabaseRepository) {} async execute(input: GetDatabaseInput): Promise<Database | null> { const databaseId = new DatabaseId(input.databaseId); return await this.databaseRepository.findById(databaseId); } }

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