public sealed class SearchMcpServersRequest : IPageRequest, IMessage<SearchMcpServersRequest>, IEquatable<SearchMcpServersRequest>, IDeepCloneable<SearchMcpServersRequest>, IBufferMessage, IMessageReference documentation and code samples for the Agent Registry v1 API class SearchMcpServersRequest.
Message for searching MCP Servers
Implements
IPageRequest, IMessageSearchMcpServersRequest, IEquatableSearchMcpServersRequest, IDeepCloneableSearchMcpServersRequest, IBufferMessage, IMessageNamespace
Google.Cloud.AgentRegistry.V1Assembly
Google.Cloud.AgentRegistry.V1.dll
Constructors
SearchMcpServersRequest()
public SearchMcpServersRequest()SearchMcpServersRequest(SearchMcpServersRequest)
public SearchMcpServersRequest(SearchMcpServersRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
SearchMcpServersRequest |
Properties
PageSize
public int PageSize { get; set; }Optional. The maximum number of search results to return per page. The page
size is capped at 100, even if a larger value is specified. A negative
value will result in an INVALID_ARGUMENT error. If unspecified or set to
0, a default value of 20 will be used. The server may return fewer
results than requested.
| Property Value | |
|---|---|
| Type | Description |
int |
|
PageToken
public string PageToken { get; set; }Optional. If present, retrieve the next batch of results from the preceding
call to this method. page_token must be the value of next_page_token
from the previous response. The values of all other method parameters, must
be identical to those in the previous call.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Parent
public string Parent { get; set; }Required. Parent value for SearchMcpServersRequest. Format:
projects/{project}/locations/{location}.
| Property Value | |
|---|---|
| Type | Description |
string |
|
ParentAsLocationName
public LocationName ParentAsLocationName { get; set; }LocationName-typed view over the Parent resource name property.
| Property Value | |
|---|---|
| Type | Description |
LocationName |
|
SearchString
public string SearchString { get; set; }Optional. Search criteria used to select the MCP Servers to return. If no search criteria is specified then all accessible MCP Servers will be returned.
Search expressions can be used to restrict results based upon searchable
fields, where the operators can be used along with the suffix wildcard
symbol *. See
instructions
for more details.
Allowed operators: =, :, NOT, AND, OR, and ().
Searchable fields:
| Field | = |
: |
* |
Keyword Search |
|---|---|---|---|---|
| mcpServerId | Yes | Yes | Yes | Included |
| name | No | Yes | Yes | Included |
| displayName | No | Yes | Yes | Included |
Examples:
mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"to find the MCP Server with the specified MCP Server ID.name:importantto find MCP Servers whose name containsimportantas a word.displayName:works*to find MCP Servers whose display name contains words that start withworks.planner OR bookingto find MCP Servers whose metadata contains the wordsplannerorbooking.mcpServerId:service-id AND (displayName:planner OR displayName:booking)to find MCP Servers whose MCP Server ID containsservice-idand whose display name containsplannerorbooking.
| Property Value | |
|---|---|
| Type | Description |
string |
|