MCPcopy
hub / github.com/7836246/cursor2api / defaultConfig

Function defaultConfig

src/config.ts:221–234  ·  view source on GitHub ↗

* 构建默认配置

()

Source from the content-addressed store, hash-verified

219 * 构建默认配置
220 */
221function defaultConfig(): AppConfig {
222 return {
223 port: 3010,
224 timeout: 120,
225 cursorModel: 'anthropic/claude-sonnet-4.6',
226 maxAutoContinue: 0,
227 maxHistoryMessages: -1,
228 maxHistoryTokens: 150000,
229 sanitizeEnabled: false, // 默认关闭响应内容清洗
230 fingerprint: {
231 userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36',
232 },
233 };
234}
235
236/**
237 * 检测配置变更并返回变更描述列表

Callers 2

getConfigFunction · 0.85
initConfigWatcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected