File tree Expand file tree Collapse file tree
docs/extension-capabilities-tutorial Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -430,20 +430,22 @@ mcpService.setOptions(remoteConfig)
430430
431431### 高级配置
432432
433- ``` typescript
433+ <pre >
434+ <code >
434435import { getMetaApi } from '@opentiny/tiny-engine-meta-register'
435436
436437const mcpService = getMetaApi('engine.service.mcp')
437438
438439const advancedConfig = {
439- proxyUrl: process .env .MCP_PROXY_URL || ' http://localhost:3000/mcp' ,
440- connectToAgentServer: process .env .NODE_ENV === ' production' ,
440+ proxyUrl: process< wbr > .env.MCP_PROXY_URL || 'http://localhost:3000/mcp',
441+ connectToAgentServer: process< wbr > .env.NODE_ENV === 'production',
441442 reconnectAttempts: 5,
442443 reconnectInterval: 2000
443444}
444445
445446mcpService.setOptions(advancedConfig)
446- ```
447+ </code >
448+ </pre >
447449
448450## 最佳实践
449451
You can’t perform that action at this time.
0 commit comments