- tests: server/tests/api_coverage2.test.mjs (23 cas offline-safe) : oauth (status/url/connections/preview), channels (validations), subscriptions batch + groupes CRUD, transcripts history, likes/history DELETE, playlists public/view/reorder, telemetry summary, downloads 401/403/400, ai 503, twitch-token, config.js, rumble 400 - mcp v1.1.0 : 4 outils authentifies (list_playlists/likes/ subscriptions/watch_history, NEWTUBE_TOKEN) + tests stub - openapi.json v1.1 : 15 chemins documentes (sante, recherche, details, trending, transcript, auth, prefs, likes, subs, downloads, oauth, playlists) ; guide maj (11 outils)
This commit is contained in:
+2
-2
@@ -23,7 +23,7 @@ function rpc(proc, obj) {
|
||||
}
|
||||
|
||||
describe('NewTube MCP server (stdio)', () => {
|
||||
it('initialize + tools/list expose 7 outils dont transcript', async () => {
|
||||
it('initialize + tools/list expose 11 outils dont transcript', async () => {
|
||||
const proc = spawn(process.execPath, ['./mcp/server.mjs'], { env: { ...process.env, NEWTUBE_API_URL: 'http://127.0.0.1:9/api' } });
|
||||
try {
|
||||
const init = await rpc(proc, { jsonrpc: '2.0', id: 1, method: 'initialize', params: {} });
|
||||
@@ -32,7 +32,7 @@ describe('NewTube MCP server (stdio)', () => {
|
||||
|
||||
const list = await rpc(proc, { jsonrpc: '2.0', id: 2, method: 'tools/list', params: {} });
|
||||
const names = list.result.tools.map((t) => t.name);
|
||||
for (const expected of ['search_videos', 'get_video_details', 'get_trending', 'get_transcript', 'get_transcript_text', 'health_check']) {
|
||||
for (const expected of ['search_videos', 'suggest_queries', 'get_video_details', 'get_trending', 'get_transcript', 'get_transcript_text', 'health_check', 'list_playlists', 'list_likes', 'list_subscriptions', 'list_watch_history']) {
|
||||
assert.ok(names.includes(expected), `outil manquant: ${expected}`);
|
||||
}
|
||||
const tr = list.result.tools.find((t) => t.name === 'get_transcript');
|
||||
|
||||
Reference in New Issue
Block a user