Repository navigation
Conversation
…links, get_link_clicks), gated by the extension (kaption-links.MCP.1-5, MCP.10) The relay lists the three tools only while the connected extension said features.kaption_links true, and forwards them by name. Definitions are verbatim from kaptionai kext/scripts/mcp-links-tools.json (pinned in src/test-support). create_tracked_links counts 2 credits (send); the two reads 1. zodToJsonSchema now publishes .int() bounds and array minItems. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GyommtrSAyAEfKj1gxi9Kj
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.
What this is, in plain words: this lets Claude and ChatGPT use Kaption Links through the cloud connector. Kaption Links is the link shortener with click counts on the Business plans. Three new tools are added: make short tracked links (
create_tracked_links), list them with their clicks (list_tracked_links), and read who clicked (get_link_clicks). The relay does not answer these tools itself. It shows them only to accounts whose extension says the feature is on, and passes each call on to that extension unchanged.Pairs with: the kaptionai monorepo PR on branch
feat/kaption-links-core. That PR is the extension side: its account core answers these tools and reportsfeatures.kaption_links. Deploy this after that one ships. Until then no extension reports the feature, so nobody sees the tools.Changes
src/tools.ts: the three definitions, copied word for word from kaptionaikext/scripts/mcp-links-tools.json, with the same descriptions, schemas (includingtarget_session) and annotations.zodToJsonSchemanow publishes.int()numbers asintegerwithminimum/maximum, and an array.min(n)asminItems. No existing tool uses.int()together with a published bound that changes, and all existing pins still pass.src/manage-kaption.ts: addsfeatures.kaption_links, which shows all three tools (kaption-links.MCP.10). It works the same way asexport_chat: a value of false, a missing key or an older extension hides them, and a call to a hidden tool never reaches the extension.src/credits.ts:create_tracked_linksis classedsend(2 credits).list_tracked_linksandget_link_clicksareread(1 credit) (kaption-links.MCP.5).src/test-support/mcp-links-tools.json: the pinned definitions.manage-kaption.test.ts,ledger-credits.test.ts,relay.test.ts) check that:kaption_linksis true;Not deployed, version not bumped.
🤖 Generated with Claude Code
https://claude.ai/code/session_01GyommtrSAyAEfKj1gxi9Kj