Class CapabilitiesRunner
java.lang.Object
neqsim.mcp.runners.CapabilitiesRunner
Capabilities discovery runner for MCP integration.
Returns a structured manifest of everything NeqSim can calculate, organized by domain. This is the entry point for external agents that need to understand what NeqSim offers before making tool calls. The manifest is static and cached — it does not require any simulation to run.
- Version:
- 1.0
- Author:
- Even Solbraa
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static StringCached capabilities JSON (built once on first access).private static final com.google.gson.Gson -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor — all methods are static. -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringBuilds the capabilities manifest.static StringReturns the full capabilities manifest as a JSON string.private static com.google.gson.JsonArraytoJsonArray(List<String> items) Converts a list of strings to a JsonArray.
-
Field Details
-
GSON
private static final com.google.gson.Gson GSON -
cachedCapabilities
Cached capabilities JSON (built once on first access).
-
-
Constructor Details
-
CapabilitiesRunner
private CapabilitiesRunner()Private constructor — all methods are static.
-
-
Method Details
-
getCapabilities
Returns the full capabilities manifest as a JSON string.- Returns:
- JSON capabilities manifest
-
buildCapabilities
Builds the capabilities manifest.- Returns:
- JSON string with all capabilities
-
toJsonArray
-