Merged
Conversation
…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.
43c6bce to
d256326
Compare
rian-dolphin
approved these changes
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 hereget_endpoint_docs: Read the full API endpoint documentation for a single endpoint (e.g. aggscall_api: Make an API request to a specified endpoint and optionally store the results in an in-memory SQLite DBquery_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.