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 listCommand

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

Overview

Concrete CLI command for listing configured MCP servers with filtering by tags, disabled state, and outdated status, with verbose effective configuration display.

Description

The listCommand function reads the configuration file and prints all configured MCP servers. It supports filtering by tags (comma-separated), showing disabled servers, displaying verbose effective configuration (including inherited global defaults), and showing only servers with available updates. Sensitive values are redacted by default unless `--show-secrets` is specified.

Usage

Import this function when you need to:

  • List all configured MCP servers with their transport types
  • Filter servers by tags or show only outdated ones
  • Display verbose effective configuration including inherited defaults
  • Show or hide disabled servers and sensitive values

Code Reference

Source Location

  • Repository: 1MCP Agent
  • File: src/commands/mcp/list.ts (L39-80)

Signature

export interface ListCommandArgs extends GlobalOptions {
  'show-disabled'?: boolean;
  'show-secrets'?: boolean;
  tags?: string;
  verbose?: boolean;
  outdated?: boolean;
}

export function buildListCommand(yargs: Argv): Argv;
export async function listCommand(argv: ListCommandArgs): Promise<void>;

Import

import { listCommand, buildListCommand, ListCommandArgs } from '@src/commands/mcp/list.js';

I/O Contract

Inputs

Name Type Required Description
show-disabled boolean No Include disabled servers (default: false)
tags string No Filter by comma-separated tags
verbose boolean No Show detailed effective config
outdated boolean No Show only servers with updates

Outputs

Name Type Description
stdout formatted text Server list printed to stdout

Usage Examples

List All Servers

1mcp mcp list
1mcp mcp list --show-disabled
1mcp mcp list --tags=prod,api
1mcp mcp list --verbose
1mcp mcp list --outdated

Related Pages

Implements Principle

Page Connections

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