Skip to content

Commit 6a5c73a

Browse files
authored
Merge pull request #22536 from unoplatform/dev/mara/vs-mcp-workaround
2 parents 90ba5fd + beb990b commit 6a5c73a

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed
13.8 KB
Loading

doc/articles/common-issues-ai-agents.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@ The getting started for Claude, Codex and Copilot CLI use the `dnx` command, whi
1010

1111
If you want to use the App MCP with .NET 9 projects, you'll need to change `dnx` to `uno-devserver` and install it using `dotnet tool install -g uno.devserver`.
1212

13+
## The App MCP does not appear in Visual Studio
14+
15+
1. Open the `.vs/mcp.json` file in Visual Studio. It is located in your solution's root directory.
16+
2. Verify that the Uno MCP server entry is present:
17+
18+
```json
19+
"uno": {
20+
"url": "https://mcp.platform.uno/v1"
21+
}
22+
```
23+
24+
3. If the entry is missing, add it to the `.vs/mcp.json` file and restart Visual Studio.
25+
4. If the entry exists but the server shows as disconnected, click on "Reconnect" in the file editor:
26+
27+
![Visual Studio MCP reconnect in mcp.json](Assets/vs-mcp-reconnect.png)
28+
29+
The Uno App MCP should now appear in the list of MCPs in Visual Studio.
30+
1331
## The App MCP turns red in Visual Studio 2022/2026
1432

1533
In Visual Studio, the App MCP might turn red in some occasions. To fix this issue, click on the three dots on the right and select `Reload`.

doc/articles/explore-your-app-ai-agents.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ In your agent, there are some phrases that can be used to nudge the agent to use
5555
> Your agent will execute tools from our MCPs, you will need to approve them at your convenience.
5656
> [!NOTE]
5757
> In Visual Studio 2022/2026 MCPs might not be enabled automatically. Make sure to [click the "tools" icon](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022#configuration-example-with-a-github-mcp-server) in the chat window to check both Uno Platform MCPs.
58+
>
59+
> If the Uno App MCP is missing, see [how to make the App MCP appear in Visual Studio](xref:Uno.UI.CommonIssues.AIAgents#the-app-mcp-does-not-appear-in-visual-studio).
5860
5961
- To ask the agent to explain what MVUX is:
6062

doc/articles/features/using-the-uno-mcps.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ This MCP is running locally and provides agents with the ability to interact wit
5151

5252
These tools give "eyes" and "hands" to Agents in order to validate their assumptions regarding the actions they take, and the code they generate.
5353

54+
> [!NOTE]
55+
> If using Visual Studio 2022/2026, sometimes the Uno App MCP does not appear in the Visual Studio tools list. See [how to make the App MCP appear in Visual Studio](xref:Uno.UI.CommonIssues.AIAgents#the-app-mcp-does-not-appear-in-visual-studio).
56+
5457
### App MCP Tools
5558

5659
The Community license MCP app tools are:

doc/articles/migrating-from-previous-releases.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ To upgrade to the latest version of Uno Platform, [follow our guide](xref:Uno.De
1010

1111
Uno Platform 6.5 does not contain breaking changes that require attention when upgrading
1212

13+
> [!NOTE]
14+
> Uno App MCP: if using Visual Studio 2022/2026, sometimes the Uno App MCP does not appear in the Visual Studio tools list. See [how to make the App MCP appear in Visual Studio](xref:Uno.UI.CommonIssues.AIAgents#the-app-mcp-does-not-appear-in-visual-studio).
15+
1316
## Uno Platform 6.4
1417

1518
Uno Platform 6.4 contains an Uno.Extensions breaking changes that require attention when upgrading:

0 commit comments

Comments
 (0)