@gaiventures/pilotfish-mcp-managed 0.1.1 → 0.1.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/cli.js +13 -2
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -8,6 +8,11 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
|
|
|
8
8
|
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
9
9
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
10
10
|
import { isJSONRPCRequest, isJSONRPCResultResponse } from "@modelcontextprotocol/sdk/types.js";
|
|
11
|
+
|
|
12
|
+
// packages/mcp-managed/dist/version.js
|
|
13
|
+
var VERSION = true ? "0.1.3" : "0.0.0-dev";
|
|
14
|
+
|
|
15
|
+
// packages/mcp-managed/dist/bridge.js
|
|
11
16
|
var DEFAULT_URL = "https://pilotfish-be.gai.ventures";
|
|
12
17
|
function endpointOf(url = DEFAULT_URL) {
|
|
13
18
|
const u = new URL(url);
|
|
@@ -71,7 +76,7 @@ async function relay(local, o) {
|
|
|
71
76
|
return { close };
|
|
72
77
|
}
|
|
73
78
|
async function check(o) {
|
|
74
|
-
const client = new Client({ name: "pilotfish-mcp-managed-check", version:
|
|
79
|
+
const client = new Client({ name: "pilotfish-mcp-managed-check", version: VERSION });
|
|
75
80
|
try {
|
|
76
81
|
await client.connect(remoteTransport(o));
|
|
77
82
|
const tools = (await client.listTools()).tools.map((t) => t.name);
|
|
@@ -89,12 +94,18 @@ replays) as an MCP server over stdio.
|
|
|
89
94
|
|
|
90
95
|
pilotfish-mcp-managed relay stdio to pilotfish's hosted MCP endpoint
|
|
91
96
|
pilotfish-mcp-managed --check connect once with the key, list the tools, exit
|
|
97
|
+
pilotfish-mcp-managed --version print the version
|
|
92
98
|
|
|
93
99
|
Environment:
|
|
94
100
|
PILOTFISH_KEY your MCP key (pf_...): pilotfish app \u2192 Settings \u2192 Connect an agent
|
|
95
101
|
PILOTFISH_URL the pilotfish API (default ${DEFAULT_URL})`;
|
|
96
102
|
async function main() {
|
|
97
|
-
const { values } = parseArgs({
|
|
103
|
+
const { values } = parseArgs({
|
|
104
|
+
options: { check: { type: "boolean", default: false }, help: { type: "boolean", short: "h", default: false }, version: { type: "boolean", short: "v", default: false } }
|
|
105
|
+
});
|
|
106
|
+
if (values.version)
|
|
107
|
+
return void process.stdout.write(`${VERSION}
|
|
108
|
+
`);
|
|
98
109
|
if (values.help)
|
|
99
110
|
return void process.stderr.write(`${USAGE}
|
|
100
111
|
`);
|
package/package.json
CHANGED