← All courses

EDGE FDE

Intermediate

Talk to tools with MCP

Plug new tools into your Apple AI app without rewriting the chat loop.

Raw JSON-RPC MCP server and client mapped into Foundation Models Tool types.

Speak MCP in Swift. Keep LanguageModelSession as the chat loop. iOS 27 and macOS 27 only.

Lessons

  1. Why MCP sits next to your chat tools
  2. Read the raw JSON-RPC messages
  3. Build a small on-device MCP server
  4. Map MCP tools into Foundation Models
  5. Plug in a tool without rewriting chat

Key concepts

Takeaways

Agent briefs

Related courses

Run tools in a safe box · Stop prompt attacks and leaks · Make several agents agree first · Core AI vs Core ML vs MLX