Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-jgt87-copilot-studio-mcp": {
"command": "npx",
"args": [
"-y",
"copilot-studio-mcp"
],
"env": {
"CPS_WORKSPACE": "${workspaceFolder}",
"CPS_TENANT_ID": "organizations",
"CPS_CLIENT_ID": "51f81489-12ee-4a9e-aaae-a2591f45987d",
"CPS_READ_ONLY": "<VALUE>",
"CPS_TOOLS": "full",
"PAC_PATH": "<VALUE>",
"DOTNET_ROOT": "<VALUE>",
"CPS_AGENT_ID": "<VALUE>",
"CPS_CACHE_DIR": "<VALUE>",
"CPS_FLOW_SCOPE": "<VALUE>",
"CPS_GRAPH_SCOPE": "<VALUE>",
"CPS_PAC_PROFILE": "<VALUE>",
"CPS_ADMIN_PROFILE": "<VALUE>",
"CPS_TOOLS_EXCLUDE": "<VALUE>",
"CPS_ENVIRONMENT_ID": "<VALUE>",
"CPS_ENVIRONMENT_URL": "<VALUE>",
"CPS_GRAPH_WRITE_SCOPE": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-jgt87-copilot-studio-mcp": {
"command": "npx",
"args": [
"-y",
"copilot-studio-mcp"
],
"env": {
"CPS_WORKSPACE": "${workspaceFolder}",
"CPS_TENANT_ID": "organizations",
"CPS_CLIENT_ID": "51f81489-12ee-4a9e-aaae-a2591f45987d",
"CPS_READ_ONLY": "<VALUE>",
"CPS_TOOLS": "full",
"PAC_PATH": "<VALUE>",
"DOTNET_ROOT": "<VALUE>",
"CPS_AGENT_ID": "<VALUE>",
"CPS_CACHE_DIR": "<VALUE>",
"CPS_FLOW_SCOPE": "<VALUE>",
"CPS_GRAPH_SCOPE": "<VALUE>",
"CPS_PAC_PROFILE": "<VALUE>",
"CPS_ADMIN_PROFILE": "<VALUE>",
"CPS_TOOLS_EXCLUDE": "<VALUE>",
"CPS_ENVIRONMENT_ID": "<VALUE>",
"CPS_ENVIRONMENT_URL": "<VALUE>",
"CPS_GRAPH_WRITE_SCOPE": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-jgt87-copilot-studio-mcp": {
"command": "npx",
"args": [
"-y",
"copilot-studio-mcp"
],
"env": {
"CPS_WORKSPACE": "${workspaceFolder}",
"CPS_TENANT_ID": "organizations",
"CPS_CLIENT_ID": "51f81489-12ee-4a9e-aaae-a2591f45987d",
"CPS_READ_ONLY": "<VALUE>",
"CPS_TOOLS": "full",
"PAC_PATH": "<VALUE>",
"DOTNET_ROOT": "<VALUE>",
"CPS_AGENT_ID": "<VALUE>",
"CPS_CACHE_DIR": "<VALUE>",
"CPS_FLOW_SCOPE": "<VALUE>",
"CPS_GRAPH_SCOPE": "<VALUE>",
"CPS_PAC_PROFILE": "<VALUE>",
"CPS_ADMIN_PROFILE": "<VALUE>",
"CPS_TOOLS_EXCLUDE": "<VALUE>",
"CPS_ENVIRONMENT_ID": "<VALUE>",
"CPS_ENVIRONMENT_URL": "<VALUE>",
"CPS_GRAPH_WRITE_SCOPE": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-jgt87-copilot-studio-mcp": {
"command": "npx",
"args": [
"-y",
"copilot-studio-mcp"
],
"env": {
"CPS_WORKSPACE": "${workspaceFolder}",
"CPS_TENANT_ID": "organizations",
"CPS_CLIENT_ID": "51f81489-12ee-4a9e-aaae-a2591f45987d",
"CPS_READ_ONLY": "<VALUE>",
"CPS_TOOLS": "full",
"PAC_PATH": "<VALUE>",
"DOTNET_ROOT": "<VALUE>",
"CPS_AGENT_ID": "<VALUE>",
"CPS_CACHE_DIR": "<VALUE>",
"CPS_FLOW_SCOPE": "<VALUE>",
"CPS_GRAPH_SCOPE": "<VALUE>",
"CPS_PAC_PROFILE": "<VALUE>",
"CPS_ADMIN_PROFILE": "<VALUE>",
"CPS_TOOLS_EXCLUDE": "<VALUE>",
"CPS_ENVIRONMENT_ID": "<VALUE>",
"CPS_ENVIRONMENT_URL": "<VALUE>",
"CPS_GRAPH_WRITE_SCOPE": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-jgt87-copilot-studio-mcp": {
"command": "npx",
"args": [
"-y",
"copilot-studio-mcp"
],
"env": {
"CPS_WORKSPACE": "${workspaceFolder}",
"CPS_TENANT_ID": "organizations",
"CPS_CLIENT_ID": "51f81489-12ee-4a9e-aaae-a2591f45987d",
"CPS_READ_ONLY": "<VALUE>",
"CPS_TOOLS": "full",
"PAC_PATH": "<VALUE>",
"DOTNET_ROOT": "<VALUE>",
"CPS_AGENT_ID": "<VALUE>",
"CPS_CACHE_DIR": "<VALUE>",
"CPS_FLOW_SCOPE": "<VALUE>",
"CPS_GRAPH_SCOPE": "<VALUE>",
"CPS_PAC_PROFILE": "<VALUE>",
"CPS_ADMIN_PROFILE": "<VALUE>",
"CPS_TOOLS_EXCLUDE": "<VALUE>",
"CPS_ENVIRONMENT_ID": "<VALUE>",
"CPS_ENVIRONMENT_URL": "<VALUE>",
"CPS_GRAPH_WRITE_SCOPE": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-jgt87-copilot-studio-mcp": {
"command": "npx",
"args": [
"-y",
"copilot-studio-mcp"
],
"env": {
"CPS_WORKSPACE": "${workspaceFolder}",
"CPS_TENANT_ID": "organizations",
"CPS_CLIENT_ID": "51f81489-12ee-4a9e-aaae-a2591f45987d",
"CPS_READ_ONLY": "<VALUE>",
"CPS_TOOLS": "full",
"PAC_PATH": "<VALUE>",
"DOTNET_ROOT": "<VALUE>",
"CPS_AGENT_ID": "<VALUE>",
"CPS_CACHE_DIR": "<VALUE>",
"CPS_FLOW_SCOPE": "<VALUE>",
"CPS_GRAPH_SCOPE": "<VALUE>",
"CPS_PAC_PROFILE": "<VALUE>",
"CPS_ADMIN_PROFILE": "<VALUE>",
"CPS_TOOLS_EXCLUDE": "<VALUE>",
"CPS_ENVIRONMENT_ID": "<VALUE>",
"CPS_ENVIRONMENT_URL": "<VALUE>",
"CPS_GRAPH_WRITE_SCOPE": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| CPS_WORKSPACE | No | The agent workspace to start in (VS Code: ${workspaceFolder}); otherwise the server looks for marker files in the current directory, a single child, or an ancestor Default: ${workspaceFolder} |
| CPS_TENANT_ID | No | The Entra tenant for cs_login; default is 'organizations' Default: organizations |
| CPS_CLIENT_ID | No | The Entra app registration for cs_login; default is the first-party VS Code client id Default: 51f81489-12ee-4a9e-aaae-a2591f45987d |
| CPS_READ_ONLY | No | Withhold every environment-changing tool (e.g. set to '1'); the environment-changing tools are then not registered at all |
| CPS_TOOLS | No | Tool preset to limit the number of offered tools; presets include 'full', 'core', 'authoring', 'admin', 'solutions' Default: full |
| PAC_PATH | No | Path to the pac executable |
| DOTNET_ROOT | No | The .NET root (used to locate the .NET SDK) |
| CPS_AGENT_ID | No | Default agent id for cloud tools when the workspace carries no sync metadata |
| CPS_CACHE_DIR | No | Token cache location |
| CPS_FLOW_SCOPE | No | Override the token scope for the Power Automate service |
| CPS_GRAPH_SCOPE | No | Override the token scope for Microsoft Graph |
| CPS_PAC_PROFILE | No | The pac auth profile for maker commands |
| CPS_ADMIN_PROFILE | No | The pac auth profile for admin commands |
| CPS_TOOLS_EXCLUDE | No | Comma-separated tool names or glob patterns to exclude from the tool list |
| CPS_ENVIRONMENT_ID | No | Default environment id for cloud tools when the workspace carries no sync metadata |
| CPS_ENVIRONMENT_URL | No | Default environment URL for cloud tools when the workspace carries no sync metadata |
| CPS_GRAPH_WRITE_SCOPE | No | Override the token scope for Microsoft Graph write operations |