
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@ragula/mcp
Advanced tools
This package provides a Model Control Protocol (MCP) implementation for interacting with the Ragula API. It allows you to manage collections, folders, files, and perform queries using simple commands.
This package is typically used within a larger monorepo structure. Ensure it's correctly linked or installed. The primary dependency is @ragula/sdk.
# If needed in a standalone project (adjust version/path as necessary)
npm install @ragula/mcp @ragula/sdk
# or
yarn add @ragula/mcp @ragula/sdk
Once installed, you can run it directly using npx:
npx ragula-mcp --api-key YOUR_KEY
Configuration for the Ragula MCP is now handled exclusively via command-line arguments when the MCP server process is launched. This is typically configured within the main application's MCP server definition (e.g., in Cline's configuration).
Required Argument:
--api-key or -k (string): Your Ragula API key. The MCP will fail to start if this is not provided.Example Configuration (Conceptual - within a parent MCP runner like Cline):
{
"mcpServers": {
"ragula": {
"command": "npx",
"args": [
"-y",
"@ragula/mcp",
"--api-key",
"your_ragula_api_key_here"
]
}
}
}
Get your API key here: https://www.ragula.io/profile
The MCP exposes methods that correspond to Ragula API operations. These methods are intended to be called by the controlling framework or application that loads this MCP module.
// Note: The MCP is typically instantiated by a parent process (like Cline)
// which passes the command-line arguments during startup.
// Direct instantiation like below is less common now.
// If you were to run it directly (e.g., for testing): node ./dist/index.js --api-key YOUR_KEY
// or using npx: npx ragula-mcp --api-key YOUR_KEY
// Example of interacting with an already running MCP instance
// (assuming 'mcp' is a client connected to the running MCP server)
// Example: List collections
const { data: collections, error: listError } = await mcp.callTool('ragula_listCollections');
if (listError) {
console.error("Error listing collections:", listError);
} else {
console.log("Collections:", collections);
}
// Example: Create a collection
const { data: newCollection, error: createError } = await mcp.callTool('ragula_createCollection', { name: 'My New Collection' });
if (createError) {
console.error("Error creating collection:", createError);
} else {
console.log("Created Collection:", newCollection);
}
// ... call other tools as needed
Each method returns an object { data, error } using the tryCatch helper, allowing for easy error checking.
The following commands (mapping to MCP methods) are available:
ragula_listCollections
mcp.listCollections()ragula_createCollection
name (string): The name of the new collection.mcp.createCollection({ name })ragula_getCollectionDetails
collectionId (string): The ID of the collection.mcp.getCollectionDetails({ collectionId })ragula_getCollectionStatus
collectionId (string): The ID of the collection.mcp.getCollectionStatus({ collectionId })ragula_updateCollection
collectionId (string): The ID of the collection to update.name (string): The new name for the collection.mcp.updateCollection({ collectionId, name })ragula_deleteCollection
collectionId (string): The ID of the collection to delete.mcp.deleteCollection({ collectionId })ragula_listFolders
collectionId (string): The ID of the collection.mcp.listFolders({ collectionId })ragula_createFolder
collectionId (string): The ID of the collection.name (string): The name of the new folder.parentId (string): The ID of the parent folder.mcp.createFolder({ collectionId, name, parentId })ragula_deleteFolder
collectionId (string): The ID of the collection.folderId (string): The ID of the folder to delete.mcp.deleteFolder({ collectionId, folderId })ragula_listFolderFiles
collectionId (string): The ID of the collection.folderId (string): The ID of the folder.mcp.listFolderFiles({ collectionId, folderId })ragula_listCollectionFiles
collectionId (string): The ID of the collection.mcp.listCollectionFiles({ collectionId })ragula_uploadFile
collectionId (string): The ID of the collection.filePath (string): The path to the local file to upload.folderId (string, optional): The ID of the folder to upload into.mcp.uploadFile({ collectionId, filePath, folderId })ragula_deleteFile
collectionId (string): The ID of the collection.fileId (string): The ID of the file to delete.mcp.deleteFile({ collectionId, fileId })ragula_deleteFolderFile
collectionId (string): The ID of the collection.folderId (string): The ID of the folder containing the file.fileId (string): The ID of the file to delete.mcp.deleteFolderFile({ collectionId, folderId, fileId })ragula_query
collectionId (string): The ID of the collection to query.queryText (string): The text of the query.mcp.query({ collectionId, queryText })ragula_question
collectionId (string): The ID of the collection.questionText (string): The text of the question.mcp.question({ collectionId, questionText })npm run build
npm test
ISC
FAQs
MCP server implementation for ragula.io
We found that @ragula/mcp demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.