Cursor SDK:カスタムストア・カスタムツール・自動レビュー機能を追加Custom stores, custom tools, and auto-review for the Cursor SDK
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.
- ポコPoko自分の関数をエージェントに使わせたいとき、普段の作業は何が変わるの?If I want an agent to use my own function, what changes in my day-to-day work?
- 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.
- ポコPoko前は、できなかったの?Couldn't you do that before?
- 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.
- ポコPoko一番の収穫は、手間なく自分のコードをツールにできて、承認の扱いも選べることかな。So the big win is turning my own code into a tool without much hassle, and choosing how approvals work.
- 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.
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy