calltally
README.md
# calltally
How right have the finfluencers you follow actually been? calltally is a small forwarding client for the hosted Koalcheck analytics service: the tool list is answered from your own machine using captured definitions, and each call travels upstream, with the service's answer handed back exactly as it arrived.
Twenty-one tools are exposed. Read what named public analysts have been saying about a ticker and where they clash, search X with full operators, blend retail sentiment across X, StockTwits and Reddit, and check the hard record underneath the talk: SEC 8-K material events, Form 4 insider buying and selling, XBRL fundamentals, FINRA short volume, and a live market quote. On top of that record sit descriptive measurements: how accurate each analyst's past public calls were against SPY, a composite ticker score that weights analyst votes by their measured track record, a screener that ranks public tickers by that composite, and a track-record leaderboard.
One captured tool is deliberately not exposed: `analyst_profile`, which returns an authenticity and credibility verdict on a named person's account. A measured track record of public calls is a statistic; an impostor label is an identity verdict, and this rebuild does not serve it. The build is flagged for re-triage before any publish wave on the track-record scoring distinction.
## The tools
- **`analyst_views`** — Recent views of specific X analysts by `handles`, optionally focused on one `ticker`.
- **`analyst_debate`** — Compare several analysts' takes on one `ticker` and surface the bull, bear and neutral camps.
- **`search_x`** — Search X with full operators (for example `$AAPL lang:en -is:retweet`), with sentiment scoring.
- **`ticker_social_sentiment`** — Blended retail sentiment for a `ticker` across X, StockTwits and Reddit.
- **`stocktwits_symbol`** — Recent StockTwits posts for a `ticker` with author-tagged bull and bear labels.
- **`trending_tickers`** — Tickers currently trending on StockTwits. Takes no required arguments.
- **`reddit_attention`** — WSB retail-attention for a `ticker`: mention count, rank and 24h momentum.
- **`score_ticker`** — One signed composite score for a `ticker` blending track-record-weighted analyst votes, SEC insider activity and StockTwits sentiment.
- **`screen_stocks`** — Rank a universe of public tickers by the composite score. Takes no required arguments.
- **`material_events`** — Recent SEC 8-K material events for a `ticker`, with item codes mapped to plain language.
- **`short_volume`** — SEC and FINRA short-sale volume percentage for a `ticker` over the last few trading days.
- **`fundamentals`** — Latest annual revenue, growth, income and margins for a `ticker` from SEC XBRL.
- **`insider_activity`** — SEC Form 4 open-market purchases and sales by insiders for a `ticker`.
- **`wsb_trending`** — Most-mentioned tickers on r/wallstreetbets right now. Takes no required arguments.
- **`analyst_track_record`** — How accurate the analyst behind a `handle` has been: past public calls scored against SPY.
- **`analyst_recent_calls`** — The most recent stored calls for a `handle`: ticker, direction, date and a link to the original post.
- **`ticker_call_history`** — Which analysts called a `ticker`, with each call's benchmark-adjusted outcome.
- **`tweet_store_stats`** — Statistics on the persisted tweet database behind the track-record features. Takes no arguments.
- **`quote`** — Live price, volume, turnover, market cap and basic valuation for a `ticker`.
- **`leaderboard`** — The track-record leaderboard: who has actually been right, priced against SPY. Takes no required arguments.
- **`my_account`** — Your own membership tier and today's live-fetch quota usage for this connection. Takes no arguments.
## Install and run
As an MCP server via npm:
```bash
npx -y @reneturcios/calltally mcp
```
MCP client configuration:
```json
{
"mcpServers": {
"calltally": {
"command": "npx",
"args": ["-y", "@reneturcios/calltally", "mcp"]
}
}
}
```
As a container:
```bash
docker run -i ghcr.io/cloudcorprecords/calltally
docker run --rm ghcr.io/cloudcorprecords/calltally quote '{"ticker":"AAPL"}'
```
## CLI
A single binary covers both the command line and the MCP server. Every tool is a subcommand whose one argument is a JSON string of that tool's inputs:
```bash
calltally analyst_views '{"handles":["DeItaone","unusual_whales"]}'
calltally analyst_debate '{"handles":["DeItaone","unusual_whales"],"ticker":"AAPL"}'
calltally search_x '{"query":"$AAPL lang:en -is:retweet"}'
calltally score_ticker '{"ticker":"AAPL"}'
calltally fundamentals '{"ticker":"AAPL"}'
calltally analyst_track_record '{"handle":"DeItaone"}'
calltally quote '{"ticker":"AAPL"}'
calltally my_account '{}'
calltally --version
```
Exit codes: `0` for a successful forwarded call, `1` when the result that comes back is an error, and `2` for usage mistakes like an unknown subcommand or a JSON argument that does not parse.
## Configuration
- `KOALCHECK_MCP_URL` — Replaces the upstream endpoint. Defaults to the pinned hosted endpoint, `https://mcp.koalcheck.com/mcp`. (This override variable is a reconstruction introduced by this rebuild.)
The Koalcheck registry record lists no headers for its remote, so calltally never attaches an authentication header — every call goes upstream keyless.
When the upstream cannot answer — it returns a JSON-RPC error, answers with a non-2xx status, sends a body that cannot be read, or the request itself fails — the caller receives an error result whose text begins with `calltally error:`.
## How forwarding works
The first call of a process opens a session against the upstream: an `initialize` request (protocol version `2025-03-26`), a `notifications/initialized` notification, and then the `tools/call`. If the service issues an `Mcp-Session-Id` header during initialize, calltally repeats it on subsequent requests and keeps reusing that one session until the process ends. Replies are understood in both plain JSON and server-sent-events framing. Successful results are passed through untouched, `isError` flag and any extra fields included.
## Development
```bash
npm install
npm run build # tsc -> dist/ (dist/cli.js is the bin)
npm test # tsx --test test/*.test.ts — stubbed upstream, no network
npm run dev # run the CLI from source
```
The suite compares the served tool list against the captured surface tool for tool, asserts the omitted `analyst_profile` tool is absent at the registry, MCP and CLI levels, walks the session handshake and its reuse, proves no `Authorization` header is sent under any environment, and confirms that arguments travel upstream unchanged and results return unchanged.
## License
MIT — see `LICENSE`. Copyright (c) 2026 Rene Turcios.
This server cannot be deployed
Maintenance
ActivityNo data
ResponsivenessOutdated data