Repository navigation
fix(threat_feed): use startAfterCursor instead of deprecated page_cursor (SURF-2363) - #264
Draft
Gerardo Sabetta (gerardosabetta) wants to merge 1 commit into
Conversation
…sor (SURF-2363) The threat-feed spec marks page_cursor and nextPageCursor as deprecated aliases of startAfterCursor and endCursor. Send startAfterCursor and document endCursor as the next-page cursor, matching the alerts tool.
Gerardo Sabetta (gerardosabetta)
added a commit
that referenced
this pull request
Dec 4, 2026
This branch has not been deployed
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.
Summary
threat_feedsent its cursor aspage_cursor, a deprecated alias. It now sendsstartAfterCursor, as thealertstool does. The tool description, thecursorinput description anddocs/service.mdnow nameendCursoras the next-page cursor instead of the deprecatednextPageCursor.The tool's input is unchanged: callers still pass
cursor. The upstream response is still passed through as is, soendCursorwas already in it. Only the docs pointed at the old field.Spec evidence
From
https://api.socket.dev/v0/openapi, fetched 2026-12-04, path/orgs/{org_slug}/threat-feed:startAfterCursor: "Pass the previous response endCursor to retrieve the next page. Takes precedence over page_cursor when both are supplied. Unsupported cursor aliases return 400."page_cursor(deprecated: true): "Deprecated alias for startAfterCursor. Existing nextPageCursor values remain accepted."endCursor: the next-page cursor.nextPageCursor(deprecated: true): "Deprecated alias for endCursor."Heads-up: old
nextPageCursorvalues still work asstartAfterCursor, so a caller halfway through paging won't break.Verification
pnpm run fmt,pnpm run lint: cleanpnpm run check(fmt:check, oxlint, tsc, build, manifest versions, content scan): passpnpm test: 740 tests in 76 files passstartAfterCursoris sent, thatpage_cursoris not, and thatendCursorcomes back in the tool output. The MCP schema golden file has the newcursordescription.Linear: https://linear.app/socketdev/issue/SURF-2363/socket-mcp-threat-feed-should-stop-using-the-deprecated-page-cursor
Slides
🤖 Generated with Claude Code