Skip to content

Commit b777cc1

Browse files
authored
scratch/authCmdUpdate (#3)
* fix: align auth cmd with latest fluent * maint: bump dep versions * feat: add auth validation if env variable is set, update readme
1 parent 5722a9a commit b777cc1

File tree

11 files changed

+685
-465
lines changed

11 files changed

+685
-465
lines changed

README.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ Resources can be accessed by direct URI or through the `resources/list` method.
9797
"mcpServers": {
9898
"fluent-mcp": {
9999
"command": "npx",
100-
"args": ["-y", "@modesty/fluent-mcp"]
100+
"args": ["-y", "@modesty/fluent-mcp"],
101+
"env": {
102+
"SN_INSTANCE_URL": "http://localhost:8080",
103+
"SN_AUTH_TYPE": "oauth"
104+
}
101105
}
102106
}
103107
}
@@ -116,7 +120,11 @@ Resources can be accessed by direct URI or through the `resources/list` method.
116120
"fluent-mcp": {
117121
"type": "stdio",
118122
"command": "npx",
119-
"args": ["-y", "@modesty/fluent-mcp"]
123+
"args": ["-y", "@modesty/fluent-mcp"],
124+
"env": {
125+
"SN_INSTANCE_URL": "http://localhost:8080",
126+
"SN_AUTH_TYPE": "oauth"
127+
}
120128
}
121129
}
122130
}
@@ -132,7 +140,11 @@ Add MCP server configuration in Cursor settings:
132140
"mcpServers": {
133141
"fluent-mcp": {
134142
"command": "npx",
135-
"args": ["-y", "@modesty/fluent-mcp"]
143+
"args": ["-y", "@modesty/fluent-mcp"],
144+
"env": {
145+
"SN_INSTANCE_URL": "http://localhost:8080",
146+
"SN_AUTH_TYPE": "oauth"
147+
}
136148
}
137149
}
138150
}
@@ -147,7 +159,11 @@ Add MCP server configuration in Cursor settings:
147159
"mcpServers": {
148160
"fluent-mcp": {
149161
"command": "npx",
150-
"args": ["-y", "@modesty/fluent-mcp"]
162+
"args": ["-y", "@modesty/fluent-mcp"],
163+
"env": {
164+
"SN_INSTANCE_URL": "http://localhost:8080",
165+
"SN_AUTH_TYPE": "oauth"
166+
}
151167
}
152168
}
153169
}
@@ -167,7 +183,11 @@ Configure in `~/.gemini/settings.json` or `./.gemini/settings.json`:
167183
"args": [
168184
"-y",
169185
"@modesty/fluent-mcp"
170-
]
186+
],
187+
"env": {
188+
"SN_INSTANCE_URL": "http://localhost:8080",
189+
"SN_AUTH_TYPE": "oauth"
190+
}
171191
}
172192
}
173193
}

doc/prd-fluent-mcp-servicenow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Fluent MCP is a Model Context Protocol (MCP) server that provides ServiceNow SDK
5252
2.3 Init command:
5353
prerequisites:
5454
- Change the current working directory to the directory where you want to create the ServiceNow application.
55-
- The current working directory must not already contain a ServiceNow application, meaning it must not contain a `now.config.json` file, and it's package.json (if exists) must not have dependencies for `@servicenow/now-sdk` or `@servicenow/now-sdk-cli`. Otherwise, return a message indicating that the current directory already contains a Fluent (ServiceNow SDK) application, and tell the user current scope name and package name.
55+
- The current working directory must not already contain a ServiceNow application, meaning it must not contain a `now.config.json` file, and it's package.json (if exists) must not have dependencies for `@servicenow/sdk`. Otherwise, return a message indicating that the current directory already contains a Fluent (ServiceNow SDK) application, and tell the user current scope name and package name.
5656
- working directory handling:
5757
- If working directory is provided
5858
- If the provided working directory doesn't exist, create it, save it as the working directory for the session, then move onto command execution

0 commit comments

Comments
 (0)