Preface
- Who this book is for
- The two layers of this book
- What you’ll build
- How it’s organized
- Conventions
- A promise and a warning
Chapter 1. What is an AI-native app
- A change of front door
- What “AI-native” means (and what it doesn’t)
- The two directions of the arrow
- MCP in plain language
- The anatomy of what you’ll build
- What you need before you start
- Chapter summary
Chapter 2. Set up your workshop: environment and first project
- The pieces we’ll install (and why)
- The short path: install PHP and Laravel in one go
- Install Node.js
- The editor: Visual Studio Code
- Create the project
- Start the server
- Put the project under version control
- A first “with AI” gesture
- Chapter summary
Chapter 3. Your first MCP server and your first tool
- The idea in one sentence
- Install the official package
- Create your first tool
- Register the server
- Test it from an assistant
- A design note: small, honest tools
- Chapter summary
Chapter 4. Real data: OAuth and the external API
- OAuth explained from scratch
- Register your app with the provider
- The two routes of the flow
- Store the tokens safely
- Refresh the token before it expires
- Close the loop: real data in your tool
- Chapter summary
Chapter 5. Real AI: the LLM and the proactive digest
- Two AIs, don’t confuse them
- Calling a model from your code
- The prompt matters more than the model
- From reactive to proactive: the weekly digest
- Chapter summary
Chapter 6. From prototype to product: plans, deployment, and security
- Plans: the upgrade trigger must be felt
- Deployment: get it off your machine
- Security: the non-negotiable minimum
- Differentiate where it matters
- Chapter summary
Chapter 7. Launch: put it in front of real users
- The asset almost nobody has: the mobile demo
- The channels, one by one
- The golden rule of communities
- The counterintuitive idea: reactivate before you acquire
- Measure what matters
- Chapter summary
Chapter 8. Building with AI: the method behind the method
- AI doesn’t replace your judgment; it amplifies it
- Where AI shines in a project like this
- The method in four habits
- How this book was written
- The full circle
- Chapter summary