MCP Tool Usage Examples
This tool can be called via the MCP (Model Context Protocol) endpoint. Here are examples of how to use it:
JSON-RPC Call Example:
POST to https://venue-test.covia.ai/mcp
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "file_copy",
"arguments": {
"input": "your input here"
}
}
}
cURL Example:
curl -X POST https://venue-test.covia.ai/mcp \\
-H "Content-Type: application/json" \\
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "file_copy",
"arguments": {
"input": "your input here"
}
}
}'
Python Example:
import requests
import json
url = "https://venue-test.covia.ai/mcp"
payload = {
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "file_copy",
"arguments": {
"input": "your input here"
}
}
}
response = requests.post(url, json=payload)
result = response.json()
print(result)
JavaScript/Node.js Example:
const fetch = require('node-fetch');
const url = 'https://venue-test.covia.ai/mcp';
const payload = {
jsonrpc: '2.0',
id: 1,
method: 'tools/call',
params: {
name: 'file_copy',
arguments: {
input: 'your input here'
}
}
};
fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data));
Asset Metadata
{
"name": "Copy File",
"description": "Copy a file or directory. Endpoints may be relative paths plus root/toRoot, file://<root>/<path>, or canonical DLFS references. Bytes stay inside the filesystem providers; directory copies use shallow-copy semantics. The destination must be writable; the source may be read-only.",
"creator": "Covia",
"mcp": {
"annotations": {
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": false
}
},
"operation": {
"adapter": "file:copy",
"toolName": "file_copy",
"input": {
"type": "object",
"properties": {
"root": { "type": "string", "description": "Source root and default destination root; optional when from is a file:// reference" },
"toRoot": { "type": "string", "description": "Optional destination root override; a qualified to reference may name it instead" },
"from": { "type": "string", "description": "Relative source, file:// reference, or canonical DLFS reference" },
"to": { "type": "string", "description": "Relative destination, file:// reference, or canonical DLFS reference" }
},
"required": ["from", "to"]
},
"output": {
"type": "object",
"properties": {
"copied": { "type": "boolean" },
"from": { "type": "string", "description": "Canonical source resource" },
"to": { "type": "string", "description": "Canonical destination resource" }
},
"required": ["copied", "from", "to"]
}
}
}