Skip to main content
Glama
Mile-Host

MileHost MCP Server

Official
by Mile-Host

milehost_connect

Authenticate AI agent with MileHost cloud hosting using an API key or interactive browser session to enable container management and deployment.

Instructions

Connects the AI agent to the MileHost cloud hosting platform. Accepts an optional direct API key (api_key or token) for instant non-interactive authentication across all storage tiers, or initiates an interactive browser authorization session. Always use this tool or provide api_key to authenticate with MileHost.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoForce re-authentication even if valid credentials already exist
tokenNoAlias for api_key
api_keyNoMileHost agent API key (mhk_...) to connect immediately without opening a browser
api_urlNoBase URL of MileHost API (default: https://cab.mile.host)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Because no annotations are provided, the description carries the full disclosure burden. It does reveal important behavior: it accepts an API key for immediate non-interactive authentication, or initiates an interactive browser authorization session. However, it does not explain whether this stores credentials, mutates session state, or behaves differently when valid credentials already exist (other than the force parameter implies). Some behavioral gaps remain.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded with the tool's purpose in the first sentence. The subsequent sentences add meaningful authentication modes and a directive. The sentence 'Always use this tool or provide api_key to authenticate with MileHost' is slightly redundant with the opening, but overall it is appropriately sized with no waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an authentication/connect tool with 4 optional parameters, no annotations, and no output schema, the description gives the essential context: when to call it and how authentication can proceed. It could be more explicit about the result of connecting, session persistence, or success/failure behavior, but the core information an agent needs to decide whether to invoke this tool is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds useful context by calling out api_key or token as optional direct API key input, but it does not meaningfully explain force or api_url beyond what the schema already states. The schema remains the primary source for parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: connecting the AI agent to MileHost for authentication. It uses specific verbs ('connects', 'authenticate') and names the resource (MileHost cloud hosting platform), and the sibling context makes it distinguishable as the authentication entry point for the subsequent milehost_* operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says 'Always use this tool or provide api_key to authenticate with MileHost,' establishing a clearr when-to-use rule. It also presents the alternative of providing an API key directly, plus the interactive browser path. It does not explicitly discuss when not to use it, reliance on existing valid sessions, or the clear-session siblings for logout, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/Mile-Host/MileHost-MCP'

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