{"_id":"k-dbx-mcp-server","name":"k-dbx-mcp-server","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"k-dbx-mcp-server","version":"0.1.0","description":"A Model Context Protocol server for Dropbox integration","private":false,"type":"module","bin":{"k-dbx-mcp-server":"build/src/index.js","dbx-mcp-server":"build/src/index.js"},"scripts":{"build":"tsc && node -e \"const fs=require('fs');if(fs.existsSync('build/src/index.js'))fs.chmodSync('build/src/index.js', '755')\"","build:skipcheck":"./build.sh","prepack":"npm run build","prepublishOnly":"npm run build","watch":"tsc --watch","inspector":"npx @modelcontextprotocol/inspector build/src/index.js","test":"jest --config=jest.config.cjs","test:watch":"jest --watch --config=jest.config.cjs","test:coverage":"jest --coverage --config=jest.config.cjs","test:integration":"node build/tests/dbx-operations.test.js","setup":"node build/src/setup.js","start":"node build/src/index.js"},"dependencies":{"@modelcontextprotocol/sdk":"0.6.0","axios":"^1.7.9","crypto-js":"^4.2.0","dotenv":"^16.4.7","dropbox":"^10.34.0","httpx":"^3.0.1","open":"^10.1.0","winston":"^3.17.0"},"devDependencies":{"@babel/core":"^7.26.9","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-syntax-import-meta":"^7.10.4","@babel/plugin-transform-modules-commonjs":"^7.26.3","@babel/plugin-transform-runtime":"^7.26.9","@babel/preset-env":"^7.26.9","@babel/preset-typescript":"^7.26.0","@jest/globals":"^29.7.0","@types/crypto-js":"^4.2.2","@types/jest":"^29.5.14","@types/node":"^20.11.24","babel-jest":"^29.7.0","jest":"^29.7.0","jest-ts-webcompat-resolver":"^1.0.0","ts-jest":"^29.2.6","ts-node":"^10.9.2","typescript":"^5.3.3"},"_id":"k-dbx-mcp-server@0.1.0","_nodeVersion":"24.6.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-QBiq5PiRhRK3UjTkccR13Ben1A+0s19gVVhInC+t2fyZWOr3sQQl9cRHLJU6p8OwEI84FsLP8mKjvLR0HlYadA==","shasum":"fb9808db1a1a698656f81a0071a45c58a3007d2b","tarball":"https://registry.npmjs.org/k-dbx-mcp-server/-/k-dbx-mcp-server-0.1.0.tgz","fileCount":127,"unpackedSize":443218,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD/+xB5d/mcUx5Hc0hD6WvtJN1hrQ6mfXZ2cN1RrbaofgIgVQSgG7cjlRSWHIn54ctobVlJ9M9lyo1XESBFzDHNfEE="}]},"_npmUser":{"name":"npmtester36","email":"npmtester36@gmail.com"},"directories":{},"maintainers":[{"name":"npmtester36","email":"npmtester36@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/k-dbx-mcp-server_0.1.0_1756204203025_0.6211455720331531"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-26T10:30:02.916Z","0.1.0":"2025-08-26T10:30:03.218Z","modified":"2025-08-26T10:30:03.473Z"},"maintainers":[{"name":"npmtester36","email":"npmtester36@gmail.com"}],"description":"A Model Context Protocol server for Dropbox integration","readme":"# dbx-mcp-server\n\nA Model Context Protocol (MCP) server that provides integration with Dropbox, allowing MCP-compatible clients to interact with Dropbox through a set of powerful tools.\n\n**Important Disclaimer:** This project is not affiliated with, endorsed by, or sponsored by Dropbox. It is an independent integration that works with Dropbox's public API.\n\n## Table of Contents\n\n- [Quick Start](#quick-start)\n- [Installation](#installation)\n- [Authentication](#authentication)\n- [Available Tools](#available-tools)\n- [Required Dropbox Permissions](#required-dropbox-permissions)\n- [Usage Examples](#usage-examples)\n- [Development](#development)\n- [License](#license)\n\n## Quick Start\n\n1. Clone the repository\n2. Run `npm install` to install dependencies\n3. Run `npm run build` to build the project\n4. Run `npm run setup`\n5. Configure your MCP client to use the server\n\n## Prerequisites\n\nRegister a Dropbox app at [Dropbox App Console](https://www.dropbox.com/developers/apps):\n\n- Choose \"Scoped access\" API\n- Choose the access type your app needs\n- Name your app and click \"Create app\"\n- Under \"Permissions\", select the desired permissions for the actions you will be using, for example:\n    - `files.metadata.read`\n    - `files.content.read`\n    - `files.content.write`\n    - `sharing.write`\n    - `account_info.read`\n- Add `http://localhost` as your redirect URI\n- Note your App key and App secret\n\n## Installation\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/your-username/dbx-mcp-server.git\n   cd dbx-mcp-server\n   ```\n\n2. **Install dependencies and build**\n\n   ```bash\n   npm install\n   npm run build\n   ```\n\n3. **Run the setup script**\n\n   ```bash\n   npm run setup\n   ```\n\n4. **Add to MCP settings**\n\n   Add the following to your MCP settings file:\n\n   ```json\n   {\n     \"mcpServers\": {\n       \"dbx\": {\n         \"command\": \"node\",\n         \"args\": [\"/path/to/dbx-mcp-server/build/index.js\"]\n       }\n     }\n   }\n   ```\n\n## Authentication\n\nThe server uses OAuth 2.0 with PKCE for secure authentication with Dropbox.\n\n### Environment Variables\n\nRequired:\n\n- `DROPBOX_APP_KEY`: Your Dropbox app's key\n- `DROPBOX_APP_SECRET`: Your Dropbox app's secret\n- `DROPBOX_REDIRECT_URI`: OAuth redirect URI\n- `TOKEN_ENCRYPTION_KEY`: 32+ character key for token encryption\n\nOptional:\n\n- `TOKEN_REFRESH_THRESHOLD_MINUTES`: Minutes before expiration to refresh token (default: 5)\n- `MAX_TOKEN_REFRESH_RETRIES`: Maximum number of refresh attempts (default: 3)\n- `TOKEN_REFRESH_RETRY_DELAY_MS`: Delay between refresh attempts in ms (default: 1000)\n\n## Available Tools\n\n### File Operations\n\n- `list_files`: List files in a directory\n- `upload_file`: Upload a file\n- `download_file`: Download a file\n- `safe_delete_item`: Safely delete with recycle bin support\n- `create_folder`: Create a new folder\n- `copy_item`: Copy a file or folder\n- `move_item`: Move or rename a file/folder\n\n### Metadata and Search\n\n- `get_file_metadata`: Get file/folder metadata\n- `search_file_db`: Search files and folders\n- `get_sharing_link`: Create sharing links\n- `get_file_content`: Get file contents\n\n### Account Operations\n\n- `get_account_info`: Get account information\n\n## Required Dropbox Permissions\n\nBelow is a mapping of server actions to the minimum Dropbox OAuth scopes (permissions) required:\n\n| Server Action         | Required Dropbox Scopes                        |\n|---------------------- |-----------------------------------------------|\n| list_files            | `files.metadata.read`                         |\n| upload_file           | `files.content.write`, `files.metadata.write` |\n| download_file         | `files.content.read`                          |\n| safe_delete_item      | `files.metadata.write`                        |\n| create_folder         | `files.metadata.write`                        |\n| copy_item             | `files.content.write`, `files.metadata.write` |\n| move_item             | `files.content.write`, `files.metadata.write` |\n| get_file_metadata     | `files.metadata.read`                         |\n| search_file_db        | `files.metadata.read`                         |\n| get_sharing_link      | `sharing.write`                               |\n| get_file_content      | `files.content.read`                          |\n| get_account_info      | `account_info.read`                           |\n\n**Additional Scopes (if needed):**\n\n- `sharing.read`: View sharing settings and collaborators\n- `file_requests.read` / `file_requests.write`: For file request features\n- `contacts.read` / `contacts.write`: For accessing Dropbox contacts\n\nFor more details on Dropbox scopes, see the [Dropbox Permissions Documentation](https://www.dropbox.com/developers/reference/oauth-guide#scopes).\n\n## Usage Examples\n\n```typescript\n// List files in root directory\nawait mcp.useTool(\"dbx-mcp-server\", \"list_files\", { path: \"\" });\n\n// Upload a file\nawait mcp.useTool(\"dbx-mcp-server\", \"upload_file\", {\n  path: \"/test.txt\",\n  content: Buffer.from(\"Hello World\").toString(\"base64\"),\n});\n\n// Search for files\nawait mcp.useTool(\"dbx-mcp-server\", \"search_file_db\", {\n  query: \"report\",\n  path: \"/Documents\",\n  max_results: 10,\n});\n```\n\n## Development\n\nBuilt with:\n\n- TypeScript\n- Model Context Protocol SDK\n- Dropbox SDK v10.34.0\n- Dropbox API v2\n\n## License\n\nMIT License\n\nCopyright (c) 2025 MCP Server Contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","readmeFilename":"README.md","_rev":"1-ea6ce11f7512ec87e5030abc74080197"}