@hasna/testers 0.0.33 → 0.0.34
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/cli/index.js +667 -259
- package/dist/mcp/http.d.ts +2 -1
- package/dist/mcp/http.d.ts.map +1 -1
- package/dist/mcp/index.js +691 -279
- package/dist/server/index.js +477 -263
- package/package.json +1 -1
- package/dist/lib/browser-compat.d.ts +0 -14
- package/dist/lib/browser-compat.d.ts.map +0 -1
package/dist/mcp/http.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Server } from "node:http";
|
|
2
2
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
|
-
export declare const DEFAULT_MCP_HTTP_PORT =
|
|
3
|
+
export declare const DEFAULT_MCP_HTTP_PORT = 8880;
|
|
4
4
|
export interface McpHttpServerOptions {
|
|
5
5
|
name: string;
|
|
6
6
|
port?: number;
|
|
@@ -10,6 +10,7 @@ export interface McpHttpServerOptions {
|
|
|
10
10
|
export declare function resolveMcpHttpPort(explicitPort?: number): number;
|
|
11
11
|
export declare function parseCliPort(args: string[]): number | undefined;
|
|
12
12
|
export declare function isHttpMode(args: string[]): boolean;
|
|
13
|
+
export declare function isStdioMode(args: string[]): boolean;
|
|
13
14
|
export declare function startMcpHttpServer(options: McpHttpServerOptions): Promise<{
|
|
14
15
|
server: Server;
|
|
15
16
|
port: number;
|
package/dist/mcp/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/mcp/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,MAAM,EAAuB,MAAM,WAAW,CAAC;AAEjG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAG1C,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;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