naro-mcp 0.1.0 → 0.2.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/dist/index.js +11 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ console.log = (...args) => {
|
|
|
14
14
|
};
|
|
15
15
|
var DEPLOY_TOOL = {
|
|
16
16
|
name: "deploy",
|
|
17
|
-
description: "Deploy the current Next.js project to naro using the naro login session.
|
|
17
|
+
description: "Deploy the current Next.js project to naro using the naro login session. If the user is not logged in, a browser window opens for GitHub sign-in \u2014 tell the user to approve it. Local git remote/branch and .env variables are detected and registered to the project automatically. Builds locally and publishes to Cloudflare, returning a live {name}.naro.sh URL.",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: "object",
|
|
20
20
|
properties: {
|
|
@@ -29,6 +29,14 @@ var DEPLOY_TOOL = {
|
|
|
29
29
|
production: {
|
|
30
30
|
type: "boolean",
|
|
31
31
|
description: "Publish to production ({name}.naro.sh). Defaults to false, which deploys a preview at {name}-preview.naro.sh."
|
|
32
|
+
},
|
|
33
|
+
rootDirectory: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: 'Sub-directory containing the Next.js app (where its package.json lives), e.g. "client". Inspect the project structure and pass this whenever the app is not at the repository root.'
|
|
36
|
+
},
|
|
37
|
+
branch: {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "Override the git branch recorded for this deployment. Usually omit \u2014 the CLI detects the current branch automatically."
|
|
32
40
|
}
|
|
33
41
|
}
|
|
34
42
|
}
|
|
@@ -53,6 +61,8 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
53
61
|
{
|
|
54
62
|
name: args.name,
|
|
55
63
|
production: args.production ?? false,
|
|
64
|
+
rootDirectory: args.rootDirectory ?? null,
|
|
65
|
+
branch: args.branch,
|
|
56
66
|
env: readProjectEnv(directory)
|
|
57
67
|
},
|
|
58
68
|
(message) => logs.push(message)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "naro-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"naro-mcp": "./dist/index.js"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
17
|
-
"naro-cli": "0.
|
|
17
|
+
"naro-cli": "0.2.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"tsup": "8.5.0",
|