Skip to main content
Glama
fredriksknese

mcp-openmediavault

get_ftp_settings

Retrieve global FTP service configuration details such as port number, maximum connection limits, and activation status for network file transfers.

Instructions

Get global FTP service settings including port, max connections, and enabled status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'get_ftp_settings' tool using server.tool(). Includes the tool name, description, empty input schema ({}), and the async handler function that calls client.rpc('FTP', 'getSettings', {}) to fetch FTP service settings.
    server.tool(
      "get_ftp_settings",
      "Get global FTP service settings including port, max connections, and enabled status",
      {},
      async () => {
        try {
          const result = await client.rpc("FTP", "getSettings", {});
          return toolResult(JSON.stringify(result, null, 2));
        } catch (error) {
          return toolResult(`Error fetching FTP settings: ${error}`, true);
        }
      },
    );
  • Helper function 'toolResult' that formats the tool response with content array and optional error flag. Used by the get_ftp_settings handler to format its output.
    function toolResult(text: string, isError = false) {
      return { content: [{ type: "text" as const, text }], isError };
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fredriksknese/mcp-openmediavault'

If you have feedback or need assistance with the MCP directory API, please join our Discord server