Release v2.0.25: Dark-mode hs-pdf-build, bidirectional 14-point census & Dose 0..3+, FRED macro indicators, 5-agenda Bayesian daily brief, one-shot .png+.json chatbot stats cards, Group 3 unified style, and minimal /donate/ reduction
This commit is contained in:
1 parent
74ef8b60a6
commit
d91d36ca5e
35 files changed
+14332
-2898
No files matched your search
@@ -35,8 +35,8 @@ from hyperstitionstud_io.mcp.tools import MCP_TOOLS_SCHEMA, call_mcp_tool # noq
|
||||
|
||||
SERVER_INFO = {
|
||||
"name": "hyperstitionstudio-mcp",
|
||||
"version": "2.0.24",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.0.24",
|
||||
"version": "2.0.25",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.0.25",
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@ MCP_TOOLS_SCHEMA: list[dict[str, Any]] = [
|
||||
},
|
||||
{
|
||||
"name": "hs_inspect_quant_timeseries",
|
||||
"description": "Inspect the lens-neutral periodic quantitative financial & memetic gematria time-series bundle (30 UTC days x 24 S1-S6 tickers x 21 dated news dossiers), TradingView Superchart URLs, and pluggable LENS_REGISTRY projections.",
|
||||
"description": "Inspect the lens-neutral periodic quantitative financial & memetic gematria time-series bundle (30 UTC days x 24 S1-S6 tickers x 21 dated news dossiers), TradingView Superchart URLs, pluggable LENS_REGISTRY projections, and optional one-shot .png + .json stats card bundle.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -203,6 +203,49 @@ MCP_TOOLS_SCHEMA: list[dict[str, Any]] = [
|
||||
"enum": ["fund_manager", "neutral_math", "corporate_board", "tierzoo_ecology", "fantasy_sabermetrics", "pokedex_scanner"],
|
||||
"default": "fund_manager",
|
||||
},
|
||||
"include_card": {
|
||||
"type": "boolean",
|
||||
"default": False,
|
||||
"description": "When true and a symbol is specified, generates and attaches the one-shot .png + .json ticker stats card bundle.",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "hs_generate_ticker_stats_card",
|
||||
"description": "Generate a one-shot hybrid Pokémon/Sports/TCG/TierZoo ticker stats card (.png + .json) in the Group 3 haiperdohp-jemaytreeah × hyperstitionstud.io design system using 100% real exchange and news-wire observations (null / 'No data available' when absent).",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"symbol": {"type": "string", "default": "NVDA", "description": "Ticker symbol or DEX coordinate (e.g. 'NVDA', 'PLTR', 'SOL-USD', 'ANTHR-PVT', '137')."},
|
||||
"lens": {
|
||||
"type": "string",
|
||||
"enum": ["tierzoo_ecology", "fund_manager", "neutral_math", "corporate_board", "fantasy_sabermetrics", "pokedex_scanner"],
|
||||
"default": "tierzoo_ecology",
|
||||
},
|
||||
"date_utc": {"type": "string", "default": "", "description": "Optional YYYY-MM-DD UTC date (defaults to latest available real trading date)."},
|
||||
"include_base64_png": {"type": "boolean", "default": True, "description": "Whether to embed base64-encoded PNG bytes in the JSON response."},
|
||||
},
|
||||
"required": ["symbol"],
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "hs_inspect_macro_indicators",
|
||||
"description": "Inspect real Federal Reserve (FRED) macroeconomic, monetary, and aggregate output indicators (CPI, PPI, US10Y, EFFR, SOFR, M1, M2, M1 vs. M2 Spread, Real M2 Growth, GDP, GNP, OUTBS, INDPRO) with native cadence preservation and bidirectional eng_aq/ing_aq evaluations.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"indicator_slug": {"type": "string", "default": "", "description": "Optional indicator slug filter (e.g. 'cpi', 'ppi', 'us10y', 'effr', 'sofr', 'm1', 'm2', 'real_m2', 'gdp_nominal', 'gdp_real', 'gnp_gross_product', 'business_gross_output', 'industrial_production')."},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "hs_generate_daily_portfolio_brief",
|
||||
"description": "Generate or inspect the 5-Agenda Zero-Synthetic-Data Daily Portfolio & Memetic Regime Update (Executive Summary + 3-State Bayesian Best/Base/Worst-Case Scenarios, Confirming Signals, Challenging Divergences, Delta Since Last Run, and Daily Key Macro Question + Compounding Rigor).",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"refresh": {"type": "boolean", "default": False, "description": "When true, recomputes the daily brief and advances the Bayesian prior/posterior state ledger."},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -490,13 +533,22 @@ def call_mcp_tool(name: str, arguments: dict[str, Any]) -> dict[str, Any]:
|
||||
or inst["entity_eng"].upper() == sym_q
|
||||
or str(inst["entity_ing_aq"]) == sym_q.lstrip("#DEX ")
|
||||
]
|
||||
return {
|
||||
out_res: dict[str, Any] = {
|
||||
"version": bundle["version"],
|
||||
"periodicity_gate": bundle["periodicity_gate"],
|
||||
"selected_lens": lens_q,
|
||||
"instruments": matched,
|
||||
"ipld_dag_json_cidv1": bundle["ipld_dag_json_cidv1"],
|
||||
}
|
||||
if bool(arguments.get("include_card")) and matched:
|
||||
from hyperstitionstud_io.quant.cards import export_ticker_stats_card_pair
|
||||
|
||||
out_res["stats_card"] = export_ticker_stats_card_pair(
|
||||
symbol=matched[0]["symbol"],
|
||||
lens=lens_q,
|
||||
include_base64_png=True,
|
||||
)
|
||||
return out_res
|
||||
return {
|
||||
"version": bundle["version"],
|
||||
"periodicity_gate": bundle["periodicity_gate"],
|
||||
@@ -508,4 +560,45 @@ def call_mcp_tool(name: str, arguments: dict[str, Any]) -> dict[str, Any]:
|
||||
"ipld_dag_json_cidv1": bundle["ipld_dag_json_cidv1"],
|
||||
}
|
||||
|
||||
if name == "hs_generate_ticker_stats_card":
|
||||
from hyperstitionstud_io.quant.cards import export_ticker_stats_card_pair
|
||||
|
||||
sym_c = str(arguments.get("symbol", "NVDA")).strip() or "NVDA"
|
||||
lens_c = str(arguments.get("lens", "tierzoo_ecology")).strip() or "tierzoo_ecology"
|
||||
dt_c = str(arguments.get("date_utc", "")).strip() or None
|
||||
inc_b64 = bool(arguments.get("include_base64_png", True))
|
||||
return export_ticker_stats_card_pair(
|
||||
symbol=sym_c,
|
||||
lens=lens_c,
|
||||
date_utc=dt_c,
|
||||
include_base64_png=inc_b64,
|
||||
)
|
||||
|
||||
if name == "hs_inspect_macro_indicators":
|
||||
from hyperstitionstud_io.quant.macro import build_macro_indicators_bundle
|
||||
|
||||
slug_f = str(arguments.get("indicator_slug", "")).strip().lower()
|
||||
m_path = cfg.core_dir / "site" / "quant" / "real-macro-indicators.json"
|
||||
if m_path.is_file():
|
||||
m_bundle = json.loads(m_path.read_text(encoding="utf-8"))
|
||||
else:
|
||||
m_bundle = build_macro_indicators_bundle(allow_live_network=False, write_files=False)
|
||||
if slug_f and slug_f in (m_bundle.get("series") or {}):
|
||||
return {
|
||||
"version": m_bundle["version"],
|
||||
"synthetic_data_eliminated": m_bundle["synthetic_data_eliminated"],
|
||||
"indicator": m_bundle["series"][slug_f],
|
||||
"derived_indicators": m_bundle["derived_indicators"],
|
||||
"ipld_dag_json_cidv1": m_bundle["ipld_dag_json_cidv1"],
|
||||
}
|
||||
return m_bundle
|
||||
|
||||
if name == "hs_generate_daily_portfolio_brief":
|
||||
from hyperstitionstud_io.quant.daily_brief import build_daily_portfolio_brief
|
||||
|
||||
b_path = cfg.core_dir / "site" / "quant" / "daily-brief-latest.json"
|
||||
if bool(arguments.get("refresh")) or not b_path.is_file():
|
||||
return build_daily_portfolio_brief(allow_live_network=False, write_files=False)
|
||||
return json.loads(b_path.read_text(encoding="utf-8"))
|
||||
|
||||
raise ValueError(f"Unknown MCP tool: {name}")
|
||||
Reference in new issue
Block a user