Back to blog

April 4, 2026·5 min·Nima Nejat

We built a TypeScript-to-Swift compiler. Here's why..

Everything points toward Apple connecting MCP to App Intents. The problem: they're Swift-only. We built Axint so TypeScript and Python developers can ship them too.

axintappleapp-intentscompiler

I kept staring at Apple's App Intents documentation thinking the same thing: this API is going to matter more than anyone realizes, and almost nobody is going to adopt it.

App Intents power Siri, Shortcuts, and Spotlight. Based on everything Apple has signaled — the on-device models, the Shortcuts expansion, the App Intents overhaul — our read is that they're connecting MCP to App Intents. The framework has been quietly expanding since WWDC 2022, and the trajectory points one way.

But here's the thing — App Intents are Swift-only. You need Xcode, a Mac, and genuine fluency in Apple's protocol-oriented style. Every intent requires a struct, parameter wrappers, an Info.plist fragment, entitlements XML, and manual project configuration. For a single intent.

Meanwhile, the AI agent ecosystem — MCP, Cursor, Claude Code — is exploding, and it's almost entirely TypeScript and Python. These two worlds don't talk to each other.

So we wrote a compiler

Axint takes a defineIntent() call in TypeScript or Python and emits production-quality Swift. Not templates with placeholders. Not boilerplate you have to finish. Actual, idiomatic Swift that reads like a senior Apple engineer wrote it.

typescript const search = defineIntent({ name: "SearchNotes", title: "Search Notes", description: "Full-text search across all notes", params: { query: param.string("Search term"), limit: param.int("Max results", { default: 10 }), }, });

Run axint compile and you get a Swift struct with @Parameter decorators, proper LocalizedStringResource titles, an Info.plist fragment, and entitlements XML. You can [eject at any time](/blog/swiftui-views-from-typescript) and hand-edit the output.

The bet

Everything Apple has shown points toward MCP and App Intents converging. If we're right — and the signals are strong — every agent interaction on Apple devices will route through App Intents. Developers who adopt early, especially those who aren't Swift-native, have a massive window right now.

Axint is how they get there. A Python developer who's never opened Xcode can ship a production App Intent in under a minute. With the [built-in MCP server](/blog/axint-mcp-one-click-install), their AI coding assistant can do it for them.

We open-sourced everything. [Star the repo](https://github.com/agenticempire/axint), try the [playground](https://axint.ai), and if you want your name on the compiler — we're looking for contributors.