miniantgames-mcp 0.0.0-stage → 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Miniant Labs Limited, trading as Miniant Games (https://www.miniant.games)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,49 @@
1
- # Temporary Holding Version
1
+ # miniantgames-mcp
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A local [MCP](https://modelcontextprotocol.io) server that helps your AI coding agent build games
4
+ for [Miniant Games](https://www.miniant.games). It gives the agent the developer guide, the
5
+ publishing checklists, the build validator and a starter game, all offline.
6
+
7
+ Publishing itself still happens at [publish.miniant.games](https://publish.miniant.games).
8
+
9
+ ## Install
10
+
11
+ Claude Code:
12
+
13
+ ```bash
14
+ claude mcp add miniantgames -- npx -y miniantgames-mcp
15
+ ```
16
+
17
+ Any other MCP client (Claude Desktop, Cursor, and so on):
18
+
19
+ ```json
20
+ {
21
+ "mcpServers": {
22
+ "miniantgames": { "command": "npx", "args": ["-y", "miniantgames-mcp"] }
23
+ }
24
+ }
25
+ ```
26
+
27
+ Requires Node.js 20 or later. Paths passed to the tools resolve against the folder the client
28
+ starts the server in, normally your game's project folder.
29
+
30
+ ## Tools
31
+
32
+ | Tool | What it does |
33
+ | --- | --- |
34
+ | `list_guide` | Every guide page with a one-line summary, plus the task recipes |
35
+ | `read_guide` | One guide page as markdown, with its checklist (`agent-entry` for the rules) |
36
+ | `search_guide` | Find which page documents an SDK call or rule |
37
+ | `get_checklist` | Requirements for one page, or for a whole recipe such as `publish-new-game` |
38
+ | `validate_build` | Run the same validator the publishing pipeline runs on your build folder |
39
+ | `scaffold_game` | Write a plain-JavaScript starter game into a new or empty folder |
40
+
41
+ `scaffold_game` is the only tool that writes files, and it never overwrites a non-empty folder.
42
+
43
+ ## Try it
44
+
45
+ Ask your agent: "Use the miniantgames tools to start a solo game in `./my-game`, then validate it."
46
+
47
+ ## License
48
+
49
+ MIT
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ // Committed launcher: `bin` points here, not at dist/, because dist/ is gitignored build output
3
+ // that does not exist when `pnpm install` links workspace bins (same reason as
4
+ // packages/game-sdk/bin/miniant-validate.mjs). The missing-build case is reported at run time.
5
+
6
+ const distUrl = new URL("../dist/index.js", import.meta.url);
7
+
8
+ let mod;
9
+ try {
10
+ mod = await import(distUrl.href);
11
+ } catch (error) {
12
+ console.error(
13
+ "miniantgames-mcp: could not load dist/index.js. If you are in the monorepo, run\n" +
14
+ "`pnpm --filter miniantgames-mcp build` first.\n" +
15
+ (error instanceof Error ? error.message : String(error)),
16
+ );
17
+ process.exit(1);
18
+ }
19
+
20
+ await mod.main();