Commit graph

1,650 commits

Author SHA1 Message Date
Felix Weinberger
de16a18e2f
fix: use spread operator to avoid empty string arguments
This fixes the regression introduced in dc5fa6a where empty strings
were passed as arguments when no command or args were provided,
causing parseArgs to fail with "Unexpected argument ''" error.

The spread operator approach is more idiomatic and avoids creating
empty strings that need to be filtered out.
2025-08-05 11:50:06 +01:00
Jonathan Leitschuh
0194e5f62a
Add warning for DANGEROUSLY_OMIT_AUTH usage
Added warning about disabling authentication and its risks.
2025-08-04 14:35:33 -04:00
Mats Julius Funke
fda879ccc1
ci: added test for the DynamicJsonForm 2025-08-04 09:32:24 +02:00
Mats Julius Funke
cc3f9df33c
fix: fix type error by handling array of types in JSON schema validation 2025-08-04 09:26:24 +02:00
Ola Hungerford
1b03d1cfe1
Merge branch 'main' into fix/fastmcp-union-types 2025-08-03 12:37:01 -07:00
Ola Hungerford
55edb4048f
Merge branch 'main' into parse-tool-arg 2025-08-03 12:34:18 -07:00
Ola Hungerford
cf44b30bcc
Merge pull request #664 from richardkmichael/fix-dashed-mcp-args
fix: Argument notation to allow parseArgs to parse leading dash-options
2025-08-03 12:33:55 -07:00
Mats Julius Funke
d4f8e061f3
ci: added tests for the union type 2025-08-03 10:34:40 +02:00
Mats Julius Funke
1d960a1b9a
fix: added explicit handling for float & int 2025-08-03 10:34:19 +02:00
Mats Julius Funke
5469993e27
fix: add boolean union type support for FastMCP optional booleans 2025-08-02 16:35:42 +02:00
Mats Julius Funke
bcba0dc007
fix: removed tools tab test as its probably overkill and introduces to much new code 2025-08-02 16:11:43 +02:00
Mats Julius Funke
edd10e48a9
fix: updated import path npm test passes now 2025-08-02 16:01:16 +02:00
Mats Julius Funke
f73d8e6f8a
fix: support FastMCP union types in tool parameter forms 2025-08-02 15:59:45 +02:00
olaservo
dbacec64bd Fix formatting 2025-08-01 20:40:28 -07:00
olaservo
6e665b5d24 Merge branch 'main' into parse-tool-arg 2025-08-01 20:38:45 -07:00
Cliff Hall
7f1d924ead
Merge pull request #650 from richardkmichael/minor-dependencies
Update minor dependencies
2025-08-01 15:39:49 -04:00
Ola Hungerford
33dbf8399e
Merge pull request #615 from KKonstantinov/bugfix/authorization-url-generate-state
OAuth Flow: generate random state parameter in oauth state machine
2025-07-31 18:45:05 -07:00
Ola Hungerford
816f6c2c4c
Merge branch 'main' into bugfix/authorization-url-generate-state 2025-07-31 18:41:24 -07:00
Ola Hungerford
21bb00499f
Merge pull request #611 from antholeole/oleina/logging
initalize logging after connection
2025-07-31 18:13:30 -07:00
Richard Michael
dc5fa6a0f5 fix: Argument notation to allow parseArgs to parse leading dash-options
The server was invoked as:

`server/build/index.js --command comm --args arg1 arg2 arg3`

(`arg1 arg2 arg3` is a string in ARGV; the single value of `--args`.)

`util:parseArgs()` cannot handle an argument value with a leading dash
with this usage.

e.g.,

`server/build/index.js --command npm --args --silent --prefix path/to/servers/src/everything run start`

The above will throw, and indicate correct usage:

```
TypeError [ERR_PARSE_ARGS_INVALID_OPTION_VALUE]: Option '--args' argument is ambiguous.
Did you forget to specify the option argument for '--args'?
To specify an option argument starting with a dash use '--args=-XYZ'.
```

However, since users do not control the invocation of the server, they
cannot adjust the notation for their use-case.

