Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SHAREPOINT_SITE_URL | Yes | The URL of your SharePoint site (e.g., https://your-tenant.sharepoint.com/sites/your-site) | |
| SHAREPOINT_CLIENT_ID | Yes | Your Azure AD Application (client) ID | |
| SHAREPOINT_TENANT_ID | Yes | Your Azure AD Directory (tenant) ID | |
| SHAREPOINT_DOC_LIBRARY | Yes | The name of the SharePoint document library | Shared Documents |
| SHAREPOINT_CLIENT_SECRET | Yes | Your Azure AD client secret value |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| authenticate | Start the SharePoint authentication process. Returns a URL that the user must open in a browser to authenticate. The auth server must be running first (npm run auth-server). |
| check_auth_status | Check the current SharePoint authentication status |
| logout | Clear SharePoint authentication tokens and log out |
| list_folders | List all folders in a specified SharePoint directory. Returns folder names, IDs, and metadata. |
| create_folder | Create a new folder in SharePoint |
| delete_folder | Delete a folder from SharePoint. The folder must be empty. |
| get_folder_tree | Get a recursive tree view of folders in SharePoint. Useful for understanding folder structure. |
| list_documents | List all documents (files) in a specified SharePoint folder. Returns file names, sizes, and metadata. |
| get_document_content | Get the content of a document from SharePoint. Works best with text-based files (txt, json, md, etc). |
| upload_document | Upload a new document to SharePoint. For text content, provide the content directly. For binary files, provide base64-encoded content. |
| upload_document_from_path | Upload a file from the local filesystem to SharePoint |
| update_document | Update an existing document in SharePoint with new content |
| delete_document | Delete a document from SharePoint |
| download_document | Download a document from SharePoint to the local filesystem |
| get_file_metadata | Get metadata fields for a SharePoint file |
| update_file_metadata | Update metadata fields for a SharePoint file |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |