@azure/mcp 0.0.8

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.
Files changed (2) hide show
  1. package/index.js +48 -0
  2. package/package.json +43 -0
package/index.js ADDED
@@ -0,0 +1,48 @@
1
+ #!/usr/bin/env node
2
+
3
+ const os = require('os')
4
+
5
+ // Check if DEBUG environment variable is set
6
+ const isDebugMode = process.env.DEBUG && (
7
+ process.env.DEBUG.toLowerCase() === 'true' ||
8
+ process.env.DEBUG.includes('azure-mcp') ||
9
+ process.env.DEBUG === '*'
10
+ )
11
+
12
+ // Helper function for debug logging
13
+ function debugLog(...args) {
14
+ if (isDebugMode) {
15
+ console.log(...args)
16
+ }
17
+ }
18
+
19
+ debugLog('\nWrapper package starting')
20
+ debugLog('All args:')
21
+ process.argv.forEach((val, index) => {
22
+ debugLog(`${index}: ${val}`)
23
+ })
24
+
25
+ const platform = os.platform()
26
+ const arch = os.arch()
27
+
28
+ const platformPackageName = `@azure/mcp-${platform}-${arch}`
29
+
30
+ // Try to load the platform package
31
+ let platformPackage
32
+ try {
33
+ debugLog(`Attempting to require platform package: ${platformPackageName}`)
34
+ platformPackage = require(platformPackageName)
35
+ } catch (err) {
36
+ console.error(`Failed to load platform specific package '${platformPackageName}': ${err.message}`)
37
+ process.exit(1)
38
+ }
39
+
40
+ platformPackage.runExecutable(process.argv.slice(2))
41
+ .then((code) => {
42
+ debugLog(`Process exited with code: ${code}`)
43
+ process.exit(code)
44
+ })
45
+ .catch((err) => {
46
+ console.error(`Error: ${err.message}`)
47
+ process.exit(1)
48
+ })
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@azure/mcp",
3
+ "version": "0.0.8",
4
+ "description": "Azure MCP Server - Model Context Protocol implementation for Azure",
5
+ "author": "Microsoft Corporation",
6
+ "homepage": "https://github.com/Azure/azure-mcp#readme",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "azure",
10
+ "mcp",
11
+ "model-context-protocol"
12
+ ],
13
+ "bugs": {
14
+ "url": "https://github.com/Azure/azure-mcp/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/Azure/azure-mcp.git",
19
+ "directory": "eng/npm/wrapper"
20
+ },
21
+ "engines": {
22
+ "node": ">=18.0.0"
23
+ },
24
+ "bin": {
25
+ "azmcp": "./index.js"
26
+ },
27
+ "os": [
28
+ "darwin",
29
+ "win32",
30
+ "linux"
31
+ ],
32
+ "cpu": [
33
+ "x64",
34
+ "arm64"
35
+ ],
36
+ "optionalDependencies": {
37
+ "@azure/mcp-darwin-x64": "0.0.8",
38
+ "@azure/mcp-darwin-arm64": "0.0.8",
39
+ "@azure/mcp-win32-x64": "0.0.8",
40
+ "@azure/mcp-linux-x64": "0.0.8",
41
+ "@azure/mcp-win32-arm64": "0.0.8"
42
+ }
43
+ }