Skip to content

Rewrite: Part 1#64

Merged
joedursun merged 2 commits intomasterfrom
joe.rewrite-infra
Feb 19, 2026
Merged

Rewrite: Part 1#64
joedursun merged 2 commits intomasterfrom
joe.rewrite-infra

Conversation

@joedursun
Copy link
Collaborator

This is part 1 of a 2 part rewriting of this MCP server. The goal is to replace the 50+ tools the server exposes with just 4 and to reduce token usage while adding new capabilities.

The proposed tools (available in a followup PR) will be:

  • search_endpoints: BM25 search across all of the endpoints defined here
  • get_endpoint_docs: Read the full API endpoint documentation for a single endpoint (e.g. aggs
  • call_api: Make an API request to a specified endpoint and optionally store the results in an in-memory SQLite DB
  • query_data: Execute a SQL query against the in-memory SQLite DB; can be table manipulation or data retrieval.

The new tools will allow us to pick up all API endpoints without having to create a new release and will (in theory) scale to many more endpoints than we currently provide.

This PR lays the foundation for the upcoming PR to swap out the tools so that we don't have such a large diff. As part of the effort we're adding a lot of test coverage that we previously didn't have.

…financial functions

Add three new modules alongside the existing 53-tool server:
- index.py: BM25 endpoint indexing and search
- store.py: SQLite-backed table storage with SQL validation
- functions.py: Financial function registry and pipeline execution

Also adds extract_records() and strip_response_metadata() helpers to
formatters.py, along with comprehensive tests for all new modules.
@joedursun joedursun merged commit 04bca48 into master Feb 19, 2026
4 checks passed
@joedursun joedursun deleted the joe.rewrite-infra branch February 19, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants