MagicTeX — a LaTeX editor for AI agents (Claude Code): live PDF preview, PDF comments that drive edits, Visual (WYSIWYG) mode, and git-tracked history. No local TeX install.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add magictex -- npx -y magictex-mcp~/.codex/config.toml
[mcp_servers.magictex]
command = "npx"
args = ["-y", "magictex-mcp"]
# codex mcp add magictex -- npx -y magictex-mcp~/.cursor/mcp.json
{
"mcpServers": {
"magictex": {
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"magictex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"magictex": {
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"magictex": {
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"magictex": {
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}