Enable npx execution for MCP server

Remove import.meta.url entry point guard that prevented npx from
invoking main(), and bump version to 0.1.7.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
kappa
2026-02-08 22:35:43 +09:00
parent 31d0e9b97f
commit 868141876e
2 changed files with 5 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@ironclads/incus-mcp", "name": "@ironclads/incus-mcp",
"version": "0.1.6", "version": "0.1.7",
"description": "MCP server for Incus container management", "description": "MCP server for Incus container management",
"main": "build/index.js", "main": "build/index.js",
"type": "module", "type": "module",

View File

@@ -343,9 +343,7 @@ async function main() {
await server.run(); await server.run();
} }
if (import.meta.url === `file://${process.argv[1]}`) {
main().catch((error) => { main().catch((error) => {
console.error('Server error:', error); console.error('Server error:', error);
process.exit(1); process.exit(1);
}); });
}