McpPromptMatching interface

The prompt conditions of an MCP rule. Present properties are ANDed.

Properties

arguments

Compared with the arguments of a prompts/get request.

descriptions

Compared with the description of each prompt in a prompts/list response. Needs methods List alone.

methods

The prompt methods to match. Omitted means Get. Names and arguments need Get alone. Titles and descriptions need List alone.

names

Compared with the prompt name of a prompts/get request.

responseContents

Compared with the text of each message, result.messages[].content.text, of a prompts/get response.

titles

Compared with the title of each prompt in a prompts/list response. Needs methods List alone.

Property Details

arguments

Compared with the arguments of a prompts/get request.

arguments?: McpArgumentMatching

Property Value

descriptions

Compared with the description of each prompt in a prompts/list response. Needs methods List alone.

descriptions?: McpStringMatching

Property Value

methods

The prompt methods to match. Omitted means Get. Names and arguments need Get alone. Titles and descriptions need List alone.

methods?: string[]

Property Value

string[]

names

Compared with the prompt name of a prompts/get request.

names?: McpStringMatching

Property Value

responseContents

Compared with the text of each message, result.messages[].content.text, of a prompts/get response.

responseContents?: McpStringMatching

Property Value

titles

Compared with the title of each prompt in a prompts/list response. Needs methods List alone.

titles?: McpStringMatching

Property Value