Skip to content

Commit e5f57c0

Browse files
committed
OZ mcp timeout to 1sec
1 parent 1b36494 commit e5f57c0

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

apps/remix-ide/webpack.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ class EmitSoljsonPlugin {
2424
compilation.hooks.processAssets.tapPromise(
2525
{ name: 'EmitSoljsonPlugin', stage: Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL },
2626
async () => {
27-
const assetName = 'assets/js/soljson.js'
28-
// Check if asset already exists to avoid conflicts
29-
if (compilation.getAsset(assetName)) {
30-
return
31-
}
3227
try {
3328
const defaultVersion = require('../../package.json').defaultVersion
3429
const url = `https://binaries.soliditylang.org/bin/${defaultVersion}`
@@ -48,7 +43,7 @@ class EmitSoljsonPlugin {
4843
})
4944
if (RawSource) {
5045
// Match previous public path: assets/js/soljson.js
51-
compilation.emitAsset(assetName, new RawSource(data))
46+
compilation.emitAsset('assets/js/soljson.js', new RawSource(data))
5247
}
5348
} catch (e) {
5449
console.warn('EmitSoljsonPlugin: skipping emit due to error:', e.message)

libs/remix-ai-core/src/config/mcpDefaultServers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const mcpDefaultServersConfig: MCPDefaultServersConfig = {
2525
url: endpointUrls.mcpCorsProxy + '/solidity',
2626
autoStart: true,
2727
enabled: true,
28-
timeout: 30000
28+
timeout: 1000
2929
},
3030
{
3131
name: 'OpenZeppelin Contracts Cairo',
@@ -34,7 +34,7 @@ export const mcpDefaultServersConfig: MCPDefaultServersConfig = {
3434
url: endpointUrls.mcpCorsProxy + '/cairo',
3535
autoStart: true,
3636
enabled: true,
37-
timeout: 30000
37+
timeout: 1000
3838
},
3939
{
4040
name: 'OpenZeppelin Contracts Stellar',
@@ -43,7 +43,7 @@ export const mcpDefaultServersConfig: MCPDefaultServersConfig = {
4343
url: endpointUrls.mcpCorsProxy + '/stellar',
4444
autoStart: true,
4545
enabled: true,
46-
timeout: 30000
46+
timeout: 1000
4747
},
4848
{
4949
name: 'OpenZeppelin Contracts Stylus',
@@ -52,7 +52,7 @@ export const mcpDefaultServersConfig: MCPDefaultServersConfig = {
5252
url: endpointUrls.mcpCorsProxy + '/stylus',
5353
autoStart: true,
5454
enabled: true,
55-
timeout: 30000
55+
timeout: 1000
5656
},
5757
{
5858
name: 'Alchemy',

0 commit comments

Comments
 (0)