Skip to main content
Glama
types.ts841 B
import { ErrorCode as McpErrorCode } from '@modelcontextprotocol/sdk/types.js'; export interface Caption { start: string; dur: string; text: string; } export interface VideoOptions { include_chapters?: boolean; search_term?: string; } export interface BaseToolArguments { url: string; } export interface GetVideoInfoArgs extends BaseToolArguments {} export interface GetCaptionsArgs extends BaseToolArguments { language?: string; } export interface ConvertToMarkdownArgs extends BaseToolArguments { template_name?: string; language?: string; options?: VideoOptions; } export type ToolArguments = GetVideoInfoArgs | GetCaptionsArgs | ConvertToMarkdownArgs; // Error codes export const ErrorCode = { ...McpErrorCode, NotFound: 404 }; export type ArgumentsType<T> = T extends { arguments: infer A } ? A : never;

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/nattyraz/youtube-mcp'

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