Skip to content

parseMcpConfig — validate an mcp.json

Java · package io.github.muthuishere:toolnexus · SPEC §2

Parse and validate config without connecting — the fast fail for a malformed or misspelled server block.

TODO: the closest thing this port does offer, and how to get the same outcome.

  • McpSource.load — Read an mcp.json, connect every local stdio and remote streamable-HTTP server, expose each server tool as a Tool.
  • McpSource.loadWith — The ctx-aware load: bound connection time and cancel a slow or hung server without leaking a child process.
  • McpSource.listMcpTools — List what each configured server would expose, plus per-server status, without wiring it into a toolkit.
  • McpSource.elicitationToRequest — Map an MCP server’s elicitation request onto the §10 suspension contract, and map the answer back.