@cpujia/codex-mcp-server 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,10 +9,13 @@ export class CodexClient {
9
9
  try {
10
10
  const effort = options.reasoningEffort ?? this.config.reasoningEffort;
11
11
  const maxTokens = options.maxTokens ?? this.config.maxTokens;
12
+ // 指令嵌入 user content,避免被 API 代理覆盖或过滤
13
+ const userContent = options.instructions
14
+ ? `[INSTRUCTIONS]\n${options.instructions}\n[/INSTRUCTIONS]\n\n${options.input}`
15
+ : options.input;
12
16
  const requestBody = {
13
17
  model: this.config.model,
14
- instructions: options.instructions,
15
- input: [{ role: "user", content: options.input }],
18
+ input: [{ role: "user", content: userContent }],
16
19
  max_output_tokens: maxTokens,
17
20
  store: false,
18
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpujia/codex-mcp-server",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "MCP Server for OpenAI Codex /v1/responses API integration with Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",