Skip to content

Commit de6fb6a

Browse files
authored
feat: exception chain tracking (#19)
1 parent b3dc17e commit de6fb6a

File tree

7 files changed

+1232
-17
lines changed

7 files changed

+1232
-17
lines changed

src/mcpcat/modules/constants.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@
44
EVENT_ID_PREFIX = "evt"
55
MCPCAT_API_URL = "https://api.mcpcat.io" # Default API URL for MCPCat events
66
DEFAULT_CONTEXT_DESCRIPTION = "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\""
7+
8+
# Maximum number of exceptions to capture in a cause chain
9+
MAX_EXCEPTION_CHAIN_DEPTH = 10
10+
11+
# Maximum number of stack frames to capture per exception
12+
MAX_STACK_FRAMES = 50

0 commit comments

Comments
 (0)