Skip to content

Commit 6e0267a

Browse files
committed
refactor: mcp-run-python main deno
1 parent 393f025 commit 6e0267a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mcp-run-python/src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { asXml, runCode, runCodeWithToolInjection, type ToolInjectionConfig } fr
1414
const VERSION = '0.0.14'
1515

1616
export async function main() {
17-
const args = globalThis.Deno?.args || []
17+
const args = Deno?.args || []
1818
if (args.length === 1 && args[0] === 'stdio') {
1919
await runStdio()
2020
} else if (args.length >= 1 && args[0] === 'sse') {
@@ -36,7 +36,7 @@ Usage: deno run -N -R=node_modules -W=node_modules --node-modules-dir=auto jsr:@
3636
options:
3737
--port <port> Port to run the SSE server on (default: 3001)`,
3838
)
39-
globalThis.Deno?.exit(1)
39+
Deno?.exit(1)
4040
}
4141
}
4242

@@ -46,7 +46,7 @@ options:
4646
function createServer(): McpServer {
4747
const server = new McpServer(
4848
{
49-
name: 'MCP Run Python with Tool Injection',
49+
name: 'MCP Run Python',
5050
version: VERSION,
5151
},
5252
{

0 commit comments

Comments
 (0)