feat: expand Emby MCP with library audits, image previews and guarded FSK actions (1.4.0)
This commit is contained in:
1 parent
d586bce078
commit
4c9b8a230d
23 files changed
+1438
-20
No files matched your search
@@ -26,9 +26,9 @@ function callTool($name,$args,$expectError=false) {
|
||||
return json_decode($r['content'][0]['text'],true,512,JSON_THROW_ON_ERROR);
|
||||
}
|
||||
$init=rpc('initialize',(object)[]);
|
||||
requireTrue($init['serverInfo']['version']==='1.3.0','Expected loaded eMCPy 1.3.0');
|
||||
requireTrue(in_array($init['serverInfo']['version'],['1.3.0','1.4.0'],true),'Expected loaded eMCPy 1.3.0 or 1.4.0');
|
||||
$tools=rpc('tools/list',(object)[]);
|
||||
requireTrue(count($tools['tools'])===18,'Expected 18 tools');
|
||||
requireTrue(count($tools['tools'])>=18,'Expected at least the existing 18 tools');
|
||||
$search=callTool('emby_search',['query'=>'Proper People','type'=>'Series']);
|
||||
requireTrue(count($search['items'])===1,'Select explicit series ID; search ambiguous');
|
||||
$id=$search['items'][0]['id'];
|
||||
|
||||
Reference in new issue
Block a user