TMCP002 Reject invalid specifications¶
Verify the server refuses to start with invalid specification files
Is a test for
Source
Source file: specs/mcp/test_01.yaml
Loaded from: speky_mcp
Initial state¶
The expected state is the final state of
TMCP001 Start the MCP server
Procedure¶
Step 1¶
Create an invalid specification
$ cat req_unknown_ref.yaml
kind: requirements
category: functional
requirements:
- id: RF01
short: Lorem Ipsum
long: The `RF00` requirement doesn't exist
tags: [foo]
ref: [RF00]
Step 2¶
Attempt to start MCP server with it
$ speky_mcp req_unknown_ref.yaml
speky_mcp INFO Loading req_unknown_ref.yaml
speky_mcp CRITICAL 'Requirement RF00, referred from RF01, does not exist'
Step 3¶
Verify the server exited with an error code
$ echo $?
1