odata-data-sharing

A guide for sharing data between Mendix applications through OData, a web API format for reading and changing data between systems. It covers published services, client connections, external entities, and view entities that keep the public API separate from internal data structures.

In plain words
What is it for?
Publishing or consuming Mendix OData services, sharing data between apps, creating read-only or read-write APIs, and connecting actions or external entities.
Why use it?
It helps apps communicate without exposing their internal data model directly. Separating the API contract makes it easier to change one app without breaking the other.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mendixlabs/mxcli/odata-data-sharing
Any agent
npx skills add mendixlabs/mxcli --skill odata-data-sharing
Clone the repo
git clone --depth 1 https://github.com/mendixlabs/mxcli

Made for: Claude Code, Codex.

Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,804 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00054 $0.02804
Opus 5 $0.00027 $0.01402
Sonnet 5 $0.00011 $0.00561
Haiku 4.5 $0.00005 $0.00280

Measured yesterday against content hash a604f960bdbd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

odata-data-sharing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/mendix/odata-data-sharing/SKILL.md · 305 lines

How it starts

The opening of the file, as written. The whole thing — 305 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OData Data Sharing Between Mendix Apps

This skill covers how to use OData services to share data between Mendix applications, with emphasis on using view entities as an abstraction layer to decouple the API contract from the internal domain model.

Reference files

SKILL.md covers the architecture, the contract rules, and the conventions. The long build-outs are next door:

  • reference/walkthroughs.md — four complete builds, start to finish: a read-only API behind view entities, a non-persistable published entity, a read-write API with microflow handlers, publishing a microflow as an OData action, and the GraphQL variant.
  • reference/errors-and-auth.md — which HTTP status each capability can actually return, the authentication methods and what Basic auth costs, and the configuration microflow for custom headers.

When to Use This Skill

  • User asks to expose data from one Mendix app to another
  • User wants to set up inter-app communication via OData
  • User needs to create an API layer that abstracts internal entities
  • User asks about external entities, consumed/published OData services
  • User wants to decouple modules or apps for independent deployment
  • User asks about the view entity pattern for OData services
  • User asks about local metadata files or offline OData development

MetadataUrl Formats

CREATE ODATA CLIENT supports three formats for the MetadataUrl parameter:

Format Example Stored In Model
HTTP(S) URL https://api.example.com/odata/v4/$metadata Unchanged
Absolute file:// URI file:///Users/team/contracts/service.xml Unchanged
Relative path ./metadata/service.xml or metadata/service.xml Normalized to absolute file://

Path Normalization:

  • Relative paths (with or without ./) are automatically converted to absolute file:// URLs in the Mendix model
  • This ensures Studio Pro can properly detect local file vs HTTP metadata sources (radio button in UI)
  • Example: ./metadata/service.xmlfile:///absolute/path/to/project/metadata/service.xml

Read the full file on GitHub · 305 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 305 lines · 54 tokens per session scan A a604f960bdbd

Subscribe to this mod's changes

odata-data-sharing is a skill published in the GitHub repository mendixlabs/mxcli (115 stars, last pushed 2d ago), licensed Apache-2.0. It adds 54 tokens to every session and 2,804 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.