mcp-use TypeScript API
    Preparing search index...

    Type Alias ResourceTemplateCompletions<TUriTemplate>

    ResourceTemplateCompletions: string extends TUriTemplate
        ? Partial<Record<string, ResourceTemplateCompleter>>
        : Partial<
            Record<
                ExtractTemplateVariables<TUriTemplate>,
                ResourceTemplateCompleter,
            >,
        >

    Per-variable completion map inferred from an RFC 6570 URI template.

    Literal templates accept only variables declared by the template. A widened string template accepts arbitrary string keys because its variables cannot be known at compile time.

    Type Parameters

    • TUriTemplate extends string

      URI template whose variables become map keys.