m-gpux for agents¶
The local MCP server exposes a source index for the Python CLI, Modal, Kaggle, Colab, Long Training, billing, the dashboard, and the VS Code extension. It reads indexed files from your checkout and returns GitHub links for the corresponding revision. It can run without provider credentials.
Connect the MCP server¶
In the m-gpux checkout, install the optional MCP dependency with Python 3.11 or later:
python -m pip install -e ".[mcp]"
Configure your host to launch the following local stdio command. This example
uses the mcpServers shape. Use the equivalent server settings for your host.
Use the absolute path to the interpreter where you installed the extra.
{
"mcpServers": {
"m-gpux": {
"command": "C:/path/to/m-gpux/.venv/Scripts/python.exe",
"args": ["-m", "m_gpux.mcp_server", "--repo", "C:/path/to/m-gpux", "--ref", "feat/workspace-tools"]
}
}
}
The installed m-gpux-mcp command also accepts --repo and --ref.
Set --ref to the checked-out commit, tag, or branch to align the generated
GitHub links with the source. The default is feat/workspace-tools. Tool
excerpts reflect the local checkout, including uncommitted edits.
| Tool | Use |
|---|---|
mgpux_list_topics |
Discover the available source maps. |
mgpux_get_topic |
List repository paths and upstream links for a topic such as modal, kaggle, or colab. |
mgpux_search_source |
Find a literal string, optionally within one topic, and get line links. |
mgpux_read_source |
Read up to 120 lines of an indexed path. Use next_line to continue. |
The server performs local source reads. Provider URLs are references for the agent to consult. Provider accounts, credentials, dashboards, and runtime controls are outside the MCP tool surface.
Load the skill¶
Load the repository's skills/m-gpux/SKILL.md as an agent skill. For hosts that
install local skills from a directory, use skills/m-gpux/. The skill can
also guide agents with direct workspace access.
Provider references¶
| Provider | m-gpux source | Upstream |
|---|---|---|
| Modal | CLI adapter, runner, training backends | Modal Python SDK, Modal CLI |
| Kaggle | Kaggle adapter, Kaggle commands | Kaggle CLI |
| Colab | Colab adapter, Colab commands | Google Colab CLI |