
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
A Model-Context-Protocol (MCP) for saving files to Nextcloud and getting public share links.
This project provides a Model-Context-Protocol (MCP) for saving files to a Nextcloud instance and immediately receiving a publicly available share URL.
httpx
, pydantic
) and includes error handling.asyncio
for non-blocking I/O operations.Clone the repository and install the required dependencies:
git clone https://github.com/your-username/nextcloud-mcp.git
cd nextcloud-mcp
pip install -e .
This project uses environment variables for configuration. Create a .env
file in the project root and add the following variables:
NEXTCLOUD_INSTANCE_URL="https://your-nextcloud-instance.com"
NEXTCLOUD_USERNAME="your_username"
NEXTCLOUD_PASSWORD="your_password"
# Optional: Specify a folder to save files in.
# If not set, files will be saved in the root directory.
NEXTCLOUD_USAGE_FOLDER="MyUploads"
You can get a secure app password from your Nextcloud account settings under Security > Devices & sessions.
The save_and_share.py
script provides a simple example of how to use the library.
python nextcloud_mcp/save_and_share.py
The script will:
.env
file.The core logic is in the Ctx
class (nextcloud_mcp/context.py
), which handles the two main steps:
PUT
request) to upload the file to the specified path..
├── nextcloud_mcp/
│ ├── __init__.py
│ ├── config.py # Configuration loading and validation
│ ├── context.py # Core Ctx class for Nextcloud interaction
│ ├── exceptions.py # Custom exception classes
│ └── save_and_share.py # Example usage script
├── tests/ # Unit tests
├── .env.example # Example environment file
├── pyproject.toml # Project metadata and dependencies
└── README.md
FAQs
A Model-Context-Protocol (MCP) for saving files to Nextcloud and getting public share links.
We found that nextcloud-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.