Skip to main content
Glama
TrackLine
by TrackLine

hosts_update

Modify host configuration parameters in a VPN panel by updating UUID, address, port, security settings, and operational status.

Instructions

Update an existing host

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesHost UUID to update
remarkNoNew remark/name
addressNoNew address
portNoNew port
pathNoNew URL path
sniNoNew SNI
hostNoNew host header
alpnNoNew ALPN
fingerprintNoNew fingerprint
isDisabledNoEnable/disable host
securityLayerNoNew security layer
tagNoNew tag
serverDescriptionNoNew server description

Implementation Reference

  • Tool registration and handler implementation for 'hosts_update' in src/tools/hosts.ts. It validates input parameters using Zod and calls `client.updateHost(params)`.
    server.tool(
        'hosts_update',
        'Update an existing host',
        {
            uuid: z.string().describe('Host UUID to update'),
            remark: z.string().optional().describe('New remark/name'),
            address: z.string().optional().describe('New address'),
            port: z.number().optional().describe('New port'),
            path: z.string().optional().describe('New URL path'),
            sni: z.string().optional().describe('New SNI'),
            host: z.string().optional().describe('New host header'),
            alpn: z
                .enum(['h3', 'h2', 'http/1.1', 'h2,http/1.1', 'h3,h2,http/1.1', 'h3,h2'])
                .optional()
                .describe('New ALPN'),
            fingerprint: z
                .enum([
                    'chrome',
                    'firefox',
                    'safari',
                    'ios',
                    'android',
                    'edge',
                    'qq',
                    'random',
                    'randomized',
                ])
                .optional()
                .describe('New fingerprint'),
            isDisabled: z
                .boolean()
                .optional()
                .describe('Enable/disable host'),
            securityLayer: z
                .enum(['DEFAULT', 'TLS', 'NONE'])
                .optional()
                .describe('New security layer'),
            tag: z.string().optional().describe('New tag'),
            serverDescription: z
                .string()
                .optional()
                .describe('New server description'),
        },
        async (params) => {
            try {
                const result = await client.updateHost(params);
                return toolResult(result);
            } catch (e) {
                return toolError(e);
            }
        },
    );

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/TrackLine/mcp-remnawave'

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