File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ VSCodeのsettings.jsonに以下の設定を追加します:
52
52
接続後、以下のツールが利用可能になります:
53
53
- ` jser_search_items ` : タイトル、説明、URL、タグでアイテムを検索(複数キーワードでOR検索可能)
54
54
- ` jser_search_posts ` : タイトル、説明、URL、タグで投稿を検索
55
- - ` jser_product_name ` : URLから製品名を取得
55
+ - ` jser_product_name ` : URLからプロダクト名を取得
56
56
- ` jser_week ` : 番号からJSer週を取得
57
57
- ` jser_weeks ` : 全てのJSer週を取得
58
58
- ` jser_weeks_between ` : 二つの日付の間のJSer週を取得
59
59
- ` jser_week_with_item_url ` : アイテムを含むJSer週を取得
60
- - ` jser_item_with_url ` : URLからJSerアイテムを取得
60
+ - ` jser_item_with_item_url ` : URLからJSerアイテムを取得
61
61
62
62
### 利用できるtool
63
63
@@ -110,14 +110,14 @@ JSer.info MCPでは、次の tool が利用できます。
110
110
111
111
#### jser_product_name
112
112
113
- URLから製品名を取得します 。
113
+ URLからプロダクト名を取得します 。
114
114
115
115
パラメータ:
116
116
- ` url ` : 製品のURL(必須)
117
117
118
118
返り値:
119
119
- 製品情報のオブジェクト
120
- - ` name ` : 製品名
120
+ - ` name ` : プロダクト名
121
121
- ` url ` : 製品のURL
122
122
- ` releaseNoteProbability ` : リリースノートである確率
123
123
- ` releaseNoteVersion ` : リリースノートのバージョン情報(該当する場合)
@@ -183,7 +183,7 @@ URLから製品名を取得します。
183
183
- ` items ` : その週のアイテムリスト
184
184
- ` posts ` : その週の投稿リスト
185
185
186
- #### jser_item_with_url
186
+ #### jser_item_with_item_url
187
187
188
188
指定したURLのアイテムを取得します。
189
189
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ export const createJSerInfoMcpServer = (options?: { items?: JserItem[]; posts?:
229
229
230
230
mcpServer . tool (
231
231
"jser_product_name" ,
232
- "URLから製品名を取得します " ,
232
+ "URLからプロダクト名を取得します " ,
233
233
{
234
234
url : z . string ( ) . url ( ) . describe ( "製品のURL" )
235
235
} ,
@@ -239,17 +239,17 @@ export const createJSerInfoMcpServer = (options?: { items?: JserItem[]; posts?:
239
239
240
240
if ( ! response . ok ) {
241
241
if ( response . status === 400 ) {
242
- // APIが400を返す場合、製品名が見つからないことを示す
242
+ // APIが400を返す場合、プロダクト名が見つからないことを示す
243
243
return {
244
244
content : [
245
245
{
246
246
type : "text" ,
247
- text : "製品名が見つかりませんでした "
247
+ text : "プロダクト名が見つかりませんでした "
248
248
}
249
249
]
250
250
} ;
251
251
}
252
- throw new Error ( `製品名APIエラー : ${ response . statusText } ` ) ;
252
+ throw new Error ( `プロダクト名APIエラー : ${ response . statusText } ` ) ;
253
253
}
254
254
255
255
const result = await response . json ( ) ;
@@ -262,12 +262,12 @@ export const createJSerInfoMcpServer = (options?: { items?: JserItem[]; posts?:
262
262
]
263
263
} ;
264
264
} catch ( error ) {
265
- console . error ( "製品名取得中にエラーが発生しました :" , error ) ;
265
+ console . error ( "プロダクト名取得中にエラーが発生しました :" , error ) ;
266
266
return {
267
267
content : [
268
268
{
269
269
type : "text" ,
270
- text : `製品名取得中にエラーが発生しました : ${ String ( error ) } `
270
+ text : `プロダクト名取得中にエラーが発生しました : ${ String ( error ) } `
271
271
}
272
272
] ,
273
273
isError : true
@@ -460,7 +460,7 @@ export const createJSerInfoMcpServer = (options?: { items?: JserItem[]; posts?:
460
460
) ;
461
461
462
462
mcpServer . tool (
463
- "jser_item_with_url " ,
463
+ "jser_item_with_item_url " ,
464
464
"URLからJSerアイテムを取得します" ,
465
465
{
466
466
url : z . string ( ) . url ( ) . describe ( "アイテムのURL" )
Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ describe("JSer.info MCP Server", () => {
379
379
try {
380
380
const client = await createConnection ( url ) ;
381
381
const response = await client . callTool ( {
382
- name : "jser_item_with_url " ,
382
+ name : "jser_item_with_item_url " ,
383
383
arguments : {
384
384
url : "https://efendibooks.com/minibooks/testing-with-coffeescript"
385
385
}
You can’t perform that action at this time.
0 commit comments