Develop locally
Run every tool in a Glxymesh project on your machine with gxmesh dev, call tools from the terminal, run their tests, and connect a local MCP client.
gxmesh dev, gxmesh call and gxmesh test run your project on your machine with the same network
rules as production. You find a missing host or a broken input on your laptop, not after a push.
What you need installed
Section titled “What you need installed”| Project language | Needs | How your code runs locally |
|---|---|---|
| TypeScript | Node.js LTS | Bundled with esbuild, which gxmesh carries, then run with node |
| Go | The Go toolchain | Built into a local binary |
| Python | Python 3.14 | Run with the project’s .venv if it has one, so its packages import, else python3 |
A project with only http tools needs nothing besides gxmesh.
Call a tool from the terminal
Section titled “Call a tool from the terminal”gxmesh call list-open-issues '{"owner":"golang","repo":"go","limit":3}'It builds the project, runs the one tool, and prints how the call went, every request the tool sent with the egress gateway’s decision, its log lines, and then the answer as the model sees it:
→ list-open-issues ok 412ms GET api.github.com 200 allowed
issues[3]{number,title,author}: 412,Login loops after token refresh,mira-k 409,CLI push fails on Windows paths,dev-sam 401,Usage page shows UTC dates,ops-leeLeave out the JSON to call a tool with no arguments.
Run the tests
Section titled “Run the tests”gxmesh test # every toolgxmesh test list-open-issues # one toolTests come from the tests: block in each tool.yml. The platform runs the same tests before a push
goes live, so a test that fails here fails the push too. See
tool.yml: tests.
Serve the whole project
Section titled “Serve the whole project”gxmesh dev✓ Serving acme/helpdesk at http://127.0.0.1:7777/mcpAdd it to a client as acme-helpdesk-dev; it rebuilds when a file changes. Ctrl-C stops it.It rebuilds when you save a code file or a tool.yml. A build that fails leaves the last good one
serving and prints the error. Use --port to change the port.
The local server listens on 127.0.0.1 only and doesn’t ask clients to sign in. Connect a client to
it under a different name from the deployed server, so you can have both at once:
claude mcp add --transport http acme-helpdesk-dev http://127.0.0.1:7777/mcpKeys for local runs
Section titled “Keys for local runs”Local runs read keys from .env.local at the project’s root, never from your project’s secrets:
GITHUB_TOKEN=ghp_…gxmesh init adds .env.local to .gitignore, and a push never sends it. The host binding in
tool.yml applies locally too: the key is only added on the hosts you list.
Reaching a server on your network
Section titled “Reaching a server on your network”Local runs refuse private addresses, as production does. To try a tool against a server on your own
network, such as 192.168.1.20, add --allow-private to dev, call or test. It has no effect
on deployed tools.
When a call is refused
Section titled “When a call is refused”| Message | Cause | Fix |
|---|---|---|
api.gitlab.com isn't among the hosts this tool may reach |
The tool reached a host that isn’t in network.allow |
Add the host to network.allow in tool.yml |
the key GITHUB_TOKEN isn't set in this project's secrets; add it to .env.local |
The key isn’t in .env.local |
Add GITHUB_TOKEN=… to .env.local |
only https:// URLs leave a tool |
The tool asked for an http:// URL |
Use https:// |
A request marked private_address |
The host resolved to a private or internal address | Use a public host, or --allow-private locally |