snow-flow 10.0.5 → 10.0.6
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.
- package/package.json +1 -1
- package/script/publish.ts +3 -2
- package/src/servicenow/index.ts +4 -5
- package/src/servicenow/mcp-config.ts +4 -10
package/package.json
CHANGED
package/script/publish.ts
CHANGED
|
@@ -54,11 +54,12 @@ for (const tag of tags) {
|
|
|
54
54
|
|
|
55
55
|
if (!Script.preview) {
|
|
56
56
|
// Create archives for GitHub release
|
|
57
|
+
// Include both bin/ and mcp/ directories so postinstall gets the MCP server files
|
|
57
58
|
for (const key of Object.keys(binaries)) {
|
|
58
59
|
if (key.includes("linux")) {
|
|
59
|
-
await $`tar -czf
|
|
60
|
+
await $`tar -czf ../${key}.tar.gz bin mcp`.cwd(`dist/${key}`)
|
|
60
61
|
} else {
|
|
61
|
-
await $`zip -r
|
|
62
|
+
await $`zip -r ../${key}.zip bin mcp`.cwd(`dist/${key}`)
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
|
package/src/servicenow/index.ts
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* They are automatically injected when credentials are present in the auth store.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { Config } from "../config/config"
|
|
14
|
+
|
|
13
15
|
// Auth - these are in the main auth module
|
|
14
16
|
export { ServiceNowOAuth } from "../auth/servicenow-oauth"
|
|
15
17
|
export type { ServiceNowAuthResult, ServiceNowOAuthOptions } from "../auth/servicenow-oauth"
|
|
@@ -33,7 +35,7 @@ export {
|
|
|
33
35
|
* "mcp": {
|
|
34
36
|
* "servicenow-unified": {
|
|
35
37
|
* "type": "local",
|
|
36
|
-
* "command": ["
|
|
38
|
+
* "command": ["bun", "run", "node_modules/snow-flow/mcp/servicenow-unified.js"],
|
|
37
39
|
* "environment": {
|
|
38
40
|
* "SERVICENOW_INSTANCE_URL": "https://your-instance.service-now.com",
|
|
39
41
|
* "SERVICENOW_CLIENT_ID": "your-client-id",
|
|
@@ -46,10 +48,7 @@ export {
|
|
|
46
48
|
export function getDefaultServiceNowMcpConfig() {
|
|
47
49
|
return {
|
|
48
50
|
type: "local" as const,
|
|
49
|
-
command:
|
|
50
|
-
"node",
|
|
51
|
-
"node_modules/@groeimetai/snow-flow-ts/dist/servicenow/servicenow-mcp-unified/index.js",
|
|
52
|
-
],
|
|
51
|
+
command: Config.getMcpServerCommand("servicenow-unified"),
|
|
53
52
|
environment: {
|
|
54
53
|
SERVICENOW_INSTANCE_URL: process.env.SERVICENOW_INSTANCE_URL ?? "",
|
|
55
54
|
SERVICENOW_CLIENT_ID: process.env.SERVICENOW_CLIENT_ID ?? "",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* when ServiceNow credentials are available in the auth store.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import { Config } from "../config/config"
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Get the default ServiceNow MCP server configuration
|
|
@@ -40,10 +40,7 @@ export function getServiceNowMcpConfig(options?: {
|
|
|
40
40
|
|
|
41
41
|
return {
|
|
42
42
|
type: "local",
|
|
43
|
-
command:
|
|
44
|
-
"node",
|
|
45
|
-
"node_modules/@groeimetai/snow-flow-ts/dist/servicenow/servicenow-mcp-unified/index.js",
|
|
46
|
-
],
|
|
43
|
+
command: Config.getMcpServerCommand("servicenow-unified"),
|
|
47
44
|
environment,
|
|
48
45
|
enabled: true,
|
|
49
46
|
}
|
|
@@ -119,10 +116,7 @@ export async function getServiceNowMcpConfigFromAuth(): Promise<Config.Mcp | nul
|
|
|
119
116
|
// For basic auth, we use different env vars
|
|
120
117
|
return {
|
|
121
118
|
type: "local",
|
|
122
|
-
command:
|
|
123
|
-
"node",
|
|
124
|
-
"node_modules/@groeimetai/snow-flow-ts/dist/servicenow/servicenow-mcp-unified/index.js",
|
|
125
|
-
],
|
|
119
|
+
command: Config.getMcpServerCommand("servicenow-unified"),
|
|
126
120
|
environment: {
|
|
127
121
|
SERVICENOW_INSTANCE_URL: snAuth.instance,
|
|
128
122
|
SERVICENOW_USERNAME: snAuth.username,
|
|
@@ -152,7 +146,7 @@ export const SERVICENOW_MCP_CONFIG_EXAMPLE = `
|
|
|
152
146
|
"mcp": {
|
|
153
147
|
"servicenow-unified": {
|
|
154
148
|
"type": "local",
|
|
155
|
-
"command": ["
|
|
149
|
+
"command": ["bun", "run", "node_modules/snow-flow/mcp/servicenow-unified.js"],
|
|
156
150
|
"environment": {
|
|
157
151
|
"SERVICENOW_INSTANCE_URL": "https://your-instance.service-now.com",
|
|
158
152
|
"SERVICENOW_CLIENT_ID": "your-oauth-client-id",
|