Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_DIRNoLog directory, created with restricted permissions.~/.sharepoint-mcp/logs
NODE_ENVNoSet to 'development' to include raw Graph error details in tool results.
CLIENT_IDYesApplication (client) ID. Required in every authentication mode.
LOG_LEVELNoLog level: ERROR, WARN, INFO or DEBUG.INFO
TENANT_IDNoDirectory (tenant) ID. Required for client-token, client-credentials and certificate modes; defaults to 'common' in interactive mode.common
ACCESS_TOKENNoInitial token for client-token mode. Takes precedence over any cached token.
REDIRECT_URINoInteractive redirect URI.http://localhost:3000
CLIENT_SECRETNoClient secret. When set with TENANT_ID and CLIENT_ID, selects client-credentials mode.
CONFIRM_WRITESNoWrite confirmation mode: 'elicit', 'token' or 'false'.elicit
ENABLE_LOGGINGNoWrite mcp-server.log.false
RATE_LIMIT_MAXNoRequests per rate-limit window, all tools combined.100
USE_GRAPH_BETANoDefault Graph endpoint version; 'false' selects v1.0.true
TOKEN_CACHE_DIRNoDirectory for the client-token file cache.OS temp dir + /.mcp-sharepoint-cache
USE_CERTIFICATENoSet to 'true' to select certificate mode. Only one of USE_INTERACTIVE, USE_CLIENT_TOKEN and USE_CERTIFICATE may be set.
USE_INTERACTIVENoSet to 'true' to select interactive mode. Only one of USE_INTERACTIVE, USE_CLIENT_TOKEN and USE_CERTIFICATE may be set.
CERTIFICATE_PATHNoPath to the PEM certificate and private key file.
ENABLE_AUDIT_LOGNoWrite mcp-audit.log with one JSON object per line.false
PARSE_TIMEOUT_MSNoWall-clock limit per parse in milliseconds; parsing runs in a worker thread.60000
REQUEST_DELAY_MSNoMinimum spacing between request starts in milliseconds.100
USE_CLIENT_TOKENNoSet to 'true' to select client-token mode. Only one of USE_INTERACTIVE, USE_CLIENT_TOKEN and USE_CERTIFICATE may be set.
EMERGENCY_READONLYNoStart in read-only mode, refusing writes.false
EMERGENCY_SHUTDOWNNoStart in shutdown mode, refusing all tools except get-auth-status and health-check.false
ENABLE_TOKEN_CACHENoInteractive: enables OS-protected session persistence. Client-token: enables encrypted file cache, also requiring CACHE_ENCRYPTION_SECRET.true
ZERO_TRUST_ENFORCENoMake the zero-trust monitor block instead of only report.false
EMERGENCY_STATE_DIRNoWhere emergency state persists.LOG_DIR, else ~/.sharepoint-mcp/state
MAX_FETCH_ALL_ITEMSNoCap for fetchAll and full site listings.5000
MAX_FETCH_ALL_PAGESNoPage cap for fetchAll and full site listings.200
CERTIFICATE_PASSWORDNoPassword for the PEM certificate private key, only if the key is encrypted.
MAX_FILE_UPLOAD_SIZENoMaximum upload size in bytes for update_content.104857600
RATE_LIMIT_WINDOW_MSNoRate-limit window in milliseconds.60000
TOKEN_REVOCATION_DIRNoWhere the local token blocklist persists.LOG_DIR, else ~/.sharepoint-mcp/state
MAX_SPREADSHEET_CELLSNoCells serialised per spreadsheet sheet.2000000
MAX_FILE_DOWNLOAD_SIZENoMaximum download size in bytes, enforced while streaming.104857600
MAX_ZIP_EXTRACTED_SIZENoDecompression budget in bytes for Word and PowerPoint files.52428800
STRICT_PERMISSION_MODENoCheck token scopes against the requested path before calling Graph. Advisory only.false
CACHE_ENCRYPTION_SECRETNoRequired to persist pasted tokens in client-token mode.
MAX_CONCURRENT_REQUESTSNoSimultaneous outbound requests, from 1 to 100.10
ENABLE_ZERO_TRUST_MONITORINGNoEnable the report-only anomaly monitor.true

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources