Skip to main content
Glama

export_config

Export the complete MCP server configuration as JSON for backup, sharing, or migration purposes.

Instructions

MCP設定全体をJSON形式でエクスポートする。

現在の設定を表示や別の場所へのコピー用に取得します。 Returns: Dict[str, Any]: 設定全体と設定ファイルパスを含む辞書 - config: 現在の設定の完全な内容 - config_path: 設定ファイルのパス

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'export_config' tool. It loads the current MCP configuration using load_config() and returns it as a dictionary along with the configuration file path. Registered via @mcp.tool decorator.
    @mcp.tool(name="export_config") async def export_config() -> Dict[str, Any]: """MCP設定全体をJSON形式でエクスポートする。 現在の設定を表示や別の場所へのコピー用に取得します。 Returns: Dict[str, Any]: 設定全体と設定ファイルパスを含む辞書 - config: 現在の設定の完全な内容 - config_path: 設定ファイルのパス """ config = load_config() return {"config": config.model_dump(exclude_none=True), "config_path": str(CONFIG_PATH)}

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/r3-yamauchi/mcp-conf-mcp-server'

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