@master4n/master-cli 3.0.4 → 3.0.5
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/SECURITY.md +1 -1
- package/bin/index.js +2 -2
- package/bin/index.js.map +1 -1
- package/bin/utility/mcp-server.d.ts +8 -1
- package/llms.txt +2 -1
- package/package.json +1 -1
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export declare const PROTOCOL_VERSION = "2025-06-18";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Serve until stdin closes (client disconnect). Never returns.
|
|
4
|
+
*
|
|
5
|
+
* Requests are handled CONCURRENTLY: a slow tool call (`wait`, a long `http`
|
|
6
|
+
* probe) must not block `ping` or other calls behind it. JSON-RPC clients
|
|
7
|
+
* correlate responses by id, so out-of-order replies are fine; each reply is
|
|
8
|
+
* one atomic write, so concurrent lines never interleave.
|
|
9
|
+
*/
|
|
3
10
|
export declare function serveMcp(): Promise<never>;
|
package/llms.txt
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
(`{ name, version, bin, conventions, docs, categories, commands:[{name,category,summary,examples}] }`).
|
|
15
15
|
- **MCP server built in:** `mfn mcp` serves every command over the Model Context
|
|
16
16
|
Protocol (stdio) for MCP-only clients — tools `mfn_capabilities`, `mfn_run`
|
|
17
|
-
`{command, args[]}`, `mfn_help`; `update` is deny-listed.
|
|
17
|
+
`{command, args[]}`, `mfn_help`; `update` is deny-listed. Requests are handled
|
|
18
|
+
concurrently (a slow `wait` never blocks `ping`). Client config:
|
|
18
19
|
`{ "command": "npx", "args": ["-y", "@master4n/master-cli", "mcp"] }`.
|
|
19
20
|
`mfn mcp --json` describes the server without starting it.
|
|
20
21
|
- **Machine output:** pass `--json`, OR just pipe the command (when stdout is not
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@master4n/master-cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "AI-agent-friendly command-line toolkit: timestamp/date conversion, JWT decoding, port killing, file finding, and directory trees — headless, --json, with a self-describing manifest and a built-in MCP server (mfn mcp).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|