From ce1f75ddfb6acd5ef6d61273bea9be162573a06e Mon Sep 17 00:00:00 2001 From: Greg Joseph Date: Wed, 15 Jul 2026 11:10:48 -0700 Subject: [PATCH] Fix: add required 'start' subcommand to SPE MCP server launch examples The SharePoint Embedded MCP server article's launch examples invoked 'npx -y @microsoft/spe-mcp' without the 'start' subcommand. The CLI only falls back to 'start' when no other arguments are present, so a config that omits 'start' breaks as soon as any flag is added, and it diverges from the canonical invocation documented in the @microsoft/spe-mcp README. Add 'start' to all four launch examples (VS Code, Claude Desktop, the Cursor/other-clients note, and the pre-provisioned-app config). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- docs/embedded/build/sharepoint-embedded-mcp-server.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/embedded/build/sharepoint-embedded-mcp-server.md b/docs/embedded/build/sharepoint-embedded-mcp-server.md index 831e130c7..8d2101475 100644 --- a/docs/embedded/build/sharepoint-embedded-mcp-server.md +++ b/docs/embedded/build/sharepoint-embedded-mcp-server.md @@ -54,7 +54,7 @@ Add an MCP server entry to `.vscode/mcp.json` in your workspace: "spe": { "type": "stdio", "command": "npx", - "args": ["-y", "@microsoft/spe-mcp"] + "args": ["-y", "@microsoft/spe-mcp", "start"] } } } @@ -71,7 +71,7 @@ Add the server to `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/ "mcpServers": { "spe": { "command": "npx", - "args": ["-y", "@microsoft/spe-mcp"] + "args": ["-y", "@microsoft/spe-mcp", "start"] } } } @@ -79,7 +79,7 @@ Add the server to `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/ ### Cursor and other MCP clients -Any client that supports MCP servers over the stdio transport can run the server with the same `npx -y @microsoft/spe-mcp` command. See your client's documentation for where to register MCP servers. +Any client that supports MCP servers over the stdio transport can run the server with the same `npx -y @microsoft/spe-mcp start` command. See your client's documentation for where to register MCP servers. ## Choose how the server authenticates @@ -99,7 +99,7 @@ The server supports two running modes. "spe": { "type": "stdio", "command": "npx", - "args": ["-y", "@microsoft/spe-mcp"], + "args": ["-y", "@microsoft/spe-mcp", "start"], "env": { "SPE_CLIENT_ID": "your-client-id", "SPE_TENANT_ID": "your-tenant-id"