Package io.quarkiverse.mcp.server.test
Interface McpAssured.McpStdioTestClient.Builder
- All Superinterfaces:
McpAssured.McpTestClient.Builder<McpAssured.McpStdioTestClient.Builder>
- Enclosing interface:
- McpAssured.McpStdioTestClient
public static interface McpAssured.McpStdioTestClient.Builder
extends McpAssured.McpTestClient.Builder<McpAssured.McpStdioTestClient.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setCommand(String... command) Set the command to launch the MCP server process.setCommand(List<String> command) Set the command to launch the MCP server process.setEnvironment(Map<String, String> env) Set additional environment variables for the server process.setStderrHandler(Consumer<String> handler) Set a custom handler for stderr lines from the server process.setWorkingDirectory(Path dir) Set the working directory for the server process.Methods inherited from interface io.quarkiverse.mcp.server.test.McpAssured.McpTestClient.Builder
setAutoPong, setClientCapabilities, setDescription, setIcons, setName, setProtocolVersion, setTitle, setTracing, setVersion, setWebsiteUrl
-
Method Details
-
setCommand
Set the command to launch the MCP server process.By default,
java -jar target/quarkus-app/quarkus-run.jaris used.- Parameters:
command-- Returns:
- self
-
setCommand
Set the command to launch the MCP server process.By default,
java -jar target/quarkus-app/quarkus-run.jaris used.- Parameters:
command-- Returns:
- self
-
setWorkingDirectory
Set the working directory for the server process.By default, the current working directory is used.
- Parameters:
dir-- Returns:
- self
-
setEnvironment
Set additional environment variables for the server process.- Parameters:
env-- Returns:
- self
-
setStderrHandler
Set a custom handler for stderr lines from the server process.By default, stderr is forwarded to
System.err.- Parameters:
handler-- Returns:
- self
-
build
McpAssured.McpStdioTestClient build()- Returns:
- a new test client
-