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
| Name | Required | Description | Default |
|---|---|---|---|
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)}