feat: add wildcard tool filtering support with * patterns #4
Annotations
3 errors
|
Run tests
Process completed with exit code 1.
|
|
Run tests:
tests/integration.test.ts#L833
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"tools": [
{
"description": "Add two numbers",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"a": {
"type": "number",
},
"b": {
"type": "number",
},
},
"required": [
"a",
"b",
],
"type": "object",
},
"name": "add",
"title": "Addition Tool",
},
+ {
+ "description": "Subtract two numbers",
+ "inputSchema": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "type": "number",
+ },
+ "b": {
+ "type": "number",
+ },
+ },
+ "required": [
+ "a",
+ "b",
+ ],
+ "type": "object",
+ },
+ "name": "subtract",
+ "title": "Subtraction Tool",
+ },
],
},
}
- Expected - 0
+ Received + 22
at <anonymous> (/home/runner/work/mcp-controller/mcp-controller/tests/integration.test.ts:833:33)
|
|
Run tests:
tests/integration.test.ts#L760
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"tools": [
{
"description": "Add two numbers",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"a": {
"type": "number",
},
"b": {
"type": "number",
},
},
"required": [
"a",
"b",
],
"type": "object",
},
"name": "add",
"title": "Addition Tool",
},
+ {
+ "description": "Subtract two numbers",
+ "inputSchema": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "type": "number",
+ },
+ "b": {
+ "type": "number",
+ },
+ },
+ "required": [
+ "a",
+ "b",
+ ],
+ "type": "object",
+ },
+ "name": "subtract",
+ "title": "Subtraction Tool",
+ },
],
},
}
- Expected - 0
+ Received + 22
at <anonymous> (/home/runner/work/mcp-controller/mcp-controller/tests/integration.test.ts:760:33)
|
Loading