--- name: write_mcp_jupyter_config kind: function lang: bash domain: infra version: "1.0.0" purity: impure signature: "write_mcp_jupyter_config([project_dir: string], [port: int]) -> string" description: "Genera o actualiza .mcp.json con la configuracion de jupyter-mcp-server apuntando al venv local y puerto dado. Merge con jq si ya existe." tags: [mcp, jupyter, config, setup, infra] uses_functions: [] uses_types: [] returns: [] returns_optional: false error_type: "error_go_core" imports: [] tested: false tests: [] test_file_path: "" file_path: "bash/functions/infra/write_mcp_jupyter_config.sh" --- ## Ejemplo ```bash source write_mcp_jupyter_config.sh path=$(write_mcp_jupyter_config /home/lucas/analysis/finanzas 8890) echo "Config MCP en: $path" ``` ## Notas El MCP se invoca como modulo Python (`python -m jupyter_mcp_server`) usando el python del venv local, nunca una instalacion global. Si `.mcp.json` ya existe y jq esta disponible, hace merge conservando otros servidores MCP. Sin jq, sobrescribe el archivo.