Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Dec 1, 2025

Bumps @toon-format/toon from 1.0.0 to 2.0.1.

Release notes

Sourced from @​toon-format/toon's releases.

v2.0.1

No significant changes

    View changes on GitHub

v2.0.0

   🚨 Breaking Changes

    View changes on GitHub

v1.4.0

   🚀 Features

    View changes on GitHub

v1.3.0

   🚀 Features

    View changes on GitHub

v1.2.0

   🚀 Features

    View changes on GitHub

v1.1.0

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub
Commits
  • 690e402 chore: release v2.0.1
  • 4190d4c docs(readme): use themed badges (#227)
  • e35d8f7 chore: move readme to packages/toon/README.md and symlink in the… (#228)
  • f882cb1 docs: update spec page to match latest version and sections
  • b9e3593 docs(benchmarks): improve clarity of efficiency ranking metrics
  • faf3f8d docs: update implementation status for Java, Python, and Rust
  • 5310e8a chore: release v2.0.0
  • 7e6e180 chore: upgrade deps
  • a07d633 docs: move JToon to official implementation
  • 9a61254 docs: update benchmarks for v3 list item syntax
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

bcharleson and others added 14 commits November 13, 2025 14:02
…25-06-18

- Updated Server header from 1.1.0 to 1.2.0
- Updated /health endpoint version and protocol
- Updated /info endpoint version and protocol
- Updated /authorize endpoint version
- Updated GET /mcp endpoint version and protocol
- Updated 404 handler protocol version

Ensures complete version consistency across all HTTP endpoints and responses.
- Added additionalProperties: false to warmup object
- Added additionalProperties: false to warmup.advanced object

This resolves MCP schema validation errors in strict clients like Augment and Cursor
that were causing tools to be disabled with 'validation errors' message.
JSON Schema validation errors were caused by 'additionalProperties: true' which is
not valid in strict validators. Fixed by:

- Removed additionalProperties: true from campaign_schedule object
- Removed additionalProperties: true from campaign_schedule.schedules items
- Removed additionalProperties: true from sequences items
- Removed additionalProperties: true from auto_variant_select object
- Removed additionalProperties: true from all custom_variables objects (3 instances)
- Added additionalProperties: false to reply_to_email body object

When arbitrary properties are needed, omitting additionalProperties entirely is the
correct approach per JSON Schema spec, not setting it to true.

This resolves 'MCP server has validation errors' in Augment and Cursor.
Implements TOON (Token-Oriented Object Notation) encoding for tool responses,
providing 30-60% token reduction for uniform tabular data while maintaining
full MCP protocol compatibility.

Changes:
- Added @toon-format/toon dependency (v1.0.0)
- Created response-formatter utility with automatic TOON/JSON selection
- Implemented TOON encoding for list_accounts (proof of concept)
- Added TOON_IMPLEMENTATION.md documentation

Benefits:
- 30-60% token savings for list operations (accounts, campaigns, leads)
- Better context window efficiency for large datasets
- LLM-friendly structure with explicit array lengths and field headers
- Automatic fallback to JSON for non-uniform data
- No breaking changes to MCP protocol (text content is valid)

Next steps:
- Roll out to list_campaigns, list_leads, list_emails
- Add analytics tools (time-series data is perfect for TOON)
- Monitor token savings in production
The initial implementation was too strict - required exact same keys in all objects.
Real-world Instantly API data has optional fields (warmup, daily_limit, etc).

Changes:
- Relaxed uniformity check to allow optional fields (50% key overlap threshold)
- Added data normalization (fills missing fields with null before TOON encoding)
- Allow empty objects like warmup: {} (common in Instantly API)
- Fixed TypeScript type error for Object.keys()

This should now properly detect and encode account/campaign/lead arrays as TOON,
even when objects have different optional fields.
TOON library was using YAML-style list format for non-uniform data,
which is actually WORSE for tokens than JSON. Now we detect this and
automatically fall back to JSON.

Detection: Check if TOON output contains '{' and '}:' (tabular format markers).
If not, it used YAML format (starts with '- '), so we use JSON instead.

This ensures we only use TOON when it actually provides token savings.
Applied createMCPResponse() to:
- list_campaigns
- get_campaign
- get_campaign_analytics
- get_daily_campaign_analytics
- get_warmup_analytics
- list_emails
- list_leads
- get_lead
- list_lead_lists

All tools tested successfully. Smart fallback working correctly -
returns JSON for non-uniform data, will use TOON for uniform data.

This ensures maximum token efficiency while maintaining compatibility.
- Fixed JSON Schema validation error in create_campaign tool definition
- Removed 'additionalProperties: true' which is invalid in strict validators (Augment, Cursor)
- This was preventing create_campaign from appearing in MCP client tool lists
- All 36 tools now validate correctly and load in MCP clients

Issue: create_campaign tool was not appearing in Augment/Cursor
Root cause: Invalid JSON Schema - additionalProperties: true not allowed
Solution: Remove additionalProperties property (defaults to allowing additional properties)

Tested: Tool validation passes, all 36 tools present
…and description compaction

BREAKING CHANGES:
- Tool count reduced from 36 to 31 (consolidated duplicates)
- get_account_details + get_account_info -> get_account (with backward compat)
- pause/resume/warmup/vitals tools -> manage_account_state (with backward compat)

Optimizations:
- Updated MCP SDK from 1.15.1 to 1.22.0
- Implemented tool pagination (MCP 2025-06-18 spec)
- Compacted all tool descriptions for ~40% token reduction
- Added tool annotations (readOnlyHint, destructiveHint, confirmationRequiredHint)
- Consolidated 5 account state tools into manage_account_state

Backward Compatibility:
- Legacy tool names still work via internal routing
- Old SDK clients will receive all tools (pagination optional)

Files Changed:
- package.json: SDK upgrade
- src/config/tool-pagination.ts: New pagination utility
- src/handlers/mcp-handlers.ts: Pagination support in tools/list
- src/handlers/tool-executor.ts: Consolidated tool handlers
- src/tools/*.ts: Compacted descriptions + annotations
Bumps [@toon-format/toon](https://github.com/toon-format/toon) from 1.0.0 to 2.0.1.
- [Release notes](https://github.com/toon-format/toon/releases)
- [Commits](toon-format/toon@v1.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: "@toon-format/toon"
  dependency-version: 2.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Dec 1, 2025
@bcharleson bcharleson closed this Dec 9, 2025
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Dec 9, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/toon-format/toon-2.0.1 branch December 9, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants