Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cccc/ports/mcp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def handle_request(req: Dict[str, Any]) -> Dict[str, Any]:
limit = 100
limit = max(1, min(limit, 200))
page = tools[cursor : cursor + limit]
next_cursor = ""
result_payload: Dict[str, Any] = {"tools": page}
if cursor + limit < len(tools):
next_cursor = _encode_cursor(cursor + limit)
return _make_response(req_id, {"tools": page, "nextCursor": next_cursor})
result_payload["nextCursor"] = _encode_cursor(cursor + limit)
return _make_response(req_id, result_payload)

# Optional MCP surfaces (return empty to avoid noisy "Method not found" in some runtimes)
if method == "resources/list":
Expand Down
Loading