@edgegap/mcp 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -18
- package/dist/matchmaker.js +7 -0
- package/dist/skills.generated.js +49 -49
- package/dist/tools.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,15 +12,14 @@ Connect AI coding agents to Edgegap through our MCP server. Your agent can take
|
|
|
12
12
|
|
|
13
13
|
Use our MCP server when:
|
|
14
14
|
|
|
15
|
-
* **Containerizing your game server** - your agent writes a Dockerfile for your build (or
|
|
16
|
-
* **Deploying a dedicated server** - create
|
|
17
|
-
* **Setting up matchmaking** - generate a matchmaker configuration that points at your deployed version, ready to upload in the dashboard.
|
|
18
|
-
* **Running a host-client game** - create a relay session if your game is built with one player as host. See [Dedicated Servers or Relays?](#dedicated-servers-or-relays) first.
|
|
15
|
+
* **Containerizing your game server** - your agent writes a Dockerfile for your build (or reviews the one you have) against best practices, pushes the image to our private container registry, and removes unused old image tags to reclaim registry capacity.
|
|
16
|
+
* **Deploying a dedicated server** - create and update app versions, review available locations, deploy close to your players, and get server IP with ports to test client connection.
|
|
19
17
|
* **Building a CI/CD pipeline** - test your deployments and teardown from a build system.
|
|
20
|
-
* **Troubleshooting a game server issue** - inspect app versions and deployment status, read container logs, or reproduce a failed deployment.
|
|
18
|
+
* **Troubleshooting a game server issue** - inspect app versions and deployment status, read container logs and CPU/memory utilization, or reproduce a failed deployment.
|
|
19
|
+
* **Running client-host and peer-to-peer games** - create relay sessions providing NAT punchthrough and avoid connection blocking. Review [Orchestration Models](https://docs.edgegap.com/learn/orchestration/deployments#orchestration) and [Dedicated Servers or Relays?](#dedicated-servers-or-relays) before deciding.
|
|
21
20
|
|
|
22
21
|
> [!WARNING]
|
|
23
|
-
> Out of scope / not supported by MCP: creating or
|
|
22
|
+
> Out of scope / not supported by MCP: building Linux server executable; creating, starting or stopping a matchmaker (upload the generated configuration in the dashboard); server browser; lobbies; managed clusters; private fleets; or billing.
|
|
24
23
|
|
|
25
24
|
> [!NOTE]
|
|
26
25
|
> If you need help, [please reach out to us over Discord](https://discord.gg/MmJf8fWjnt). For live games support see our [ticketing system](https://edgegap.atlassian.net/servicedesk/customer/portal/3).
|
|
@@ -214,7 +213,7 @@ To keep your API token on your own machine, run the server locally instead. Leav
|
|
|
214
213
|
}
|
|
215
214
|
```
|
|
216
215
|
|
|
217
|
-
Needs Node 18+. Pin a version in production (`@edgegap/mcp@0.13.
|
|
216
|
+
Needs Node 18+. Pin a version in production (`@edgegap/mcp@0.13.3`) rather than floating on latest. Registered in the official MCP registry as `dev.edgegap/mcp`.
|
|
218
217
|
|
|
219
218
|
The local server can also limit what an agent can do. These variables have no effect on the hosted endpoint at `mcp.edgegap.dev`:
|
|
220
219
|
|
|
@@ -297,7 +296,7 @@ Your agent picks the right tool from your request. You don't need to name them,
|
|
|
297
296
|
| `edgegap_create_app_version` ● | Registers a container image as a deployable version. Supports TLS Upgrade on WS and HTTP ports, which browser (WebGL) clients need for `wss://`. |
|
|
298
297
|
| `edgegap_update_app_version` ● | Changes an existing version: a new image tag, on/off, max duration, registry login, image caching (`force_cache`), shutdown grace period, ports, env vars. Only the fields passed change, but `ports` and `env` replace the whole list. Running deployments keep the old settings. |
|
|
299
298
|
| `edgegap_list_locations` | Lists the cities Edgegap deploys to, or, for one version, only those with capacity right now. |
|
|
300
|
-
| `edgegap_list_ping_beacons` | Lists the ping beacons game clients measure latency
|
|
299
|
+
| `edgegap_list_ping_beacons` | Lists the ping beacons game clients measure their latency to each region against. |
|
|
301
300
|
| `edgegap_deploy` ● | Deploys an authoritative dedicated server close to your players. Always tagged `edgegap-mcp`, and reports when Edgegap will stop it. |
|
|
302
301
|
| `edgegap_wait_for_deployment` | Waits until the server is ready and returns the connection address. |
|
|
303
302
|
| `edgegap_get_deployment` | Reads a deployment's status. |
|
|
@@ -306,14 +305,6 @@ Your agent picks the right tool from your request. You don't need to name them,
|
|
|
306
305
|
| `edgegap_get_deployment_metrics` | Summarises CPU, CPU throttling, memory and network use (latest, average, peak), to size a version or check a crash. |
|
|
307
306
|
| `edgegap_stop_deployment` ● | Stops one deployment, by its exact request ID. No bulk stop. |
|
|
308
307
|
|
|
309
|
-
### Matchmaking
|
|
310
|
-
|
|
311
|
-
| Tool | What it does |
|
|
312
|
-
| --- | --- |
|
|
313
|
-
| `edgegap_build_matchmaker_config` | Generates a matchmaker configuration (teams, team size, optional latency rules and expansions) and checks that the version it deploys exists. Set `allowed_cors_origins` for browser (WebGL) clients. Upload the result in the dashboard to create your matchmaker, which starts a dedicated server for each match. |
|
|
314
|
-
|
|
315
|
-
Learn more about the configuration in [Matchmaking](https://docs.edgegap.com/learn/matchmaking).
|
|
316
|
-
|
|
317
308
|
### Relays (Host-Client Games Only)
|
|
318
309
|
|
|
319
310
|
A relay is not a game server: it forwards traffic while one player's game hosts the match. See [Dedicated Servers or Relays?](#dedicated-servers-or-relays).
|
|
@@ -334,8 +325,8 @@ A relay is not a game server: it forwards traffic while one player's game hosts
|
|
|
334
325
|
|
|
335
326
|
* *"Write a Dockerfile for my Unity server build, then push it and deploy a server near me."*
|
|
336
327
|
* *"Check my Dockerfile for Edgegap and fix any problems."*
|
|
337
|
-
* *"Create a matchmaker config for 2v2 matches on my latest version."*
|
|
338
328
|
* *"My deployment failed. Read the logs and tell me why."*
|
|
329
|
+
* *"How much CPU and memory did my last match use? Size my version for it."*
|
|
339
330
|
* *"My game uses host-client networking. Set up an Edgegap relay for two players."*
|
|
340
331
|
|
|
341
332
|
## 🛡️ Guardrails
|
|
@@ -368,6 +359,13 @@ Review common error codes and learn how to unlock your integration.
|
|
|
368
359
|
|
|
369
360
|
Your MCP integration is most likely not including the Authorization header correctly.
|
|
370
361
|
|
|
362
|
+
### Tool Call Failed
|
|
363
|
+
|
|
364
|
+
Your client is missing an Edgegap token. This happens with claude.ai and Claude Desktop custom connectors, which can't send an `Authorization` header. See [Claude Desktop and claude.ai](#claude-desktop-and-claudeai) for the alternative.
|
|
365
|
+
|
|
366
|
+
> [!WARNING]
|
|
367
|
+
> This is a known limitation which will be resolved in the near term, stay tuned for updates!
|
|
368
|
+
|
|
371
369
|
### 403 Forbidden
|
|
372
370
|
|
|
373
371
|
Your MCP integration is likely using the template token or a deleted token. Please validate that the token value used by your integration matches exactly the token displayed in dashboard.
|
|
@@ -388,7 +386,7 @@ Not an error. A list with nothing in it (no applications yet, no deployments run
|
|
|
388
386
|
|
|
389
387
|
The skills (`edgegap_list_skills`, `edgegap_get_skill`), `edgegap_context`, `edgegap_generate_dockerfile` and `edgegap_validate_server_config` work without a token, so an agent can prepare the server build first. Create an account at [app.edgegap.com](https://app.edgegap.com) and a token under [User Settings → Tokens](https://app.edgegap.com/user-settings?tab=tokens). `edgegap_context` with `check_token: true` says whether the session's token is present and accepted, and shows its last four characters so you can find it on that page.
|
|
390
388
|
|
|
391
|
-
###
|
|
389
|
+
### Starts Locally but Not on Edgegap
|
|
392
390
|
|
|
393
391
|
Ask your agent to validate your server configuration, or to generate a new Dockerfile. The most common causes are an image built on Apple Silicon without `docker build --platform linux/amd64`, a server listening on a different port than the version exposes, or a UDP transport configured as TCP.
|
|
394
392
|
|
package/dist/matchmaker.js
CHANGED
|
@@ -63,6 +63,13 @@ export function buildMatchmakerConfig(input) {
|
|
|
63
63
|
let lastAfter = 0;
|
|
64
64
|
for (const e of [...(input.expansions ?? [])].sort((a, b) => a.after_seconds - b.after_seconds)) {
|
|
65
65
|
const step = {};
|
|
66
|
+
// A stage that only repeats the initial min_team_size changes nothing: partial
|
|
67
|
+
// matches already come from min < max and form by ticket expiry, and every
|
|
68
|
+
// expansion costs the matchmaker performance. Drop it rather than emit it.
|
|
69
|
+
if (e.min_team_size === input.min_team_size && e.max_latency_ms === undefined) {
|
|
70
|
+
cautions.push(`expansion at ${e.after_seconds}s only repeats min_team_size ${e.min_team_size}, so it was left out. Partial matches need no expansion: min_team_size below max_team_size allows them, and a short ticket_expiration (30s) keeps the wait short.`);
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
66
73
|
if (e.min_team_size !== undefined) {
|
|
67
74
|
if (e.min_team_size > input.max_team_size) {
|
|
68
75
|
problems.push(`expansion at ${e.after_seconds}s sets min_team_size ${e.min_team_size} above max_team_size ${input.max_team_size}.`);
|