OData Managed MCP Server Configuration Reference
Look up the options that the OData managed MCP server takes in its configuration form and in --managed.config JSON.
Use this reference to:
-
Look up each option’s form label, JSON name, type, and default
-
Find the wildcard syntax for choosing which entity sets the server exposes
-
Identify the fields that each authentication mode takes
Option summary
The configuration form and the --managed.config JSON of rpk ai mcp-server create take the same options. To create a server with these options, see OData Managed MCP Server.
| Form field | JSON field | Type | Required | Default | What it sets |
|---|---|---|---|---|---|
|
|
String |
Yes |
None |
The service root that the server sends its requests to. See Service URL and $metadata. |
|
|
String |
No |
|
Where the server reads |
|
|
String, up to 3 MiB |
No |
None |
The |
|
|
String: |
No |
Detected from |
The OData version, |
|
|
List of strings |
No |
Every entity set |
Wildcard (glob) patterns for the entity sets to expose. See Filter. |
|
|
List of strings |
No |
None |
Wildcard (glob) patterns for the entity sets to leave out. See Filter. |
|
|
Boolean, for each operation |
No |
|
The tools to generate for each entity set. See Operations. |
|
|
Map of strings, from entity set name to prefix |
No |
None |
A fixed tool-name prefix for an entity set. See Name overrides. |
|
|
Integer, |
No |
|
The number of records a query asks for when the agent doesn’t set |
|
|
Integer, |
No |
|
The cap on an agent’s |
|
|
Boolean |
No |
Off |
Whether the server fetches a cross-site request forgery (CSRF) token before each write. See CSRF tokens. |
|
One of |
Object |
Yes |
None |
How the server authenticates to the service. See Authentication fields. |
|
|
String of PEM blocks |
No |
None |
Certificates to trust in addition to the system’s trusted root certificates. See TLS. |
|
|
List of strings: entity set names in |
No |
None |
Where the service keeps files for agents to read as text. See Read files as text. |
Service URL and $metadata
The Service URL field expects the service root without a query string, such as https://erp.example.com/odata/PurchaseRequisitions. When you save, Redpanda Agentic Data Plane refuses a service URL on a cloud metadata, link-local, IPv6 unique local, or cluster-local host. The server builds each request by adding an entity set and query options after it, such as <service-url>/A_PurReqnHeader?$top=50. With a query string in Service URL, the entity set and options end up inside that query string. Every request then goes to the service root.
Where the server reads $metadata depends on which option you set:
-
With neither
Metadata URLnorMetadata Contentset, from<service-url>/$metadata. -
With
Metadata URL, from that URL. Use it when the service serves$metadatasomewhere else. The server applies its authentication mode to this request. Agentic Data Plane refuses the same hosts that it refuses forService URL. -
With
Metadata Content, from XML that you paste or load from a file, up to 3 MiB. The server never fetches$metadata, so update the XML when the service’s$metadatachanges. Use it when the server can’t read$metadatafrom the service. Also use it when the tools must come from a$metadatathat you control, such as withUser OAuth. When you save, Agentic Data Plane checks theDocument Textentries against it.
To leave entity sets out, use Filter instead of deleting them from the Metadata Content XML. The server hides navigation properties only when Filter removes an entity set. Deleting an entity set from the XML hides no navigation properties. See Entity sets that Filter leaves out.
Set at most one of Metadata URL and Metadata Content. Saving with both set fails with Use either a metadata URL or metadata content, not both.
When the server reads $metadata from the service, a change to that document reaches the tools after a rebuild. Agentic Data Plane usually rebuilds the server within 10 minutes. With User OAuth, the source of $metadata also decides which callers get tools. See Metadata with User OAuth.
Version
If you leave Version unset, the server detects the version from $metadata. An Entity Data Model XML (EDMX) Version attribute that starts with 4, such as 4.0, means OData v4. A DataServiceVersion attribute that starts with 2, or an EDMX Version attribute that starts with 1, means OData v2. When $metadata declares any other version, or none, the server builds v4 requests. Set Version only when the server detects the wrong version for your service.
The version decides how the server builds its requests and the types of some tool inputs:
| Behavior | OData v2 | OData v4 |
|---|---|---|
Update request method |
|
|
Count request |
|
|
|
|
None |
Type of |
String |
Integer for |
Filter
Use Filter to expose only the entity sets that agents need. Each of its fields takes a list of wildcard (glob) patterns:
-
Include Entity Sets: With no patterns, the server starts from every entity set. With one or more, it keeps only the entity sets that match at least one pattern. -
Exclude Entity Sets: The server removes each entity set that matches any of these patterns, even one that an include pattern matches.
Each pattern must match an entity set’s whole name, such as A_PurReqnHeader. That name is the Name attribute of the EntitySet element in $metadata. Matching is case-sensitive, and patterns don’t match tool names or entity type names. Patterns can use these wildcards:
| Wildcard | Matches |
|---|---|
|
Zero or more characters |
|
Exactly one character |
|
One character from the list or range in the brackets, such as |
|
One character that isn’t in the list or range, such as |
These examples use a service with the entity sets A_PurReqnHeader, A_PurchaseRequisitionItem, A_PurReqnAccountAssignment, and Z_ChangeLog:
Include Entity Sets |
Exclude Entity Sets |
Entity sets the server exposes |
|---|---|---|
|
No patterns |
|
No patterns |
|
|
|
|
|
|
No patterns |
|
|
No patterns |
|
|
|
|
|
No patterns |
None, because the pattern must match from the start of the name |
|
No patterns |
None, because matching is case-sensitive |
A malformed pattern, such as [A-Z without its closing bracket, matches no entity set. Agentic Data Plane doesn’t report it when you save. After you save, run list_entity_sets on the server’s Inspector tab to check which entity sets the server exposes. It lists only the entity sets that the filter keeps. See Test an MCP Server’s Tools with the Inspector.
The filter also limits Document Text. Each entry must name an entity set that the filter keeps. See Read files as text.
The filter controls which tools the server has. To control which callers can use them, use access policies. See Manage Access Policies.
Entity sets that Filter leaves out
A kept entity set can still lead to a removed one through a navigation property. For example, a header’s to_Account property can lead to its account assignments. When the filter removes at least one entity set, the server closes those paths:
-
It hides each navigation property that leads to the entity type of a removed entity set. The
describe_entity_settool, theexpandinput, and the create tool’sbodydon’t offer it. -
It refuses a call that names a hidden navigation property, before the call reaches the service. It checks
filter,select,expand,orderby, and the keys inbody. -
It refuses
$rootin the same inputs, because$rootreads any entity set by name. -
It refuses
*inexpand, because*expands every navigation property.
These checks are broader than the filter patterns:
-
They ignore case.
-
They match by name. The server also hides a navigation property with the same name as a hidden one, even when it leads to a kept entity set. It refuses a plain property with that name too.
-
They look inside string literals. For example, the server refuses the filter
Note eq 'to_Account', although the name appears only inside a string. -
They treat an entity type as removed when the filter removes any entity set of that type. That holds even when the filter keeps another entity set of the same type.
To let agents use a hidden navigation property, change the filter so that it keeps every entity set of the property’s target type. If another navigation property with the same name leads to a removed entity set, the property stays hidden. For navigation properties that the server doesn’t hide, see Limitations.
Operations
In Operations, choose the tools that the server generates for each entity set. Each operation that you turn on gives each entity set one tool, named <prefix>_<operation>, such as <prefix>_count for Count. The server always generates the discovery tools list_entity_sets and describe_entity_set.
With every operation off, the server generates the query and get tools. Turning on any operation replaces that default. To keep the query and get tools, also turn on Query and Get. For example, with only Count on, each entity set gets a count tool and no query or get tool.
The file_text tools that Document Text adds don’t depend on Operations. For each tool’s inputs and results, and for entity sets without a key, see Use with agents.
Name overrides
The server names each data tool <prefix>_<operation>, with a prefix made from the entity set’s name. See Use with agents. The server shortens a generated prefix when a name is too long or when two names collide. As a result, a change to $metadata can change a prefix. To keep a prefix fixed, add a row to Name Overrides:
-
Key: The entity set’s name, exactly as$metadatawrites it, such asA_PurchaseRequisitionItem. -
Value: The prefix, such aspr_item.
The server converts the value to lowercase snake case. It splits the value at underscores and camel-case word boundaries. For example, PrItem gives the prefix pr_item, so the entity set’s query tool is pr_item_query.
The server reserves each override before it generates the other prefixes, so a generated prefix never matches an override. Follow these rules for overrides:
-
Keep each override short. The server doesn’t shorten an override.
-
Use only letters, digits, and underscores.
-
Give each entity set a different prefix. When two overrides give the same prefix, one entity set’s tools replace the other’s.
The describe_entity_set tool accepts the prefix in place of the entity set’s name.
Page sizes
The query tools always ask the service for a page of records with $top:
-
Default Page Size: The$topthat a query sends when the agent doesn’t settop. A value of0gives the default of 50. -
Max Page Size: The cap on an agent’stop. The server lowers a largertopto this value. A value of0gives the default of 500.
Lower Max Page Size to protect a slow service from large queries. Keep Default Page Size at or below Max Page Size. The server doesn’t lower Default Page Size to Max Page Size. Agents read later pages with the query tool’s skip input.
CSRF tokens
Some services refuse a write unless the client first fetches a CSRF token. For such a service, turn on Enable Csrf. It matters only when Create, Update, or Delete is on. With it on, the server makes two requests for each create, update, or delete:
-
The server sends a
GETrequest to<service-url>/with the headerX-CSRF-Token: Fetchand its usual authentication. -
The server sends the write with the returned token in its
X-CSRF-Tokenheader, and with the cookies from the token response.
Query, get, and count requests don’t change. If the service returns no token, the write fails. See Troubleshooting.
Authentication fields
To choose an authentication mode, see Authentication.
Each field whose label ends in Secret Ref takes the name of a secret in the secret store, such as ODATA_PASSWORD. Secret names use UPPER_SNAKE_CASE. In the form, choose an existing secret or create a new one. Each mode takes these fields:
| Mode | Form field | JSON field | Type | Required | What it sets |
|---|---|---|---|---|---|
|
None |
|
Empty object |
Not applicable |
Nothing. In JSON, set |
|
|
|
String |
Yes |
The secret that holds the token, without the word |
|
|
String |
No |
Nothing. The server ignores it and always sends |
|
|
|
|
String |
Yes |
The secret that holds the key. |
|
|
String |
Yes |
The header or query parameter that carries the key, such as |
|
|
|
String: |
Yes |
Where the server sends the key, |
|
|
|
|
String |
Yes |
The username, such as a technical user’s name. |
|
|
String |
Yes |
The secret that holds the password, or an API token that the service accepts as the password. |
|
|
|
|
String |
Yes |
The OAuth provider that holds each user’s connection to the service. To choose one, see User OAuth settings. |
|
|
List of strings |
No |
The scopes that each user’s connection must have. A user whose connection lacks one gets a |
|
|
|
String |
No |
The header that carries the user’s token. The default is |
|
|
|
String |
No |
The word before the token. The default is |
|
|
|
String |
No |
Leave it empty. The server doesn’t use it. |
|
|
|
String |
No |
Leave it empty. The server doesn’t use it, but a secret name that the secret store doesn’t hold stops the server from loading. |
|
|
|
Boolean |
No |
Leave it off. The server doesn’t use it. |
TLS
For a service whose certificate comes from a private certificate authority (CA), add the CA’s PEM certificate to CA Certificates in TLS. For a service with a self-signed certificate, add that certificate instead. Upload a .pem, .crt, or .cer file, or paste the PEM blocks. The server trusts these certificates in addition to the system’s trusted root certificates. It trusts them only for its own requests to the service, including the $metadata fetch. Agentic Data Plane refuses a private key or an expired certificate in this field. For the format rules, see Trusted certificates.