@deriv-com/fe-mcp-servers 0.0.6 → 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.
- package/README.md +3 -3
- package/dist/shift-ai/README.md +35 -2
- package/dist/shift-ai/mcp-server.js +5462 -0
- package/package.json +1 -4
- package/dist/shift-ai/src/mcp-server.js +0 -112
- package/dist/shift-ai/src/mcp.js +0 -96
- package/dist/shift-ai/src/test-mcp.js +0 -66
package/README.md
CHANGED
|
@@ -27,14 +27,14 @@ mcps/
|
|
|
27
27
|
### Install the Package
|
|
28
28
|
```bash
|
|
29
29
|
# Install globally
|
|
30
|
-
npm install -g @deriv/
|
|
30
|
+
npm install -g @deriv-com/fe-mcp-servers
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
### Get Your Configuration Path
|
|
34
34
|
Copy and run this command to get the exact path for your MCP configuration:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
echo "$(npm root -g)/@deriv/
|
|
37
|
+
echo "$(npm root -g)/@deriv-com/fe-mcp-servers/dist/SERVER_NAME/mcp-server.js"
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
Replace `SERVER_NAME` with the specific server you want (e.g., `shift-ai`).
|
|
@@ -57,7 +57,7 @@ Replace `SERVER_NAME` with the specific server you want (e.g., `shift-ai`).
|
|
|
57
57
|
"mcpServers": {
|
|
58
58
|
"shift-ai": {
|
|
59
59
|
"command": "node",
|
|
60
|
-
"args": ["/Users/user/.nvm/versions/node/v20.17.0/lib/node_modules/@deriv/
|
|
60
|
+
"args": ["/Users/user/.nvm/versions/node/v20.17.0/lib/node_modules/@deriv-com/fe-mcp-servers/dist/shift-ai/mcp-server.js"]
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
package/dist/shift-ai/README.md
CHANGED
|
@@ -134,8 +134,8 @@ shift-ai/
|
|
|
134
134
|
|
|
135
135
|
| Language/File Type | Wrapper Format |
|
|
136
136
|
|----------------------- |-----------------------------------|
|
|
137
|
-
| JavaScript/TypeScript | `// [AI]`...`// [/AI]` |
|
|
138
|
-
| Python/Shell/Ruby | `# [AI]`...`# [/AI]` |
|
|
137
|
+
| JavaScript/TypeScript/Dart/Java/C/C++/C#/PHP/Go/Rust/Swift/Kotlin/Scala | `// [AI]`...`// [/AI]` |
|
|
138
|
+
| Python/Shell/Ruby/PERL/R/YAML/TOML | `# [AI]`...`# [/AI]` |
|
|
139
139
|
| CSS/SCSS/Sass/Less | `/* [AI]`...`[/AI] */` |
|
|
140
140
|
| HTML/XML/Markdown | `<!-- [AI] -->`...`<!-- [/AI] -->` |
|
|
141
141
|
|
|
@@ -165,3 +165,36 @@ def fibonacci(n):
|
|
|
165
165
|
# [/AI]
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
+
### Dart
|
|
169
|
+
```dart
|
|
170
|
+
// [AI]
|
|
171
|
+
List<int> fibonacci(int n) {
|
|
172
|
+
if (n <= 0) return [];
|
|
173
|
+
if (n == 1) return [0];
|
|
174
|
+
|
|
175
|
+
List<int> sequence = [0, 1];
|
|
176
|
+
for (int i = 2; i < n; i++) {
|
|
177
|
+
sequence.add(sequence[i - 1] + sequence[i - 2]);
|
|
178
|
+
}
|
|
179
|
+
return sequence;
|
|
180
|
+
}
|
|
181
|
+
// [/AI]
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### PERL
|
|
185
|
+
```perl
|
|
186
|
+
# [AI]
|
|
187
|
+
sub fibonacci {
|
|
188
|
+
my $n = shift;
|
|
189
|
+
return [] if $n <= 0;
|
|
190
|
+
return [0] if $n == 1;
|
|
191
|
+
|
|
192
|
+
my @sequence = (0, 1);
|
|
193
|
+
for my $i (2..$n-1) {
|
|
194
|
+
push @sequence, $sequence[$i-1] + $sequence[$i-2];
|
|
195
|
+
}
|
|
196
|
+
return \@sequence;
|
|
197
|
+
}
|
|
198
|
+
# [/AI]
|
|
199
|
+
```
|
|
200
|
+
|