mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 09:00:47 +00:00
feat: add MCP support (#1471)
This commit is contained in:
83 files changed
+3119
-363
No files matched your search
@@ -20,10 +20,17 @@ void main() {
|
||||
|
||||
test('REST server settings round-trip through the Go downloader config', () {
|
||||
final config = DownloaderConfig()
|
||||
..api = ApiServerConfig(enable: true, network: 'tcp', address: '127.0.0.1:4321', token: 'secret');
|
||||
..api = ApiServerConfig(
|
||||
enable: true,
|
||||
mcpEnable: true,
|
||||
network: 'tcp',
|
||||
address: '127.0.0.1:4321',
|
||||
token: 'secret',
|
||||
);
|
||||
|
||||
final decoded = DownloaderConfig.fromJson(config.toJson()).api;
|
||||
expect(decoded.enable, isTrue);
|
||||
expect(decoded.mcpEnable, isTrue);
|
||||
expect(decoded.network, 'tcp');
|
||||
expect(decoded.address, '127.0.0.1:4321');
|
||||
expect(decoded.token, 'secret');
|
||||
|
||||
Reference in new issue
Block a user