You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
A streamable-HTTP entry point for self-hosting: npm run start:http, or the ynab-mcp-server-http command, serves the same tools as the stdio server, statelessly, at POST /mcp, with GET /healthz beside it, on YNAB_MCP_HOST/PORT (default 127.0.0.1:3000). One YNAB client is shared across requests. It has no authentication of its own, so run it on a private network or behind an authenticating proxy; it warns at startup when bound to a non-loopback address with the write tools on. Against DNS rebinding, /mcp refuses requests whose Origin is not in YNAB_MCP_ALLOWED_ORIGINS (empty by default) and, on a loopback address, requests whose Host is not localhost, 127.0.0.1, [::1] or listed in YNAB_MCP_ALLOWED_HOSTS (for a reverse proxy on the same machine that forwards Host). Allowed origins are compared by scheme, host and port, so a trailing slash in an entry is ignored. See Self-hosted: streamable HTTP.
npm run cf-access (scripts/cloudflare-access.mjs) sets up Cloudflare Access sign-in for the Worker through the Cloudflare API: inspect shows the current setup, apply creates or updates the Access application with an Allow policy for one email and Managed OAuth limited to the given redirect URIs, and rollback undoes an apply from the backup it saved. apply and rollback only print their requests unless given --yes. It runs from a checkout and is not part of the npm package. DEPLOY.md also documents Worker-level Access, which protects the workers.dev address without a custom domain. See DEPLOY.md.
Fixed
ynab_get_transactions returns transactions newest first, so limit (default 100) keeps the most recent rows. The tool used to apply limit to the order YNAB returned without sorting, so when that order is oldest first a call without sinceDate returned the plan's oldest transactions.
ynab_update_transaction and ynab_create_transaction clear the flag when flagColor is an empty string, as documented. They used to send flag_color: "", which YNAB rejects; they now send null.