Commit e8f6e4e
feat(codex): add CLI arguments for Codex
Add 6 new CLI arguments to support Codex-specific MCP server configuration:
- --env-vars: Whitelist environment variable names to forward (List[str])
- --startup-timeout: Server startup timeout in seconds (int)
- --tool-timeout: Tool execution timeout in seconds (int)
- --enabled: Enable/disable server flag (bool)
- --bearer-token-env-var: Bearer token environment variable name (str)
- --env-header: HTTP headers from env vars in KEY=ENV_VAR format (Dict[str,str])
Existing arguments reused for Codex:
- --cwd: Working directory (shared with Gemini)
- --include-tools: Tool allow-list (shared with Gemini)
- --exclude-tools: Tool deny-list (shared with Gemini)
- --header: Static HTTP headers (universal)
- --env-var: Environment variables (universal)
Changes:
- Add 6 argument definitions to setup_mcp_configure_parser()
- Add 6 parameter mappings in handle_mcp_configure()
- Update function signature with 6 new parameters
- Update main() function call with 6 new arguments
- Add env_header parsing logic (KEY=ENV_VAR format to dict)
All 10 Codex TOML fields now configurable via CLI.1 parent 97d386b commit e8f6e4e
1 file changed
+72
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
719 | 725 | | |
720 | 726 | | |
721 | 727 | | |
| |||
837 | 843 | | |
838 | 844 | | |
839 | 845 | | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
840 | 874 | | |
841 | 875 | | |
842 | 876 | | |
| |||
1653 | 1687 | | |
1654 | 1688 | | |
1655 | 1689 | | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1656 | 1722 | | |
1657 | 1723 | | |
1658 | 1724 | | |
| |||
2724 | 2790 | | |
2725 | 2791 | | |
2726 | 2792 | | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
2727 | 2799 | | |
2728 | 2800 | | |
2729 | 2801 | | |
| |||
0 commit comments