@monnet/mcp 0.8.0 → 0.8.1
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/bin.d.ts +17 -0
- package/dist/bin.js +24 -0
- package/dist/bin.js.map +1 -0
- package/package.json +3 -4
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* The package's ONE executable, dispatching on argv.
|
|
4
|
+
*
|
|
5
|
+
* It has to be one. `npx @monnet/mcp` picks a binary by a single rule: use
|
|
6
|
+
* the package's only bin, or the one whose name matches the package name.
|
|
7
|
+
* Nothing here can be called `mcp` without claiming that word globally, so a
|
|
8
|
+
* second bin left npx with "could not determine executable to run" — and the
|
|
9
|
+
* casualty was not the new CLI but `npx -y @monnet/mcp` itself, the line in
|
|
10
|
+
* every user's MCP config. 0.8.0 shipped that way for a few minutes.
|
|
11
|
+
*
|
|
12
|
+
* An MCP client spawns this with no arguments and speaks over stdio; every
|
|
13
|
+
* CLI command has a verb. That is the whole discriminator, and it is why both
|
|
14
|
+
* halves stay lazy imports: the server must not pay for the CLI's module
|
|
15
|
+
* graph on a cold start, and `monnet status` must not open a transport.
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
package/dist/bin.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* The package's ONE executable, dispatching on argv.
|
|
4
|
+
*
|
|
5
|
+
* It has to be one. `npx @monnet/mcp` picks a binary by a single rule: use
|
|
6
|
+
* the package's only bin, or the one whose name matches the package name.
|
|
7
|
+
* Nothing here can be called `mcp` without claiming that word globally, so a
|
|
8
|
+
* second bin left npx with "could not determine executable to run" — and the
|
|
9
|
+
* casualty was not the new CLI but `npx -y @monnet/mcp` itself, the line in
|
|
10
|
+
* every user's MCP config. 0.8.0 shipped that way for a few minutes.
|
|
11
|
+
*
|
|
12
|
+
* An MCP client spawns this with no arguments and speaks over stdio; every
|
|
13
|
+
* CLI command has a verb. That is the whole discriminator, and it is why both
|
|
14
|
+
* halves stay lazy imports: the server must not pay for the CLI's module
|
|
15
|
+
* graph on a cold start, and `monnet status` must not open a transport.
|
|
16
|
+
*/
|
|
17
|
+
if (process.argv.slice(2).length === 0) {
|
|
18
|
+
await import("./index.js");
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
await import("./cli.js");
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=bin.js.map
|
package/dist/bin.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;GAcG;AAEH,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;IACvC,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC;AAC7B,CAAC;KAAM,CAAC;IACN,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;AAC3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monnet/mcp",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"mcpName": "ai.monnet/mcp",
|
|
5
|
-
"description": "Model Context Protocol server for Monnet
|
|
5
|
+
"description": "Model Context Protocol server for Monnet \u2014 exposes motions, plans, and approvals to MCP-compatible clients like Claude Desktop and Cursor.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
12
12
|
"bin": {
|
|
13
|
-
"monnet-mcp": "dist/
|
|
14
|
-
"monnet": "dist/cli.js"
|
|
13
|
+
"monnet-mcp": "dist/bin.js"
|
|
15
14
|
},
|
|
16
15
|
"files": [
|
|
17
16
|
"dist",
|