Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MANIFEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ The `mcp_config` object in the server configuration defines how the implementing
```json
"mcp_config": {
"command": "python",
"args": ["server/main.py"],
"args": ["${__dirname}/server/main.py"],
"env": {
"PYTHONPATH": "server/lib"
"PYTHONPATH": "${__dirname}/server/lib"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/cli/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function createMcpConfig(
command: "python",
args: ["${__dirname}/" + entryPoint],
env: {
PYTHONPATH: "server/lib",
PYTHONPATH: "${__dirname}/server/lib",
},
};
case "binary":
Expand Down
10 changes: 5 additions & 5 deletions test/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ describe("init functions", () => {
command: "python",
args: ["${__dirname}/server/main.py"],
env: {
PYTHONPATH: "server/lib",
PYTHONPATH: "${__dirname}/server/lib",
},
});
});
Expand Down Expand Up @@ -264,8 +264,8 @@ describe("init functions", () => {
entryPoint: "server/main.py",
mcp_config: {
command: "python",
args: ["server/main.py"],
env: { PYTHONPATH: "server/lib" },
args: ["${__dirname}/server/main.py"],
env: { PYTHONPATH: "${__dirname}/server/lib" },
},
},
[
Expand Down Expand Up @@ -325,8 +325,8 @@ describe("init functions", () => {
entry_point: "server/main.py",
mcp_config: {
command: "python",
args: ["server/main.py"],
env: { PYTHONPATH: "server/lib" },
args: ["${__dirname}/server/main.py"],
env: { PYTHONPATH: "${__dirname}/server/lib" },
},
},
tools: [
Expand Down
Loading