diff --git a/mcp-interview.json b/mcp-interview.json index b36c313..dd5a2d2 100644 --- a/mcp-interview.json +++ b/mcp-interview.json @@ -2451,8 +2451,8 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 2, - "justification": "Echo is a foundational tool with no dependencies. Test with a standard string to verify basic echo functionality.", - "expected_output": "The response should be an object echoing back the message: {\"message\": \"Hello, MCP!\"}", + "justification": "Echo is a foundational tool with no dependencies. Testing with a simple string verifies basic echo functionality.", + "expected_output": "The response should be the same as the input message: 'Hello, MCP!'.", "tool_name": "echo", "tool_arguments": { "message": "Hello, MCP!" @@ -2505,8 +2505,8 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test echo with an empty string to check handling of edge case input.", - "expected_output": "The response should be an object echoing back the empty message: {\"message\": \"\"}", + "justification": "Edge case: Test echo with an empty string to ensure it handles empty input gracefully.", + "expected_output": "The response should be an empty string.", "tool_name": "echo", "tool_arguments": { "message": "" @@ -2559,8 +2559,8 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test add with two positive integers to verify correct addition.", - "expected_output": "The response should be an object with the sum: {\"result\": 10}", + "justification": "Basic arithmetic test with two positive integers.", + "expected_output": "The response should be 10.", "tool_name": "add", "tool_arguments": { "a": 3, @@ -2614,8 +2614,8 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test add with a negative and a floating-point number to check handling of varied numeric types.", - "expected_output": "The response should be an object with the sum: {\"result\": -2.5}", + "justification": "Test with a negative and a floating-point number to check handling of different number types.", + "expected_output": "The response should be -2.5.", "tool_name": "add", "tool_arguments": { "a": -5, @@ -2656,7 +2656,7 @@ "content": [ { "type": "text", - "text": "Long running operation completed. Duration: 2 seconds, Steps: 4.", + "text": "Long running operation completed. Duration: 2 seconds, Steps: 2.", "annotations": null, "meta": null } @@ -2669,12 +2669,12 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test longRunningOperation with a short duration and multiple steps to verify progress updates and completion.", - "expected_output": "The response should include progress updates at each step and a final completion message after ~2 seconds.", + "justification": "Test the long-running operation with minimal duration and steps to verify progress updates and completion.", + "expected_output": "Should return progress updates (e.g., 0%, 50%, 100%) over ~2 seconds, then a completion message.", "tool_name": "longRunningOperation", "tool_arguments": { "duration": 2, - "steps": 4 + "steps": 2 } }, { @@ -2711,7 +2711,7 @@ "content": [ { "type": "text", - "text": "{\n \"npm_config_user_agent\": \"npm/10.9.2 node/v22.17.0 linux arm64 workspaces/false\",\n \"NODE_VERSION\": \"22.17.0\",\n \"HOSTNAME\": \"8e041c52711e\",\n \"YARN_VERSION\": \"1.22.22\",\n \"npm_node_execpath\": \"/usr/local/bin/node\",\n \"npm_config_noproxy\": \"\",\n \"HOME\": \"/root\",\n \"npm_package_json\": \"/package.json\",\n \"npm_config_userconfig\": \"/root/.npmrc\",\n \"npm_config_local_prefix\": \"/\",\n \"npm_config_yes\": \"true\",\n \"COLOR\": \"0\",\n \"npm_config_prefix\": \"/usr/local\",\n \"npm_config_npm_version\": \"10.9.2\",\n \"npm_config_cache\": \"/root/.npm\",\n \"npm_config_node_gyp\": \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\",\n \"PATH\": \"/root/.npm/_npx/5b2dd62b9d0bddd4/node_modules/.bin:/node_modules/.bin:/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\n \"NODE\": \"/usr/local/bin/node\",\n \"npm_lifecycle_script\": \"mcp-server-everything\",\n \"npm_lifecycle_event\": \"npx\",\n \"npm_config_globalconfig\": \"/usr/local/etc/npmrc\",\n \"npm_config_init_module\": \"/root/.npm-init.js\",\n \"PWD\": \"/\",\n \"npm_execpath\": \"/usr/local/lib/node_modules/npm/bin/npm-cli.js\",\n \"npm_config_global_prefix\": \"/usr/local\",\n \"npm_command\": \"exec\",\n \"INIT_CWD\": \"/\",\n \"EDITOR\": \"vi\"\n}", + "text": "Long running operation completed. Duration: 0 seconds, Steps: 1.", "annotations": null, "meta": null } @@ -2724,8 +2724,63 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test printEnv to verify the server can enumerate its environment variables.", - "expected_output": "The response should be an object listing all environment variables as key-value pairs.", + "justification": "Edge case: Zero duration and minimal steps to ensure the tool handles instant completion.", + "expected_output": "Should immediately return a single progress update and completion.", + "tool_name": "longRunningOperation", + "tool_arguments": { + "duration": 0, + "steps": 1 + } + }, + { + "error_handling": { + "justification": "No score generated", + "score": "N/A" + }, + "error_type": { + "justification": "No score generated", + "score": "N/A" + }, + "no_silent_error": { + "justification": "No score generated", + "score": "N/A" + }, + "output_relevance": { + "justification": "No score generated", + "score": "N/A" + }, + "output_quality": { + "justification": "No score generated", + "score": "N/A" + }, + "schema_compliance": { + "justification": "No score generated", + "score": "N/A" + }, + "meets_expectations": { + "justification": "No score generated", + "score": "N/A" + }, + "tool_output": { + "meta": null, + "content": [ + { + "type": "text", + "text": "{\n \"npm_config_user_agent\": \"npm/10.9.2 node/v22.17.0 linux arm64 workspaces/false\",\n \"NODE_VERSION\": \"22.17.0\",\n \"HOSTNAME\": \"1639ae8399b7\",\n \"YARN_VERSION\": \"1.22.22\",\n \"npm_node_execpath\": \"/usr/local/bin/node\",\n \"npm_config_noproxy\": \"\",\n \"HOME\": \"/root\",\n \"npm_package_json\": \"/package.json\",\n \"npm_config_userconfig\": \"/root/.npmrc\",\n \"npm_config_local_prefix\": \"/\",\n \"npm_config_yes\": \"true\",\n \"COLOR\": \"0\",\n \"npm_config_prefix\": \"/usr/local\",\n \"npm_config_npm_version\": \"10.9.2\",\n \"npm_config_cache\": \"/root/.npm\",\n \"npm_config_node_gyp\": \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\",\n \"PATH\": \"/root/.npm/_npx/5b2dd62b9d0bddd4/node_modules/.bin:/node_modules/.bin:/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\n \"NODE\": \"/usr/local/bin/node\",\n \"npm_lifecycle_script\": \"mcp-server-everything\",\n \"npm_lifecycle_event\": \"npx\",\n \"npm_config_globalconfig\": \"/usr/local/etc/npmrc\",\n \"npm_config_init_module\": \"/root/.npm-init.js\",\n \"PWD\": \"/\",\n \"npm_execpath\": \"/usr/local/lib/node_modules/npm/bin/npm-cli.js\",\n \"npm_config_global_prefix\": \"/usr/local\",\n \"npm_command\": \"exec\",\n \"INIT_CWD\": \"/\",\n \"EDITOR\": \"vi\"\n}", + "annotations": null, + "meta": null + } + ], + "structuredContent": null, + "isError": false + }, + "exception": null, + "sampling_requests": 0, + "elicitation_requests": 0, + "list_roots_requests": 0, + "logging_requests": 0, + "justification": "Stateless tool to verify the server's environment variable reporting.", + "expected_output": "A dictionary/object containing all environment variables and their values.", "tool_name": "printEnv", "tool_arguments": {} }, @@ -2776,8 +2831,8 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test sampleLLM with a factual prompt and a small maxTokens to verify LLM sampling and token limit.", - "expected_output": "The response should be a string or object containing a short answer, e.g., 'Paris'.", + "justification": "Test LLM sampling with a factual prompt and a small token limit.", + "expected_output": "A short LLM-generated response, likely 'Paris' or a brief sentence.", "tool_name": "sampleLLM", "tool_arguments": { "prompt": "What is the capital of France?", @@ -2831,11 +2886,12 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test sampleLLM with a creative prompt and default maxTokens to check default behavior and creative output.", - "expected_output": "The response should be a string or object containing a short poem about the sea.", + "justification": "Test LLM with a creative prompt and a larger token limit.", + "expected_output": "A short poem or several lines of text about the sea.", "tool_name": "sampleLLM", "tool_arguments": { - "prompt": "Write a short poem about the sea." + "prompt": "Write a short poem about the sea.", + "maxTokens": 50 } }, { @@ -2898,8 +2954,8 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test getTinyImage to verify the server returns the expected tiny image resource.", - "expected_output": "The response should be an object or binary containing the MCP_TINY_IMAGE (e.g., base64-encoded image data).", + "justification": "Test retrieval of the MCP_TINY_IMAGE resource.", + "expected_output": "A binary or base64-encoded image object representing the tiny image.", "tool_name": "getTinyImage", "tool_arguments": {} }, @@ -2945,18 +3001,6 @@ "priority": 0.7 }, "meta": null - }, - { - "type": "image", - "data": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAKsGlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU+kSgOfe9JDQEiIgJfQmSCeAlBBaAAXpYCMkAUKJMRBU7MriClZURLCs6KqIgo0idizYFsWC3QVZBNR1sWDDlXeBQ9jdd9575805c+a7c+efmf+e/z9nLgCdKZDJMlF1gCxpjjwyyI8dn5DIJvUABRiY0kBdIMyWcSMiwgCTUft3+dgGyJC9YzuU69/f/1fREImzhQBIBMbJomxhFsbHMe0TyuQ5ALg9mN9kbo5siK9gzJRjDWL8ZIhTR7hviJOHGY8fjomO5GGsDUCmCQTyVACaKeZn5wpTsTw0f4ztpSKJFGPsGbyzsmaLMMbqgiUWI8N4KD8n+S95Uv+WM1mZUyBIVfLIXoaF7C/JlmUK5v+fn+N/S1amYrSGOaa0NHlwJGaxvpAHGbNDlSxNnhI+yhLRcPwwpymCY0ZZmM1LHGWRwD9UuTZzStgop0gC+co8OfzoURZnB0SNsnx2pLJWipzHHWWBfKyuIiNG6U8T85X589Ki40Y5VxI7ZZSzM6JCx2J4Sr9cEansXywN8hurG6jce1b2X/Yr4SvX5qRFByv3LhjrXyzljuXMjlf2JhL7B4zFxCjjZTl+ylqyzAhlvDgzSOnPzo1Srs3BDuTY2gjlN0wXhESMMoRBELAhBjIhB+QggECQgBTEOeJ5Q2cUeLNl8+WS1LQcNhe7ZWI2Xyq0m8B2tHd0Bhi6syNH4j1r+C4irGtjvhWVAF4nBg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8p75pDSO7h/HbpUWpewCike9WLpfB7XaDy+WCYrFI/slk8i0MnRRAUt46hPMI4vE4+Hw+ec7t9/44VgWigEeby+UgFArJWjUYOqhWG6x50rpcSfR6PVUfNOgEVRlTX0HhrZBKz4MZjUYWi8VoA+lc9H/VaRZYjBKrtXR8tlwumcFgeMWRbZpA9ORQWfVm8A/FsrLaxebd5wAAAABJRU5ErkJggg==", - "mimeType": "image/png", - "annotations": { - "audience": [ - "user" - ], - "priority": 0.5 - }, - "meta": null } ], "structuredContent": null, @@ -2967,12 +3011,12 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test annotatedMessage with 'success' type and image included to verify annotation and image embedding.", - "expected_output": "The response should be an object with a success message, annotation metadata, and an embedded image.", + "justification": "Test annotated message with 'success' type and no image.", + "expected_output": "A message object with a 'success' annotation and no image included.", "tool_name": "annotatedMessage", "tool_arguments": { "messageType": "success", - "includeImage": true + "includeImage": false } }, { @@ -3018,6 +3062,18 @@ "priority": 1.0 }, "meta": null + }, + { + "type": "image", + "data": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAKsGlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU+kSgOfe9JDQEiIgJfQmSCeAlBBaAAXpYCMkAUKJMRBU7MriClZURLCs6KqIgo0idizYFsWC3QVZBNR1sWDDlXeBQ9jdd9575805c+a7c+efmf+e/z9nLgCdKZDJMlF1gCxpjjwyyI8dn5DIJvUABRiY0kBdIMyWcSMiwgCTUft3+dgGyJC9YzuU69/f/1fREImzhQBIBMbJomxhFsbHMe0TyuQ5ALg9mN9kbo5siK9gzJRjDWL8ZIhTR7hviJOHGY8fjomO5GGsDUCmCQTyVACaKeZn5wpTsTw0f4ztpSKJFGPsGbyzsmaLMMbqgiUWI8N4KD8n+S95Uv+WM1mZUyBIVfLIXoaF7C/JlmUK5v+fn+N/S1amYrSGOaa0NHlwJGaxvpAHGbNDlSxNnhI+yhLRcPwwpymCY0ZZ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r8Po9GIIg6Hw1Cr1RTgB+A72GAwgMPhQLBMJgNSXsFqtUI2myUo18pA6QJogefsPrLBX4QdCVatViklw+EQRFGEj88P2O12pEUGATmsXq+TaLPZ0AXgMRF2vMEqlQoJTSYTpNNpApvNZliv1/+BHDaZTAi2Wq1A3Ig0xmMej7+RcZjdbodUKkWAaDQK+GHjHPnImB88JrZIJAKFQgH2+z2BOczhcMiwRCIBgUAA+NN5BP6mj2DYff35gk6nA61WCzBn2JxO5wPM7/fLz4vD0E+OECfn8xl/0Gw2KbLxeAyLxQIsFgt8p75pDSO7h/HbpUWpewCike9WLpfB7XaDy+WCYrFI/slk8i0MnRRAUt46hPMI4vE4+Hw+ec7t9/44VgWigEeby+UgFArJWjUYOqhWG6x50rpcSfR6PVUfNOgEVRlTX0HhrZBKz4MZjUYWi8VoA+lc9H/VaRZYjBKrtXR8tlwumcFgeMWRbZpA9ORQWfVm8A/FsrLaxebd5wAAAABJRU5ErkJggg==", + "mimeType": "image/png", + "annotations": { + "audience": [ + "user" + ], + "priority": 0.5 + }, + "meta": null } ], "structuredContent": null, @@ -3028,11 +3084,12 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test annotatedMessage with 'error' type and default image inclusion (false) to check error annotation.", - "expected_output": "The response should be an object with an error message and error annotation metadata, no image.", + "justification": "Test annotated message with 'error' type and image included to verify both annotation and image embedding.", + "expected_output": "A message object with an 'error' annotation and an example image included.", "tool_name": "annotatedMessage", "tool_arguments": { - "messageType": "error" + "messageType": "error", + "includeImage": true } }, { @@ -3100,8 +3157,8 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test getResourceReference with the minimum valid resourceId to check lower boundary.", - "expected_output": "The response should be an object referencing resource ID 1.", + "justification": "Test resource reference with the minimum valid resource ID.", + "expected_output": "A resource reference object for resource ID 1.", "tool_name": "getResourceReference", "tool_arguments": { "resourceId": 1 @@ -3172,8 +3229,8 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test getResourceReference with the maximum valid resourceId to check upper boundary.", - "expected_output": "The response should be an object referencing resource ID 100.", + "justification": "Edge case: Test with the maximum valid resource ID.", + "expected_output": "A resource reference object for resource ID 100.", "tool_name": "getResourceReference", "tool_arguments": { "resourceId": 100 @@ -3213,7 +3270,7 @@ "content": [ { "type": "text", - "text": "Here are 1 resource links to resources available in this server (see full output in tool response if your client does not support resource_link yet):", + "text": "Here are 3 resource links to resources available in this server (see full output in tool response if your client does not support resource_link yet):", "annotations": null, "meta": null }, @@ -3227,6 +3284,28 @@ "annotations": null, "meta": null, "type": "resource_link" + }, + { + "name": "Resource 2", + "title": null, + "uri": "test://static/resource/2", + "description": "Resource 2: binary blob resource", + "mimeType": "application/octet-stream", + "size": null, + "annotations": null, + "meta": null, + "type": "resource_link" + }, + { + "name": "Resource 3", + "title": null, + "uri": "test://static/resource/3", + "description": "Resource 3: plaintext resource", + "mimeType": "text/plain", + "size": null, + "annotations": null, + "meta": null, + "type": "resource_link" } ], "structuredContent": null, @@ -3237,11 +3316,11 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test getResourceLinks with the minimum count to check lower boundary and single resource link handling.", - "expected_output": "The response should be an array or object containing one resource link.", + "justification": "Test retrieval of multiple resource links with the default count.", + "expected_output": "An array of 3 resource link objects, each referencing a different resource.", "tool_name": "getResourceLinks", "tool_arguments": { - "count": 1 + "count": 3 } }, { @@ -3401,8 +3480,8 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test getResourceLinks with the maximum count to check upper boundary and multiple resource link handling.", - "expected_output": "The response should be an array or object containing ten resource links.", + "justification": "Edge case: Test with the maximum allowed count to verify upper boundary handling.", + "expected_output": "An array of 10 resource link objects.", "tool_name": "getResourceLinks", "tool_arguments": { "count": 10 @@ -3459,11 +3538,11 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test structuredContent with a valid city name to verify normal operation and output schema adherence.", - "expected_output": "The response should be an object with temperature (number), conditions (string), and humidity (number) for New York.", + "justification": "Test structured content with a city name to verify normal operation.", + "expected_output": "An object with 'temperature', 'conditions', and 'humidity' fields for San Francisco.", "tool_name": "structuredContent", "tool_arguments": { - "location": "New York" + "location": "San Francisco" } }, { @@ -3517,53 +3596,11 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test structuredContent with a valid zip code to check alternate location input.", - "expected_output": "The response should be an object with temperature, conditions, and humidity for the 90210 area.", - "tool_name": "structuredContent", - "tool_arguments": { - "location": "90210" - } - }, - { - "error_handling": { - "justification": "No score generated", - "score": "N/A" - }, - "error_type": { - "justification": "No score generated", - "score": "N/A" - }, - "no_silent_error": { - "justification": "No score generated", - "score": "N/A" - }, - "output_relevance": { - "justification": "No score generated", - "score": "N/A" - }, - "output_quality": { - "justification": "No score generated", - "score": "N/A" - }, - "schema_compliance": { - "justification": "No score generated", - "score": "N/A" - }, - "meets_expectations": { - "justification": "No score generated", - "score": "N/A" - }, - "tool_output": null, - "exception": "[\n {\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"type\": \"string\",\n \"inclusive\": true,\n \"exact\": false,\n \"message\": \"String must contain at least 1 character(s)\",\n \"path\": [\n \"location\"\n ]\n }\n]", - "sampling_requests": 0, - "elicitation_requests": 0, - "list_roots_requests": 0, - "logging_requests": 0, - "justification": "Test structuredContent with an empty location to check input validation and error handling (edge case).", - "expected_output": "The response should be an error indicating that 'location' does not meet the minimum length requirement.", + "justification": "Test structured content with a zip code to verify alternate valid input.", + "expected_output": "An object with 'temperature', 'conditions', and 'humidity' fields for the 94103 zip code.", "tool_name": "structuredContent", "tool_arguments": { - "location": "" + "location": "94103" } }, { @@ -3613,8 +3650,8 @@ "elicitation_requests": 0, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test listRoots to verify the server can enumerate MCP roots, even if it does not access files.", - "expected_output": "The response should be an object or array listing the current MCP roots (may be empty or contain mock roots).", + "justification": "Test listing of MCP roots to verify protocol support, even if no files are present.", + "expected_output": "A list (possibly empty) of root objects or a message indicating no roots are available.", "tool_name": "listRoots", "tool_arguments": {} }, @@ -3671,8 +3708,8 @@ "elicitation_requests": 1, "list_roots_requests": 0, "logging_requests": 0, - "justification": "Test startElicitation to verify the server initiates an elicitation process for user information.", - "expected_output": "The response should be a prompt or object requesting the user's favorite color, number, and pets.", + "justification": "Test the elicitation feature to verify interactive information gathering.", + "expected_output": "A prompt or sequence of prompts asking for favorite color, number, and pets.", "tool_name": "startElicitation", "tool_arguments": {} } diff --git a/mcp-interview.md b/mcp-interview.md index 0f19f7d..56fb464 100644 --- a/mcp-interview.md +++ b/mcp-interview.md @@ -88,19 +88,18 @@ mcp-interviewer--test --model gpt-4.1 docker run -i --rm node:lts npx -y @modelc | Input schemas parameter count | | 1.0 | 0 | 2 | | Input schemas required parameter count | | 0.6 | 0 | 2 | | Input schemas optional parameter count | | 0.4 | 0 | 2 | -| Input schema max depth | | 1.4 | 0 | 3 | ## Tool Call Statistics | Metric | Total | Average | Min | Max | | --- | --- | --- | --- | --- | | Tool calls attempted | 20 | | | | -| Tool calls returned output | 19 | | | | -| Tool call outputs with no error | 19 | | | | +| Tool calls returned output | 20 | | | | +| Tool call outputs with no error | 20 | | | | | Tool call outputs with error | 0 | | | | -| Exceptions calling tools | 1 | | | | -| Tool call output lengths (gpt-4o text tokens) | 719 | 37.8 | 3 | 406 | -| Text output content blocks | 23 | 5.8 | 1 | 2 | -| Resource_Link output content blocks | 11 | 2.8 | 0 | 10 | +| Exceptions calling tools | 0 | | | | +| Tool call output lengths (gpt-4o text tokens) | 735 | 36.8 | 3 | 406 | +| Text output content blocks | 24 | 6.0 | 1 | 2 | +| Resource_Link output content blocks | 13 | 3.2 | 0 | 10 | | Image output content blocks | 2 | 0.5 | 0 | 1 | | Resource output content blocks | 2 | 0.5 | 0 | 1 | | Sampling requests | 2 | 0.1 | 0 | 1 | @@ -108,12 +107,22 @@ mcp-interviewer--test --model gpt-4.1 docker run -i --rm node:lts npx -y @modelc | Logging requests | 2 | 0.1 | 0 | 2 | ## Constraint Violations -✅ **No constraint violations found** +| ❌ Errors | ⚠️ Warnings | ✅ Passes | +| --- | --- | --- | +| 0 | 0 | 5 |
-Checked constraints +Details -**Constraints checked:** openai-tool-count, openai-name-length, openai-name-pattern, openai-token-length, tool-schema-flatness +✅ openai-name-length (ONL) + +✅ openai-name-pattern (ONP) + +✅ openai-tool-count (OTC) + +✅ openai-token-length (OTL) + +✅ tool-schema-flatness (TSF)
@@ -132,7 +141,7 @@ mcp-interviewer--test --model gpt-4.1 docker run -i --rm node:lts npx -y @modelc [→ View tool details](#tool-echo) -**Reasoning (🤖):** Echo is a foundational tool with no dependencies. Test with a standard string to verify basic echo functionality. +**Reasoning (🤖):** Echo is a foundational tool with no dependencies. Testing with a simple string verifies basic echo functionality. **Tool Call (🤖):** ```json @@ -140,7 +149,7 @@ mcp-interviewer--test --model gpt-4.1 docker run -i --rm node:lts npx -y @modelc "message": "Hello, MCP!" } ``` -**Expected Output (🤖):** The response should be an object echoing back the message: {"message": "Hello, MCP!"} +**Expected Output (🤖):** The response should be the same as the input message: 'Hello, MCP!'. **Actual Output (1 blocks):** @@ -171,7 +180,7 @@ Echo: Hello, MCP! [→ View tool details](#tool-echo) -**Reasoning (🤖):** Test echo with an empty string to check handling of edge case input. +**Reasoning (🤖):** Edge case: Test echo with an empty string to ensure it handles empty input gracefully. **Tool Call (🤖):** ```json @@ -179,7 +188,7 @@ Echo: Hello, MCP! "message": "" } ``` -**Expected Output (🤖):** The response should be an object echoing back the empty message: {"message": ""} +**Expected Output (🤖):** The response should be an empty string. **Actual Output (1 blocks):** @@ -204,7 +213,7 @@ Echo: [→ View tool details](#tool-add) -**Reasoning (🤖):** Test add with two positive integers to verify correct addition. +**Reasoning (🤖):** Basic arithmetic test with two positive integers. **Tool Call (🤖):** ```json @@ -213,7 +222,7 @@ Echo: "b": 7 } ``` -**Expected Output (🤖):** The response should be an object with the sum: {"result": 10} +**Expected Output (🤖):** The response should be 10. **Actual Output (1 blocks):** @@ -238,7 +247,7 @@ The sum of 3 and 7 is 10. [→ View tool details](#tool-add) -**Reasoning (🤖):** Test add with a negative and a floating-point number to check handling of varied numeric types. +**Reasoning (🤖):** Test with a negative and a floating-point number to check handling of different number types. **Tool Call (🤖):** ```json @@ -247,7 +256,7 @@ The sum of 3 and 7 is 10. "b": 2.5 } ``` -**Expected Output (🤖):** The response should be an object with the sum: {"result": -2.5} +**Expected Output (🤖):** The response should be -2.5. **Actual Output (1 blocks):** @@ -272,23 +281,57 @@ The sum of -5 and 2.5 is -2.5. [→ View tool details](#tool-longRunningOperation) -**Reasoning (🤖):** Test longRunningOperation with a short duration and multiple steps to verify progress updates and completion. +**Reasoning (🤖):** Test the long-running operation with minimal duration and steps to verify progress updates and completion. **Tool Call (🤖):** ```json { "duration": 2, - "steps": 4 + "steps": 2 +} +``` +**Expected Output (🤖):** Should return progress updates (e.g., 0%, 50%, 100%) over ~2 seconds, then a completion message. + +**Actual Output (1 blocks):** + +✅ **No Error** + +``` +Long running operation completed. Duration: 2 seconds, Steps: 2. +``` +**Output Statistics:** + +| Metric | Value | +| --- | --- | +| Text token count | 16 | +| Text blocks | 1 | + + + +#### Step 6: longRunningOperation ✅ + +
+Toggle step details + +[→ View tool details](#tool-longRunningOperation) + +**Reasoning (🤖):** Edge case: Zero duration and minimal steps to ensure the tool handles instant completion. + +**Tool Call (🤖):** +```json +{ + "duration": 0, + "steps": 1 } ``` -**Expected Output (🤖):** The response should include progress updates at each step and a final completion message after ~2 seconds. +**Expected Output (🤖):** Should immediately return a single progress update and completion. **Actual Output (1 blocks):** ✅ **No Error** ``` -Long running operation completed. Duration: 2 seconds, Steps: 4. +Long running operation completed. Duration: 0 seconds, Steps: 1. ``` **Output Statistics:** @@ -299,20 +342,20 @@ Long running operation completed. Duration: 2 seconds, Steps: 4.
-#### Step 6: printEnv ✅ +#### Step 7: printEnv ✅
Toggle step details [→ View tool details](#tool-printEnv) -**Reasoning (🤖):** Test printEnv to verify the server can enumerate its environment variables. +**Reasoning (🤖):** Stateless tool to verify the server's environment variable reporting. **Tool Call (🤖):** ```json {} ``` -**Expected Output (🤖):** The response should be an object listing all environment variables as key-value pairs. +**Expected Output (🤖):** A dictionary/object containing all environment variables and their values. **Actual Output (1 blocks):** @@ -322,7 +365,7 @@ Long running operation completed. Duration: 2 seconds, Steps: 4. { "npm_config_user_agent": "npm/10.9.2 node/v22.17.0 linux arm64 workspaces/false", "NODE_VERSION": "22.17.0", - "HOSTNAME": "8e041c52711e", + "HOSTNAME": "1639ae8399b7", "YARN_VERSION": "1.22.22", "npm_node_execpath": "/usr/local/bin/node", "npm_config_noproxy": "", @@ -345,14 +388,14 @@ Long running operation completed. Duration: 2 seconds, Steps: 4.
-#### Step 7: sampleLLM ✅ +#### Step 8: sampleLLM ✅
Toggle step details [→ View tool details](#tool-sampleLLM) -**Reasoning (🤖):** Test sampleLLM with a factual prompt and a small maxTokens to verify LLM sampling and token limit. +**Reasoning (🤖):** Test LLM sampling with a factual prompt and a small token limit. **Tool Call (🤖):** ```json @@ -361,7 +404,7 @@ Long running operation completed. Duration: 2 seconds, Steps: 4. "maxTokens": 10 } ``` -**Expected Output (🤖):** The response should be a string or object containing a short answer, e.g., 'Paris'. +**Expected Output (🤖):** A short LLM-generated response, likely 'Paris' or a brief sentence. **Actual Output (1 blocks):** @@ -385,22 +428,23 @@ LLM sampling result: Dummy content
-#### Step 8: sampleLLM ✅ +#### Step 9: sampleLLM ✅
Toggle step details [→ View tool details](#tool-sampleLLM) -**Reasoning (🤖):** Test sampleLLM with a creative prompt and default maxTokens to check default behavior and creative output. +**Reasoning (🤖):** Test LLM with a creative prompt and a larger token limit. **Tool Call (🤖):** ```json { - "prompt": "Write a short poem about the sea." + "prompt": "Write a short poem about the sea.", + "maxTokens": 50 } ``` -**Expected Output (🤖):** The response should be a string or object containing a short poem about the sea. +**Expected Output (🤖):** A short poem or several lines of text about the sea. **Actual Output (1 blocks):** @@ -424,20 +468,20 @@ LLM sampling result: Dummy content
-#### Step 9: getTinyImage ✅ +#### Step 10: getTinyImage ✅
Toggle step details [→ View tool details](#tool-getTinyImage) -**Reasoning (🤖):** Test getTinyImage to verify the server returns the expected tiny image resource. +**Reasoning (🤖):** Test retrieval of the MCP_TINY_IMAGE resource. **Tool Call (🤖):** ```json {} ``` -**Expected Output (🤖):** The response should be an object or binary containing the MCP_TINY_IMAGE (e.g., base64-encoded image data). +**Expected Output (🤖):** A binary or base64-encoded image object representing the tiny image. **Actual Output (3 blocks):** @@ -463,86 +507,87 @@ The image above is the MCP tiny image.
-#### Step 10: annotatedMessage ✅ +#### Step 11: annotatedMessage ✅
Toggle step details [→ View tool details](#tool-annotatedMessage) -**Reasoning (🤖):** Test annotatedMessage with 'success' type and image included to verify annotation and image embedding. +**Reasoning (🤖):** Test annotated message with 'success' type and no image. **Tool Call (🤖):** ```json { "messageType": "success", - "includeImage": true + "includeImage": false } ``` -**Expected Output (🤖):** The response should be an object with a success message, annotation metadata, and an embedded image. +**Expected Output (🤖):** A message object with a 'success' annotation and no image included. -**Actual Output (2 blocks):** +**Actual Output (1 blocks):** ✅ **No Error** ``` Operation completed successfully ``` -``` -[Image: image/png] - Size: 5380 bytes (base64) -``` **Output Statistics:** | Metric | Value | | --- | --- | | Text token count | 3 | | Text blocks | 1 | -| Image blocks | 1 |
-#### Step 11: annotatedMessage ✅ +#### Step 12: annotatedMessage ✅
Toggle step details [→ View tool details](#tool-annotatedMessage) -**Reasoning (🤖):** Test annotatedMessage with 'error' type and default image inclusion (false) to check error annotation. +**Reasoning (🤖):** Test annotated message with 'error' type and image included to verify both annotation and image embedding. **Tool Call (🤖):** ```json { - "messageType": "error" + "messageType": "error", + "includeImage": true } ``` -**Expected Output (🤖):** The response should be an object with an error message and error annotation metadata, no image. +**Expected Output (🤖):** A message object with an 'error' annotation and an example image included. -**Actual Output (1 blocks):** +**Actual Output (2 blocks):** ✅ **No Error** ``` Error: Operation failed ``` +``` +[Image: image/png] + Size: 5380 bytes (base64) +``` **Output Statistics:** | Metric | Value | | --- | --- | | Text token count | 4 | | Text blocks | 1 | +| Image blocks | 1 |
-#### Step 12: getResourceReference ✅ +#### Step 13: getResourceReference ✅
Toggle step details [→ View tool details](#tool-getResourceReference) -**Reasoning (🤖):** Test getResourceReference with the minimum valid resourceId to check lower boundary. +**Reasoning (🤖):** Test resource reference with the minimum valid resource ID. **Tool Call (🤖):** ```json @@ -550,7 +595,7 @@ Error: Operation failed "resourceId": 1 } ``` -**Expected Output (🤖):** The response should be an object referencing resource ID 1. +**Expected Output (🤖):** A resource reference object for resource ID 1. **Actual Output (3 blocks):** @@ -578,14 +623,14 @@ You can access this resource using the URI: test://static/resource/1
-#### Step 13: getResourceReference ✅ +#### Step 14: getResourceReference ✅
Toggle step details [→ View tool details](#tool-getResourceReference) -**Reasoning (🤖):** Test getResourceReference with the maximum valid resourceId to check upper boundary. +**Reasoning (🤖):** Edge case: Test with the maximum valid resource ID. **Tool Call (🤖):** ```json @@ -593,7 +638,7 @@ You can access this resource using the URI: test://static/resource/1 "resourceId": 100 } ``` -**Expected Output (🤖):** The response should be an object referencing resource ID 100. +**Expected Output (🤖):** A resource reference object for resource ID 100. **Actual Output (3 blocks):** @@ -620,53 +665,63 @@ You can access this resource using the URI: test://static/resource/100
-#### Step 14: getResourceLinks ✅ +#### Step 15: getResourceLinks ✅
Toggle step details [→ View tool details](#tool-getResourceLinks) -**Reasoning (🤖):** Test getResourceLinks with the minimum count to check lower boundary and single resource link handling. +**Reasoning (🤖):** Test retrieval of multiple resource links with the default count. **Tool Call (🤖):** ```json { - "count": 1 + "count": 3 } ``` -**Expected Output (🤖):** The response should be an array or object containing one resource link. +**Expected Output (🤖):** An array of 3 resource link objects, each referencing a different resource. -**Actual Output (2 blocks):** +**Actual Output (4 blocks):** ✅ **No Error** ``` -Here are 1 resource links to resources available in this server (see full output in tool response if your client does not support resource_link yet): +Here are 3 resource links to resources available in this server (see full output in tool response if your client does not support resource_link yet): ``` ``` [Resource Link: test://static/resource/1] MIME type: text/plain Description: Resource 1: plaintext resource ``` +``` +[Resource Link: test://static/resource/2] + MIME type: application/octet-stream + Description: Resource 2: binary blob resource +``` +``` +[Resource Link: test://static/resource/3] + MIME type: text/plain + Description: Resource 3: plaintext resource +``` **Output Statistics:** | Metric | Value | | --- | --- | | Text token count | 29 | | Text blocks | 1 | -| Resource link blocks | 1 | +| Resource link blocks | 3 |
-#### Step 15: getResourceLinks ✅ +#### Step 16: getResourceLinks ✅
Toggle step details [→ View tool details](#tool-getResourceLinks) -**Reasoning (🤖):** Test getResourceLinks with the maximum count to check upper boundary and multiple resource link handling. +**Reasoning (🤖):** Edge case: Test with the maximum allowed count to verify upper boundary handling. **Tool Call (🤖):** ```json @@ -674,7 +729,7 @@ Here are 1 resource links to resources available in this server (see full output "count": 10 } ``` -**Expected Output (🤖):** The response should be an array or object containing ten resource links. +**Expected Output (🤖):** An array of 10 resource link objects. **Actual Output (11 blocks):** @@ -743,22 +798,22 @@ Here are 10 resource links to resources available in this server (see full outpu
-#### Step 16: structuredContent ✅ +#### Step 17: structuredContent ✅
Toggle step details [→ View tool details](#tool-structuredContent) -**Reasoning (🤖):** Test structuredContent with a valid city name to verify normal operation and output schema adherence. +**Reasoning (🤖):** Test structured content with a city name to verify normal operation. **Tool Call (🤖):** ```json { - "location": "New York" + "location": "San Francisco" } ``` -**Expected Output (🤖):** The response should be an object with temperature (number), conditions (string), and humidity (number) for New York. +**Expected Output (🤖):** An object with 'temperature', 'conditions', and 'humidity' fields for San Francisco. **Actual Output (1 blocks):** @@ -780,22 +835,22 @@ Here are 10 resource links to resources available in this server (see full outpu
-#### Step 17: structuredContent ✅ +#### Step 18: structuredContent ✅
Toggle step details [→ View tool details](#tool-structuredContent) -**Reasoning (🤖):** Test structuredContent with a valid zip code to check alternate location input. +**Reasoning (🤖):** Test structured content with a zip code to verify alternate valid input. **Tool Call (🤖):** ```json { - "location": "90210" + "location": "94103" } ``` -**Expected Output (🤖):** The response should be an object with temperature, conditions, and humidity for the 90210 area. +**Expected Output (🤖):** An object with 'temperature', 'conditions', and 'humidity' fields for the 94103 zip code. **Actual Output (1 blocks):** @@ -817,42 +872,6 @@ Here are 10 resource links to resources available in this server (see full outpu
-#### Step 18: structuredContent ❌ - -
-Toggle step details - -[→ View tool details](#tool-structuredContent) - -**Reasoning (🤖):** Test structuredContent with an empty location to check input validation and error handling (edge case). - -**Tool Call (🤖):** -```json -{ - "location": "" -} -``` -**Expected Output (🤖):** The response should be an error indicating that 'location' does not meet the minimum length requirement. - -**Exception:** -``` -[ - { - "code": "too_small", - "minimum": 1, - "type": "string", - "inclusive": true, - "exact": false, - "message": "String must contain at least 1 character(s)", - "path": [ - "location" - ] - } -] -``` - -
- #### Step 19: listRoots ✅
@@ -860,13 +879,13 @@ Here are 10 resource links to resources available in this server (see full outpu [→ View tool details](#tool-listRoots) -**Reasoning (🤖):** Test listRoots to verify the server can enumerate MCP roots, even if it does not access files. +**Reasoning (🤖):** Test listing of MCP roots to verify protocol support, even if no files are present. **Tool Call (🤖):** ```json {} ``` -**Expected Output (🤖):** The response should be an object or array listing the current MCP roots (may be empty or contain mock roots). +**Expected Output (🤖):** A list (possibly empty) of root objects or a message indicating no roots are available. **Actual Output (1 blocks):** @@ -896,13 +915,13 @@ Note: This server demonstrates the roots protocol capability but doesn't actuall [→ View tool details](#tool-startElicitation) -**Reasoning (🤖):** Test startElicitation to verify the server initiates an elicitation process for user information. +**Reasoning (🤖):** Test the elicitation feature to verify interactive information gathering. **Tool Call (🤖):** ```json {} ``` -**Expected Output (🤖):** The response should be a prompt or object requesting the user's favorite color, number, and pets. +**Expected Output (🤖):** A prompt or sequence of prompts asking for favorite color, number, and pets. **Actual Output (2 blocks):** diff --git a/src/mcp_interviewer/reports/interviewer/constraint_violations.py b/src/mcp_interviewer/reports/interviewer/constraint_violations.py index 8fbf77b..1636c90 100644 --- a/src/mcp_interviewer/reports/interviewer/constraint_violations.py +++ b/src/mcp_interviewer/reports/interviewer/constraint_violations.py @@ -1,7 +1,7 @@ """Constraint violations report generation.""" from ...constraints import get_selected_constraints -from ...constraints.base import ConstraintViolation, Severity +from ...constraints.base import Constraint, ConstraintViolation, Severity from ...models import ServerScoreCard from ..base import BaseReport @@ -34,86 +34,42 @@ def _build(self): # Add title self.add_title("Constraint Violations", 2) - # Always show summary message first - if not self.violations: - self.add_text("✅ **No constraint violations found**") - self.add_blank_line() - else: - # Group by severity - errors = [v for v in self.violations if v.severity == Severity.CRITICAL] - warnings = [v for v in self.violations if v.severity == Severity.WARNING] + # Group by constraint for consistent ordering + constraint_to_violations: dict[type[Constraint], list[ConstraintViolation]] = { + constraint: [] for constraint in self.selected_constraints + } - # Show summary counts - summary_parts = [] - if errors: - summary_parts.append( - f"❌ {len(errors)} error{'s' if len(errors) > 1 else ''}" - ) - if warnings: - summary_parts.append( - f"⚠️ {len(warnings)} warning{'s' if len(warnings) > 1 else ''}" - ) + errors = 0 + warnings = 0 + for violation in self.violations: + if violation.severity == Severity.CRITICAL: + errors += 1 + elif violation.severity == Severity.WARNING: + warnings += 1 + constraint_to_violations[type(violation.constraint)].append(violation) - self.add_text(f"**Found:** {', '.join(summary_parts)}") - self.add_blank_line() + passes = sum(1 for v in constraint_to_violations.values() if not v) - # Put checked constraints in collapsible section - if self._options.use_collapsible: - self.add_text("
") - self.add_text("Checked constraints") - self.add_blank_line() - - self.add_text( - f"**Constraints checked:** {', '.join(c.cli_name() for c in self.selected_constraints)}" - ) + self.add_table_header(["❌ Errors", "⚠️ Warnings", "✅ Passes"]) + self.add_table_row(list(map(str, (errors, warnings, passes)))) self.add_blank_line() - if self._options.use_collapsible: - self.add_text("
") - self.add_blank_line() - - # Return early if no violations - if not self.violations: - return - - # Put violation details in collapsible section - errors = [v for v in self.violations if v.severity == Severity.CRITICAL] - warnings = [v for v in self.violations if v.severity == Severity.WARNING] - if self._options.use_collapsible: - self.add_text("
") - self.add_text("Violation details") - self.add_blank_line() - - if errors: - self.add_text(f"**Errors ({len(errors)}):**") - self.add_blank_line() - for violation in errors: - cli_code = ( - violation.constraint.cli_code() - if hasattr(violation.constraint, "cli_code") - else "" - ) - if cli_code: - self.add_text(f"- ❌ [{cli_code}] {violation.message}") - else: - self.add_text(f"- ❌ {violation.message}") - self.add_blank_line() - - if warnings: - self.add_text(f"**Warnings ({len(warnings)}):**") - self.add_blank_line() - for violation in warnings: - cli_code = ( - violation.constraint.cli_code() - if hasattr(violation.constraint, "cli_code") - else "" - ) - if cli_code: - self.add_text(f"- ⚠️ [{cli_code}] {violation.message}") - else: - self.add_text(f"- ⚠️ {violation.message}") - self.add_blank_line() - - if self._options.use_collapsible: - self.add_text("
") - self.add_blank_line() + self.start_collapsible("Details") + + for constraint, violations in sorted( + constraint_to_violations.items(), key=lambda item: item[0].cli_code() + ): + constraint_str = f"{constraint.cli_name()} ({constraint.cli_code()})" + if violations: + for violation in violations: + if violation.severity == Severity.CRITICAL: + self.add_text(f"❌ {constraint_str}: {violation.message}") + elif violation.severity == Severity.WARNING: + self.add_text(f"⚠️ {constraint_str}: {violation.message}") + + self.add_blank_line() + else: + self.add_text(f"✅ {constraint_str}") + self.add_blank_line() + + self.end_collapsible()