Skip to content

Add QCC five-year company intelligence report generator#3

Open
wonendieee wants to merge 2 commits into
mainfrom
codex/implement-program-to-scrape-company-data
Open

Add QCC five-year company intelligence report generator#3
wonendieee wants to merge 2 commits into
mainfrom
codex/implement-program-to-scrape-company-data

Conversation

@wonendieee
Copy link
Copy Markdown
Owner

Motivation

  • Provide a reproducible CLI tool to collect and consolidate enterprise data from multiple QCC MCP endpoints into a single, LLM-friendly Markdown report covering the last five years.
  • Handle heterogeneous API responses by automatically detecting and filtering date-bearing records to focus downstream analysis on recent information.

Description

  • Add qcc_report_generator.py, a CLI that accepts one or more company names and queries the QCC MCP endpoints qcc-company, qcc-risk, qcc-ipr, qcc-operation, and qcc-executive (configurable via --endpoints).
  • Implement multi-format date extraction (YYYY-MM-DD, YYYY年MM月DD日, YYYY-MM) and a generic within_years filter that prunes payloads to a --lookback-years window (default 5).
  • Provide payload-agnostic filtering in filter_payload that processes lists and dicts and reports total_records vs filtered_records per module.
  • Render per-company Markdown via to_markdown that includes generation metadata, a module-level coverage table, and filtered JSON blocks for each endpoint; add usage documentation in QCC_REPORT_USAGE.md with setup and examples.

Testing

  • Ran python -m py_compile qcc_report_generator.py to verify the script compiles successfully (succeeded).

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant