Troubleshooting
Use this page to quickly diagnose and fix common issues. If you’re new, start with the Quick fixes. For specific errors, jump to Common issues or Error messages.
TL;DR — Quick fixes
- Ensure prerequisites are installed (correct .NET SDK, IDE version, required workloads).
- Run
SetupServerSessionfirst in every new workspace. - Verify paths: workspace,
.sln, and.csprojare correct and accessible.
Before you begin
| Requirement | Recommended |
|---|---|
| OS | Windows/macOS/Linux (64-bit) |
| IDE | VS Code (latest) / Visual Studio (latest) |
| .NET SDK | 9.0 |
Common issues
NuGet package restore fails
Symptoms
- When the IDE restores NuGet packages, the operation fails.

Likely causes
- You’re targeting platforms not supported by Grial: macOS, Windows, Linux, or Tizen.
Fix
- Target only Android and iOS frameworks in your .NET MAUI app.
Verify
- NuGet packages restore successfully.
Copilot chat messages disappear after sending
Symptoms
- After you send a message to the AI agent and it starts answering, the message disappears.
Likely causes
- A VS Code issue where, when the permission prompt for an MCP tool appears, chat messages briefly disappear.
Fix
- Resize the GitHub Copilot chat panel (drag the edge) to force a refresh.
Verify
- The MCP tool permission request is visible and you can allow or deny it.
Logs don’t appear in the VS Code Output panel
Symptoms
- When the server starts, no logs are displayed in the Output tab.
Likely causes
- In some cases, the first time you run an MCP server, logs don’t show up.
Fix
- Restart the Grial MCP Server.
Verify
- Logs are printed in the Output tab.
"XAML tools don’t work” (no pages injected / edits not applied)
Symptoms
- Running a content tool does nothing or only partially updates files.
- Screens/assets don’t appear in the project structure.
Likely causes
SetupServerSessionwas not run or used incorrect paths.- Solution/project files were moved or renamed.
- IDE workloads are missing / project didn’t load correctly.
Fix
- Re-run
SetupServerSessionwith correctworkspacePath,solutionPath, andprojectPath. - Reopen the solution so the IDE reloads changes.
- Confirm the project builds from the CLI.
Verify
- New XAML/C# files are present.
- Build succeeds and pages are navigable.
“The catalog is not complete”
Symptoms
ListPagesCatalogreturns only a few pages/templates.
Likely causes
- The app linked to your session is Free. You need a Starter or Pro license to see more content.
Fix
- List the apps available to your user with
ListGrialAppsIds. - Select one that is Starter or Pro.
- Add the selected app to your session using
AddAppIdToSession.
Verify
ListPagesCatalognow shows the full catalog available to your license tier.
Localization/translation didn’t create .resx files
Symptoms
LocalizeSolutionorTranslatefinishes but no new.resxfiles appear.
Likely causes
- Invalid locale codes.
Fix
- Ensure the base resources file exists and is writable.
- Retry
Translatewith valid BCP-47 locales (e.g.,en-US,es-ES).
Verify
- New
AppResources.*.resxfiles exist with translated keys.
Error messages
Match the message (or a close substring) to find the meaning and fix.
| Message / Pattern | Meaning | Resolution |
|---|---|---|
No active session found | Tools called before session setup | Run SetupServerSession with correct paths |
Solution or project not found | Invalid .sln / .csproj path | Fix paths; ensure files exist and are loaded |
Failed to fetch catalog | Network/auth/version issue | Check network; re-authenticate; update tooling |
Write permission denied | Workspace is read-only | Adjust permissions; retry as appropriate |
Invalid locale code | Locale not recognized | Use BCP-47 codes (e.g., en-GB, es-UY) |
Contact support
You can send the Grial MCP Server logs with your issue, and we’ll be glad to help.
- Reproduce the issue.
- Go to
~/.GrialMcp/logsand find your latest logs. - Note your environment:
- OS + version
- IDE + version
- .NET SDK version
- Include the exact tool call and parameters (omit secrets).
note
Never share credentials or private source code in diagnostics. Redact paths or project names if needed.
Reset & repair
- Reload the IDE after installing or updating tooling.
- Re-run session setup with correct paths.
- Clear and reinitialize by deleting the
~/.GrialMcpfolder, then run “Grial: Add Local MCP Server” again to recreate configuration.
Avoid manually editing hidden session files unless a guide explicitly says so.