Skip to content

Commit ce07672

Browse files
authored
docs: change to pre wrap to avoid identify as env (opentiny#1621)
1 parent da1c7d6 commit ce07672

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

docs/extension-capabilities-tutorial/mcpService.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,20 +430,22 @@ mcpService.setOptions(remoteConfig)
430430

431431
### 高级配置
432432

433-
```typescript
433+
<pre>
434+
<code>
434435
import { getMetaApi } from '@opentiny/tiny-engine-meta-register'
435436

436437
const mcpService = getMetaApi('engine.service.mcp')
437438

438439
const 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

445446
mcpService.setOptions(advancedConfig)
446-
```
447+
</code>
448+
</pre>
447449

448450
## 最佳实践
449451

0 commit comments

Comments
 (0)