docs: record runtime and release constraints

This commit is contained in:
morluto
2026-07-12 08:45:35 +08:00
parent e32906afb7
commit 62ede515b7
24 changed files with 206 additions and 57 deletions
+5 -1
View File
@@ -7,7 +7,11 @@ import { registerEnhancedTools } from "./registerEnhancedTools.js";
import { registerOfficialTools } from "./registerOfficialTools.js";
import { registerSessionTools } from "./registerSessionTools.js";
/** Construct one MCP server instance without acquiring subprocess resources. */
/**
* Construct one MCP server without acquiring subprocess resources.
* Supplying a session adds target lifecycle tools; omitting it retains the
* fixed-target seam used by focused tests and embedders.
*/
export const createServer = (
hopper: HopperToolPort,
session?: BinarySession,
+1 -1
View File
@@ -9,7 +9,7 @@ import {
} from "../contracts/toolContracts.js";
import { toCallToolResult } from "./toolResult.js";
/** Register all eight enhanced reverse-engineering tools. */
/** Register composed workflows against the same port as direct bridge tools. */
export const registerEnhancedTools = (
server: McpServer,
hopper: HopperToolPort,
+1 -1
View File
@@ -8,7 +8,7 @@ import {
import { jsonValueSchema, type JsonValue } from "../hopper/protocol.js";
import { toCallToolResult } from "./toolResult.js";
/** Register every official Hopper proxy contract on one MCP server. */
/** Register direct bridge proxies, preserving MCP cancellation and typed errors. */
export const registerOfficialTools = (
server: McpServer,
hopper: HopperToolPort,
+1 -1
View File
@@ -5,7 +5,7 @@ import type { BinarySession } from "../application/BinarySession.js";
import { SESSION_TOOL_CONTRACTS } from "../contracts/toolContracts.js";
import { toCallToolResult } from "./toolResult.js";
/** Register binary lifecycle management tools. */
/** Register MCP-only target lifecycle operations on a long-lived session. */
export const registerSessionTools = (
server: McpServer,
session: BinarySession,
+5 -1
View File
@@ -4,7 +4,11 @@ import type { HopperError } from "../domain/errors.js";
import type { Result } from "../domain/result.js";
import type { JsonValue } from "../hopper/protocol.js";
/** Translate an application result into caller-visible MCP content. */
/**
* Translate an application result into MCP text content.
* Error tags and safe messages remain visible while underlying causes, process
* output, and other potentially sensitive details stay private.
*/
export const toCallToolResult = (
result: Result<JsonValue, HopperError>,
): CallToolResult =>