Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions capiscio_sdk/_rpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,7 @@ def evaluate_tool_access(
mcp_pb2.MCP_DENY_REASON_TOOL_NOT_ALLOWED: "tool_not_allowed",
mcp_pb2.MCP_DENY_REASON_ISSUER_UNTRUSTED: "issuer_untrusted",
mcp_pb2.MCP_DENY_REASON_POLICY_DENIED: "policy_denied",
mcp_pb2.MCP_DENY_REASON_SCOPE_INSUFFICIENT: "scope_insufficient",
}

auth_level_map = {
Expand Down Expand Up @@ -1636,6 +1637,10 @@ def evaluate_tool_access(
"evidence_json": response.evidence_json,
"evidence_id": response.evidence_id,
"timestamp": timestamp_str,
"error_code": response.error_code,
"rejection_detail": response.rejection_detail,
"requested_capability": response.requested_capability,
"presented_capability": response.presented_capability,
Comment on lines +1640 to +1643

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in f586b58 — added tests/unit/test_mcp_structured_fields.py with 3 tests covering: deny response with structured fields, allow response with empty fields, and presence of all expected keys.

}
Comment on lines 1639 to 1644

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in f586b58rejection_detail is now included in the return dict.


def verify_server_identity(
Expand Down
Loading
Loading