Home›Editor›Cursor SDK:カスタムストア・カスタムツール・自動レビュー機能を追加

Cursor SDK:カスタムストア・カスタムツール・自動レビュー機能を追加Custom stores, custom tools, and auto-review for the Cursor SDK

元記事を読むRead original articlecursor.com(新しいタブで開きます)(opens in a new tab)
AI 要約AI summary

TypeScript/Python向けCursor SDKがカスタムストア・カスタムツール・自動レビュー・ネスト型サブエージェントに対応し、実行相関IDや軽量インポートも導入。エージェント開発の柔軟性と信頼性が大幅に向上する。

The Cursor SDK for TypeScript and Python gains custom stores, custom tools, auto-review, and nested subagents, alongside run correlation IDs and lighter imports — giving developers finer control over agent workflows and easier debugging.

AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (cursor.com) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (cursor.com).

Cursor の TypeScript SDK と Python SDK に、新機能がまとめて追加された。エージェントと実行メタデータの保存方法の選択、独自関数のツール公開、ローカルのツール呼び出しの自動レビュー、ネストされたサブエージェントなどが利用できるようになる。

カスタムツールの追加

ローカルエージェントに独自のツールを持たせるには、Agent.create() または send() の呼び出しごとに、local.customTools を通じて関数定義を渡す。SDK は、これらの関数を custom-user-tools という組み込みの MCP サーバー経由でエージェントに公開する。そのためモデルは、ほかの MCP ツールと同じ経路、同じ権限ゲートを通じてユーザーのコードを呼び出す。

従来は、カスタム機能を公開するために、独自の stdio またはリモート HTTP の MCP サーバーを立ち上げて接続する必要があった。今後は関数定義だけで足りるとされる。定義したカスタムツールは親エージェントのすべてのサブエージェントからも参照できるため、一度の定義で実行全体に使える。

自動レビューの扱い

デフォルトでは、ローカル SDK エージェントはツール呼び出しを承認なしで実行する。ヘッドレス実行では人間が介在しないためだ。こうした呼び出しを自動レビューに通したい場合は、local.autoReview を設定する。

自動レビューはレビュー自体を迂回する仕組みではない。分類器が、どの呼び出しを自動的に実行し、どれを保留にするかを判断する。この分類器は、permissions.json に自然言語で書く instructions によって調整できる。

ストアとサブエージェント

今回のリリースでは、エージェントと実行メタデータの保存方法を選べるようになった。また、ネストされたサブエージェントを任意の深さまで入れ子にできる。これらの具体的な設定方法や挙動の詳細は、ここで示された範囲では明らかではない。

信頼性などの修正

リリースには、信頼性、パフォーマンス、プラットフォームに関する一連の修正も含まれる。これらにより、ローカルとクラウドの両方の SDK エージェントを、本番用スクリプト、CI、カスタム統合でより簡単に実行できるようになると説明されている。

The Cursor SDK for TypeScript and Python has received several new features, according to the Cursor changelog. The update is aimed at making local and cloud SDK agents easier to run in production scripts, CI, and custom integrations.

Custom tools through local.customTools

Local agents can now have their own tools. Developers pass function definitions through local.customTools, either in Agent.create() or with each send() call. The SDK exposes those functions to the agent through a built-in MCP server called custom-user-tools. As a result, the model calls your code along the same path, and through the same permission gates, as any other MCP tool.

Previously, exposing custom functionality meant standing up your own stdio or remote HTTP MCP server and connecting it to the agent. The announcement says function definitions alone are now enough. Custom tools are also visible to every subagent of the parent agent, so a tool defined once is available across the whole run.

Routing calls through auto-review

By default, local SDK agents execute tool calls without asking for approval, because headless runs have no human in the loop. Setting local.autoReview sends those calls through auto-review instead. Rather than bypassing review entirely, a classifier decides which calls run automatically and which are held back.

The classifier can be tuned with natural-language instructions in permissions.json.

Custom stores and nested subagents

Developers can now choose how agents and run metadata are stored. Subagents can also be nested to any depth. The release summary additionally lists run correlation IDs and lighter imports, and describes the overall result as finer control over agent workflows and easier debugging.

Reliability and platform fixes

The release also bundles a set of fixes covering reliability, performance, and platform issues. According to the changelog, these fixes make it simpler to run both local and cloud SDK agents in production scripts, CI, and custom integrations.

ポコとTECHガイドPoko & TECH Guide

ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.

  1. ポコPoko自分の関数をエージェントに使わせたいとき、普段の作業は何が変わるの?If I want an agent to use my own function, what changes in my day-to-day work?
  2. TECHガイドTECH Guide関数定義を local.customTools で渡すだけでよくなります。SDKが組み込みのMCPサーバー経由でエージェントに公開してくれます。You just pass the function definition through local.customTools. The SDK exposes it to the agent through a built-in MCP server.
  3. ポコPoko前は、できなかったの?Couldn't you do that before?
  4. TECHガイドTECH Guideできましたが、独自のstdioかリモートHTTPのMCPサーバーを立ち上げて接続する必要がありました。今は関数定義だけで足りる、とこの記事にあります。You could, but you had to run your own stdio or remote HTTP MCP server and connect it. Now the article says a function definition is enough.
  5. ポコPoko一番の収穫は、手間なく自分のコードをツールにできて、承認の扱いも選べることかな。So the big win is turning my own code into a tool without much hassle, and choosing how approvals work.
  6. TECHガイドTECH Guideそうですね。次はlocal.autoReviewですね。分類器が実行する呼び出しと保留にする呼び出しを分け、permissions.jsonのinstructionsで調整できるそうです。Right. Next, look at local.autoReview. A classifier decides which calls run and which are held, and you can tune it with instructions in permissions.json.
記事情報・収集記録Article details & collection record
出典Source
Cursor Changelog公式Official
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
変更履歴Changelog
原文言語Source language
英語English
重要度の位置づけImportance in this lane
MediumMedium priority(Editor 191件中、同等以上 147件)(147 of 191 Editor entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
2.1 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
短命 (ニュース)Short-lived (news)

🖱️Editor の他の記事More from Editorもっと見る →View more →

ページ上部へScroll to top