Add MCP server (stdio + HTTP) reusing the skill's Graph client

New mcp-server/ exposes SharePoint Lists as MCP tools (test, list_lists, get_columns, list_items, get_item, create/update/delete_item) via the same graph.mjs core. Supports stdio (Claude Desktop/Code/Cowork) and Streamable HTTP (--http). SP_READONLY gates write tools. Adds project .mcp.json and ignores build artifacts. Verified end-to-end live over stdio and HTTP initialize.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
ang3l12
2026-06-16 14:02:11 -06:00
parent fd957177b9
commit 89835d9498
7 changed files with 1993 additions and 0 deletions

19
mcp-server/package.json Normal file
View File

@@ -0,0 +1,19 @@
{
"name": "sharepoint-lists-mcp",
"version": "1.0.0",
"private": true,
"type": "module",
"description": "MCP server for Microsoft SharePoint Lists (app-only Microsoft Graph auth)",
"bin": {
"sharepoint-lists-mcp": "index.mjs"
},
"scripts": {
"start": "node index.mjs",
"start:http": "node index.mjs --http"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.12.0",
"express": "^4.21.0",
"zod": "^3.23.8"
}
}