askshepherd 0.1.26 → 0.1.28

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/README.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # AskShepherd
2
2
 
3
- Customer-facing raw sync onboarding for Shepherd.
3
+ Customer-facing production onboarding and MCP for Shepherd.
4
+
5
+ The npm package is `askshepherd`. The installed binary also exposes `shepherd`,
6
+ but the public one-liner uses the package name:
7
+
8
+ ```sh
9
+ npx -y askshepherd@latest agent
10
+ ```
4
11
 
5
12
  ## Coding Agent One-liner
6
13
 
@@ -11,7 +11,7 @@ import { fileURLToPath } from "node:url";
11
11
  const DEFAULT_API_URL = "https://brain-api-customer-facing.up.railway.app";
12
12
  const PACKAGE_NAME = "askshepherd";
13
13
  const PACKAGE_SPEC = `${PACKAGE_NAME}@latest`;
14
- const PACKAGE_VERSION = "0.1.26";
14
+ const PACKAGE_VERSION = "0.1.28";
15
15
  const MCP_SERVER_NAME = "shepherd";
16
16
  const PACKAGE_DIR = dirname(dirname(fileURLToPath(import.meta.url)));
17
17
  const DEFAULT_AGENT_STATE_PATH = join(homedir(), ".shepherd", "raw-onboarding-agent.json");
@@ -665,7 +665,7 @@ async function runMcpProxy() {
665
665
  { StreamableHTTPClientTransport },
666
666
  { Server },
667
667
  { StdioServerTransport },
668
- { ResultSchema },
668
+ { CallToolRequestSchema, ListToolsRequestSchema, ResultSchema },
669
669
  ] = await Promise.all([
670
670
  import("@modelcontextprotocol/sdk/client/index.js"),
671
671
  import("@modelcontextprotocol/sdk/client/streamableHttp.js"),
@@ -673,6 +673,7 @@ async function runMcpProxy() {
673
673
  import("@modelcontextprotocol/sdk/server/stdio.js"),
674
674
  import("@modelcontextprotocol/sdk/types.js"),
675
675
  ]);
676
+ const proxyRequestOptions = { timeout: 240_000, resetTimeoutOnProgress: true };
676
677
 
677
678
  const remote = new Client(
678
679
  { name: "askshepherd-mcp-proxy", version: PACKAGE_VERSION },
@@ -697,13 +698,17 @@ async function runMcpProxy() {
697
698
  fallbackRequestHandler: async (request, extra) => remote.request(
698
699
  request,
699
700
  passthroughResultSchema,
700
- { signal: extra.signal, timeout: 120_000, resetTimeoutOnProgress: true },
701
+ { ...proxyRequestOptions, signal: extra.signal },
701
702
  ),
702
703
  fallbackNotificationHandler: async (notification) => {
703
704
  await remote.notification(notification);
704
705
  },
705
706
  },
706
707
  );
708
+ local.setRequestHandler(ListToolsRequestSchema, async (request, extra) =>
709
+ remote.listTools(request.params, { ...proxyRequestOptions, signal: extra.signal }));
710
+ local.setRequestHandler(CallToolRequestSchema, async (request, extra) =>
711
+ remote.callTool(request.params, passthroughResultSchema, { ...proxyRequestOptions, signal: extra.signal }));
707
712
  await local.connect(new StdioServerTransport());
708
713
  }
709
714
 
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "askshepherd",
3
- "version": "0.1.26",
4
- "description": "Customer-facing Shepherd raw sync onboarding CLI",
3
+ "version": "0.1.28",
4
+ "description": "Customer-facing Shepherd production onboarding and MCP CLI",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "askshepherd": "bin/shepherd-onboard.js",
8
+ "shepherd": "bin/shepherd-onboard.js",
8
9
  "shepherd-onboard": "bin/shepherd-onboard.js"
9
10
  },
10
11
  "dependencies": {