Skip to content

Commit 5dba311

Browse files
committed
refactor: mcp-run-python main deno
1 parent c79fa7b commit 5dba311

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
@@ -17,7 +17,7 @@ import { asXml, runCode, runCodeWithToolInjection, type ToolInjectionConfig } fr
1717
const VERSION = '0.0.14'
1818

1919
export async function main() {
20-
const args = globalThis.Deno?.args || []
20+
const args = Deno?.args || []
2121
if (args.length === 1 && args[0] === 'stdio') {
2222
await runStdio()
2323
} else if (args.length >= 1 && args[0] === 'streamable_http') {
@@ -46,7 +46,7 @@ Usage: deno run -N -R=node_modules -W=node_modules --node-modules-dir=auto jsr:@
4646
options:
4747
--port <port> Port to run the SSE server on (default: 3001)`,
4848
)
49-
globalThis.Deno?.exit(1)
49+
Deno?.exit(1)
5050
}
5151
}
5252

@@ -56,7 +56,7 @@ options:
5656
function createServer(): McpServer {
5757
const server = new McpServer(
5858
{
59-
name: 'MCP Run Python with Tool Injection',
59+
name: 'MCP Run Python',
6060
version: VERSION,
6161
},
6262
{

0 commit comments

Comments
 (0)