DAP Foundry
Tools that refuse rather than guess: settlement day counts, Unix timestamps, base64, line diffs.
我该使用它吗
质量与安全性
发现(10)
- HIGH
- MEDIUM在 compute-day-count-to-settlement 中
- MEDIUM在 convert-unix-timestamp-to-date 中
- MEDIUM在 decode-base64-to-text 中
- MEDIUM在 diff-two-line-lists 中
- LOW在 compute-day-count-to-settlement 中
- LOW在 compute-day-count-to-settlement 中
- LOW在 convert-unix-timestamp-to-date 中
- LOW在 decode-base64-to-text 中
- LOW在 diff-two-line-lists 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"foundry": {
"url": "https://foundry.dap.solutions/mcp"
}
}
}远程端点
https://foundry.dap.solutions/mcpstreamable-http它能做什么
工具清单
工具(4)
🟢compute-day-count-to-settlement(accrual_start, trade_date, settlement_lag, calendar, convention, ...)
Settlement date on the Payments Canada holiday calendar, and the accrual fraction under ACT/360, ACT/365F, 30/360, 30E/360 or ACT/ACT-ISDA. Send all seven inputs, including acknowledge no-ruling-v1 and a freshness_tolerance in whole days written P<n>D. It refuses rather than guesses: a missing acknowledgement or tolerance, a tolerance over the ratified ceiling, calendar data older than your tolerance, a trade date outside the calendar's coverage or not a business day, and any missing, unknown or malformed input. Costs $0.01 in USDC on Base per computed answer, under x402; a refusal is not charged. The answer is the JSON envelope of https://foundry.dap.solutions/api/compute-day-count-to-settlement, byte for byte, with the artifact hash that answered. Full rules: https://foundry.dap.solutions/hub.md
输入模式
{
"type": "object",
"properties": {
"accrual_start": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "a real calendar date, the first day of the accrual period, counted"
},
"trade_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "a business day on the calendar"
},
"settlement_lag": {
"oneOf": [
{
"type": "string",
"pattern": "^[0-5]$"
},
{
"type": "integer",
"minimum": 0,
"maximum": 5
}
]
},
"calendar": {
"type": "string",
"enum": [
"ca-payments-canada"
]
},
"convention": {
"type": "string",
"enum": [
"ACT/360",
"ACT/365F",
"30/360",
"30E/360",
"ACT/ACT-ISDA"
]
},
"acknowledge": {
"type": "string",
"enum": [
"no-ruling-v1"
]
},
"freshness_tolerance": {
"type": "string",
"pattern": "^P(0|[1-9][0-9]{0,3})D$",
"description": "at most the ratified ceiling"
}
},
"required": [
"accrual_start",
"trade_date",
"settlement_lag",
"calendar",
"convention",
"acknowledge",
"freshness_tolerance"
],
"additionalProperties": false
}🟢convert-unix-timestamp-to-date(text)
Unix timestamps to UTC dates in ISO 8601. text holds one or more timestamps, one per line: whole seconds or milliseconds, where a magnitude of 100000000000 or more is milliseconds. The answer is a CSV of input, unit and date. It refuses empty text, more than 1,048,576 bytes or 10,000 lines, and any line that is not digits with an optional leading minus inside the years 0001 to 9999. Free. The answer is the JSON envelope of https://foundry.dap.solutions/api/convert-unix-timestamp-to-date, byte for byte, with the artifact hash that answered. Full rules: https://foundry.dap.solutions/hub.md
输入模式
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "One or more Unix timestamps, one per line: whole seconds or milliseconds, digits with an optional leading minus, inside the years 0001 to 9999. At most 1,048,576 bytes of UTF-8 and 10,000 lines; a line break at the very end is not a line."
}
},
"required": [
"text"
],
"additionalProperties": false
}🟢decode-base64-to-text(text)
Base64 to UTF-8 text. text holds standard base64: A to Z, a to z, 0 to 9, + and /, padding optional; white space is ignored. It refuses empty text, more than 1,048,576 bytes, the URL-safe alphabet, a length or padding that cannot be base64, and bytes that are not valid UTF-8. Free. The answer is the JSON envelope of https://foundry.dap.solutions/api/decode-base64-to-text, byte for byte, with the artifact hash that answered. Full rules: https://foundry.dap.solutions/hub.md
输入模式
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Base64 that decodes to UTF-8 text: the letters A to Z and a to z, the digits 0 to 9, + and /, then one or two = of padding at the end, which may be left out but, when given, must make the length a multiple of four. A length that leaves one character over a multiple of four is refused. White space anywhere is ignored and not counted in the length. At most 1,048,576 bytes of UTF-8, white space included."
}
},
"required": [
"text"
],
"additionalProperties": false
}🟢diff-two-line-lists(text)
Compare two lists of lines. text holds a line ---A---, then list A, then a line ---B---, then list B. The answer is a CSV of each distinct line, matched exactly as sent, marked only_a, only_b or both. It refuses empty text, more than 1,048,576 bytes or 50,000 lines, and a text without the two markers in that order. Free. The answer is the JSON envelope of https://foundry.dap.solutions/api/diff-two-line-lists, byte for byte, with the artifact hash that answered. Full rules: https://foundry.dap.solutions/hub.md
输入模式
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Two lists of lines: a line ---A---, then list A, then a line ---B---, then list B, one item per line. At most 1,048,576 bytes of UTF-8 and 50,000 lines; a line break at the very end is not a line."
}
},
"required": [
"text"
],
"additionalProperties": false
}社区
证据