Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:1mcp app Agent statusCommand

From Leeroopedia
Knowledge Sources
Domains CLI, MCP_Protocol
Last Updated 2026-10-29 00:00 GMT

Overview

Concrete CLI command for checking the runtime status of a specific MCP server by probing the running 1MCP instance.

Description

The statusCommand function checks the status of a specific MCP server by connecting to the running 1MCP runtime (if available) and querying its health endpoint. It reports whether the server is connected, disconnected, awaiting OAuth, or unreachable. Unlike `listCommand` which reads from the config file, `statusCommand` probes the live runtime for current connection state.

Usage

Import this function when you need to:

  • Check if a specific server is connected in the running runtime
  • Diagnose connection issues (OAuth required, unreachable, error states)
  • Get verbose status information for a single server

Code Reference

Source Location

  • Repository: 1MCP Agent
  • File: src/commands/mcp/status.ts (L66-88)

Signature

export interface StatusCommandArgs extends GlobalOptions {
  name: string;
  verbose?: boolean;
}

export function buildStatusCommand(yargs: Argv): Argv;
export async function statusCommand(argv: StatusCommandArgs): Promise<void>;

Import

import { statusCommand, buildStatusCommand, StatusCommandArgs } from '@src/commands/mcp/status.js';

I/O Contract

Inputs

Name Type Required Description
name string Yes Server name to check
verbose boolean No Detailed status output

Outputs

Name Type Description
stdout formatted text Status report (connected/disconnected/oauth/error)

Usage Examples

Check Server Status

1mcp mcp status my-server
1mcp mcp status my-server --verbose

Related Pages

Implements Principle

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment