Split testsuite for unit and inspector based tests (#82)

This commit is contained in:
Christopher Hertel 2025-09-25 23:27:41 +02:00 • committed by GitHub
commit 3ec4cf612a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 188 additions and 85 deletions

View file

@ -0,0 +1,15 @@
{
"prompts": [
{
"name": "personalized_greeting",
"description": "A manually registered prompt template.",
"arguments": [
{
"name": "userName",
"description": "the name of the user",
"required": true
}
]
}
]
}

View file

@ -0,0 +1,10 @@
{
"resources": [
{
"name": "application_version",
"uri": "app://version",
"description": "A manually registered resource providing app version.",
"mimeType": "text/plain"
}
]
}

View file

@ -0,0 +1,20 @@
{
"tools": [
{
"name": "echo_text",
"description": "A manually registered tool to echo input.",
"inputSchema": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "the text to echo"
}
},
"required": [
"text"
]
}
}
]
}

View file

@ -0,0 +1,4 @@
{
"prompts": []
}

View file

@ -0,0 +1,11 @@
{
"resources": [
{
"name": "calculator_config",
"uri": "config://calculator/settings",
"description": "Current settings for the calculator tool (precision, allow_negative).",
"mimeType": "application/json"
}
]
}

View file

@ -0,0 +1,51 @@
{
"tools": [
{
"name": "calculate",
"description": "Performs a calculation based on the operation.",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "number",
"description": "the first operand"
},
"b": {
"type": "number",
"description": "the second operand"
},
"operation": {
"type": "string",
"description": "the operation ('add', 'subtract', 'multiply', 'divide')"
}
},
"required": [
"a",
"b",
"operation"
]
}
},
{
"name": "update_setting",
"description": "Updates a specific configuration setting.",
"inputSchema": {
"type": "object",
"properties": {
"setting": {
"type": "string",
"description": "the setting key ('precision' or 'allow_negative')"
},
"value": {
"description": "the new value (int for precision, bool for allow_negative)"
}
},
"required": [
"setting",
"value"
]
}
}
]
}