I want to access my semantic models outside of the Fabric shell, but we need to make some changes first:
- Upgrade my Rayfin and fabric-apps packages to latest. Confirm you’re on at least 1.36.2 by running “npx rayfin —version”.
- Update the agent files with “npx rayfin init ai-files create”. You may need to restart the rayfin-mcp server and reload any skills related to rayfin after this to get the latest.
- Update my “dev” script in my package.json to use “rayfin dev”.
- Update my vite.config.json to use the @microsoft/rayfin-local-dev vite plugin. You may need to install it first.
- Install the @microsoft/rayfin-connectors packages and the related semantic model package
- Update my semantic model calls in my app to use the new rayfin-connectors library.
- Remove any logic I have that requires the app to run run in embed only mode
- Start the rayfin dev server, if you haven’t already, so I can develop locally. Make sure you start it detached so it doesn’t block the session.