`arguments`, and `command`, are unknown user input, so adjust the
argument form to the more lenient and robust notation.  Although a
`command` beginning with `-` seems unlikely, consistent handling of both
improves code clarity and simplicity.

Running the server directly (e.g., on the command line in development)
may continue to use: `--args arg1 arg2 arg3` if desired, so this is a
non-breaking change.
2025-07-31 12:08:47 -07:00
oleina
eec20ff1fc add missing close bracket 2025-07-31 10:20:47 -07:00
Alejandro Borbolla
5bbd9f736d
feat: Copy the input parameters of tools 2025-07-31 17:41:33 +02:00
Alejandro Borbolla
8589faa4c4
refactor: Use useCopy() in JsonView 2025-07-31 17:39:53 +02:00
Alejandro Borbolla
59504ac336
refactor: Add useCopy()
The `useCopy()` hook is pretty simple, as it handle a state variable
(`copied`) and put it back to false after a `timeout`
2025-07-31 17:39:53 +02:00
Ola Hungerford
cea2b6fe00
Merge branch 'main' into bugfix/authorization-url-generate-state 2025-07-30 21:28:45 -07:00
Ola Hungerford
aba186c955
Merge pull request #616 from erichoracek/dev/eh/tool-meta-support
feat: Add _meta field support to tool UI
2025-07-30 21:27:56 -07:00
Ola Hungerford
14657973bd
Merge branch 'main' into dev/eh/tool-meta-support 2025-07-30 21:20:21 -07:00
Ola Hungerford
ad8755f84c
Merge branch 'main' into oleina/logging 2025-07-30 21:17:06 -07:00
Richard Michael
d019376c1d Update zod 2025-07-29 17:40:35 -07:00
Richard Michael
3a1cf7c54b Update ts-jest 2025-07-29 17:40:35 -07:00
Richard Michael
395853469c Update playwright, @playwright/test 2025-07-29 17:40:35 -07:00
Richard Michael
14a77ef73d Update @types/react 2025-07-29 17:40:35 -07:00
Richard Michael
29d67af285 Update @types/node 2025-07-29 17:40:35 -07:00
Richard Michael
cd8b600ae3 Update @types/cors 2025-07-29 17:40:35 -07:00
Richard Michael
98a3ee0ef3 Update @types/express 2025-07-29 17:40:35 -07:00
Richard Michael
8927d15e11 Update typescript-eslint 2025-07-29 17:40:35 -07:00
Richard Michael
e8b9860ed8 Update @vitejs/plugin-react 2025-07-29 17:40:35 -07:00
Richard Michael
0d71c44821 Update vite 2025-07-29 17:40:35 -07:00
Richard Michael
700b856140 Update postcss 2025-07-29 17:40:35 -07:00
Richard Michael
15bf470173 Update shell-quote 2025-07-29 17:40:34 -07:00
Richard Michael
89928978b3 Update concurrently 2025-07-29 17:40:34 -07:00
Richard Michael
4d3dcc5fd1 Update open 2025-07-29 17:40:34 -07:00
Richard Michael
243cbf0cac Update prettier 2025-07-29 17:40:28 -07:00
olaservo
6a2dcb0ec3 Add CLI tool tests in CI 2025-07-27 19:20:21 -07:00
olaservo
491a8dcadd Add separate tool tests 2025-07-27 08:16:19 -07:00
olaservo
6ce4a0b563 Fix formatting 2025-07-27 07:19:48 -07:00
Ola Hungerford
50db0457be
Merge branch 'main' into parse-tool-arg 2025-07-27 07:17:34 -07:00
Ola Hungerford
94c75204fe
Merge branch 'main' into bugfix/authorization-url-generate-state 2025-07-26 20:41:35 -07:00
Cliff Hall
fd0b96285a
Merge pull request #648 from olaservo/update-vulnerable-dependencies
Update vulnerable dependencies
2025-07-26 14:01:23 -04:00
Ola Hungerford
e573e855f0
Merge branch 'main' into oleina/logging 2025-07-26 10:51:01 -07:00