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:
19
mcp-server/package.json
Normal file
19
mcp-server/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user