M
Mcps
作者 @tsarbas
MCP server by tsarbas
创建于 2/28/2026
更新于 about 8 hours ago
README
Repository documentation and setup instructions
mcps
Small Rust CLI to enable/disable Codex MCP servers in your Codex config.
What it does
mcps edits the enabled flag under [mcp_servers.<name>] in a TOML config file.
- Default config path:
~/.codex/config.toml - Override config path:
--config /path/to/config.toml
Features
- Enable a configured MCP server
- Disable a configured MCP server
- List all configured MCP servers with status
- Writes updates safely via temp file + replace
Requirements
- Rust toolchain (
cargo) - A valid Codex config containing
[mcp_servers]
Installation
Option 1: Build + install script
./build.sh
This script:
- Builds release binary (
cargo build --release) - Installs
mcpsto~/.local/binby default - Prints whether your
PATHalready includes the install directory
Set a custom install directory:
MCPS_INSTALL_DIR="$HOME/bin" ./build.sh
Option 2: Cargo install from local path
cargo install --path .
Usage
mcps list
mcps enable <name>
mcps disable <name>
mcps --config /path/to/config.toml list
Run help:
mcps --help
Config expectations
Example config:
[mcp_servers.xcode]
command = "xcrun"
args = ["mcpbridge"]
enabled = true
Notes:
- If
enabledis missing for a server,listtreats it as enabled. enable/disablerequires the server to already exist in[mcp_servers].
Output examples
mcps list:
Name Status
xcode enabled
mcps disable xcode:
xcode disabled
mcps enable xcode:
xcode enabled
Error cases
You can get errors when:
[mcp_servers]section is missing- Requested server name is not found
enabledexists but is not boolean- Config file cannot be read, parsed, or replaced
Development
Build:
cargo build
Run tests:
cargo test
Install release build:
./build.sh
Troubleshooting
mcps: command not found: add install directory (for example~/.local/bin) toPATH.- Permission errors writing config: verify file ownership and directory permissions.
- TOML parse errors: validate your config syntax and table structure.
License
No license file is currently included in this repository.
快速设置
此服务器的安装指南
安装命令 (包未发布)
git clone https://github.com/tsarbas/mcps
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。
Cursor 配置 (mcp.json)
{
"mcpServers": {
"tsarbas-mcps": {
"command": "git",
"args": [
"clone",
"https://github.com/tsarbas/mcps"
]
}
}
}