|
2 | 2 | title: "Maia Plan as MCP Server" |
3 | 3 | url: /developerportal/maia-plan-mcp/ |
4 | 4 | description: "Describes how to configure and use Maia Plan as an MCP server to retrieve project scope and solution content." |
5 | | -weight: 10 |
| 5 | +weight: 2 |
6 | 6 | --- |
7 | 7 |
|
8 | 8 | ## Introduction |
@@ -74,13 +74,85 @@ The steps to configure your MCP client depend on the client you are using. The f |
74 | 74 |
|
75 | 75 | To configure Claude Code to connect to the Maia Plan MCP Server, follow these steps: |
76 | 76 |
|
77 | | -1. Open your Claude Code configuration file. |
78 | | -2. Add the Maia Plan MCP Server to the list of available MCP servers. |
79 | | -3. Specify the server URL and authentication method (using the `MENDIX_TOKEN` environment variable). |
80 | | -4. Save the configuration file. |
| 77 | +1. Open your Claude Code configuration file. This is available at the following paths: |
| 78 | + |
| 79 | + * Windows: `C:/Users/<YourUsername>/.claude/settings.json` |
| 80 | + * macOS/Linux: `~/.claude/settings.json` |
| 81 | + |
| 82 | +2. Add the Maia Plan MCP Server to the list of available MCP servers and specify the server URL and authentication method (using the `MENDIX_TOKEN` environment variable). To do that, add the following server configuration: |
| 83 | + |
| 84 | + ```json |
| 85 | + { |
| 86 | + "servers": { |
| 87 | + "mendixMcp": { |
| 88 | + "type": "http", |
| 89 | + "url": "https://plan.home.mendix.com/mcp-server/mcp", |
| 90 | + "headers": { |
| 91 | + "Authorization": "Bearer $MENDIX_TOKEN" |
| 92 | + } |
| 93 | + } |
| 94 | + } |
| 95 | + } |
| 96 | + ``` |
| 97 | + |
| 98 | +3. Save the configuration file. |
| 99 | +4. Verify the setup by following these steps: |
| 100 | + |
| 101 | + 1. Run the `claude mcp list` command. |
| 102 | + 2. In the Claude Code chat, enter `Show my recent plans`. |
| 103 | + 3. In the Claude Code chat, enter `Show details for plan UUID <your-plan-uuid>`. |
81 | 104 |
|
82 | 105 | For detailed instructions, refer to the [Claude Code documentation](https://claude.com/docs/connectors/building/mcp). |
83 | 106 |
|
| 107 | +#### Configuring Visual Studio Code Copilot |
| 108 | + |
| 109 | +To configure Visual Studio Code Copilot to connect to the Maia Plan MCP server, follow these steps: |
| 110 | + |
| 111 | +1. Open the Visual Studio Code MCP configuration file: |
| 112 | + |
| 113 | + * User-level: `C:/Users/<YourUsername>/AppData/Roaming/Code/User/mcp.json` |
| 114 | + * Workspace-level (optional): `.vscode/mcp.json` |
| 115 | + |
| 116 | +2. Add the Maia Plan MCP Server to the list of available MCP servers and specify the server URL and authentication method (using the `MENDIX_TOKEN` environment variable). To do that, add the following server configuration: |
| 117 | + |
| 118 | + ```json |
| 119 | + { |
| 120 | + "servers": { |
| 121 | + "mendixMcp": { |
| 122 | + "type": "http", |
| 123 | + "url": "https://plan.home.mendix.com/mcp-server/mcp", |
| 124 | + "headers": { |
| 125 | + "Authorization": "Bearer ${env:MENDIX_TOKEN}" |
| 126 | + } |
| 127 | + } |
| 128 | + } |
| 129 | + } |
| 130 | + ``` |
| 131 | +3. In Visual Studio Code, follow these steps: |
| 132 | + |
| 133 | + 1. Open **Command Palette**. |
| 134 | + 2. Run **MCP: List Servers**. |
| 135 | + 3. Select **mendixMCP**. |
| 136 | + 4. Start or restart the server. |
| 137 | + 5. Accept the trust prompt if needed. |
| 138 | + |
| 139 | +4. Verify the setup by entering the following in the Visual Studio Code Copilot chat: |
| 140 | + |
| 141 | + 1. `Show my recent plans` |
| 142 | + 2. `Show details for plan UUID <your-plan-uuid>` |
| 143 | + |
| 144 | +##### Automatically Starting the Copilot MCP |
| 145 | + |
| 146 | +You can optionally choose to automatically start configured MCP servers for Visual Studio Code Copilot chat. To do that, add the following setting to the settings file (found at `C:/Users/<YourUsername>/AppData/Roaming/Code/User/settings.json`): |
| 147 | + |
| 148 | +```json |
| 149 | +"chat.mcp.autostart": true |
| 150 | +``` |
| 151 | + |
| 152 | +If the server is not automatically started, reload or restart Visual Studio Code. |
| 153 | + |
| 154 | +If you do not set the automatic start option, you can still start servers using **MCP: List Servers**. |
| 155 | + |
84 | 156 | #### Configuring Other MCP Clients |
85 | 157 |
|
86 | 158 | For other MCP clients, refer to the client documentation for instructions on adding external MCP servers and configuring authentication. Most MCP clients support environment variable-based authentication, which is the recommended approach. |
|
0 commit comments