Türkiye Business Days & Public Holidays

Türkiye public holidays (incl. half-day eves, Diyanet dates) and business-day math, 2022–2035.

我该使用它吗

质量与安全性

A
描述质量
95%
模式完整度
100%
命名质量
100%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~2,108token 数(工具定义)
~4.6 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 1.65%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "turkey-business-calendar": {
      "url": "https://foster-mcp.esakiz.workers.dev/calendar/mcp"
    }
  }
}

远程端点

https://foster-mcp.esakiz.workers.dev/calendar/mcpstreamable-http

它能做什么

工具清单

工具(4)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢list_holidays(year)

Lists all public holidays of a year in Türkiye, with Turkish/English names, type, half-day eves and announced administrative leave. Türkiye's official calendar (Law 2429 holidays plus Diyanet's religious holidays), covering 2022-01-01 to 2035-12-31. Business days are Monday–Friday minus official holidays. Eves of Republic Day and the religious holidays are half days (holiday from 13:00).

输入模式

{
  "type": "object",
  "properties": {
    "year": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Year, 2022–2035"
    }
  },
  "required": [
    "year"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

输出模式

{
  "type": "object",
  "properties": {
    "year": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "holidays": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "name_tr": {
            "type": "string"
          },
          "name_en": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "national",
              "general",
              "religious"
            ]
          },
          "portion": {
            "type": "string",
            "enum": [
              "full",
              "afternoon"
            ]
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "date",
          "name_tr",
          "name_en",
          "type",
          "portion",
          "starts_at"
        ],
        "additionalProperties": false
      }
    },
    "full_days_on_weekdays": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "administrative_leave": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "portion": {
            "type": "string",
            "enum": [
              "full",
              "morning"
            ]
          },
          "reason_en": {
            "type": "string"
          }
        },
        "required": [
          "date",
          "portion",
          "reason_en"
        ],
        "additionalProperties": false
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "source": {
      "type": "string"
    },
    "disclaimer": {
      "type": "string"
    }
  },
  "required": [
    "year",
    "holidays",
    "full_days_on_weekdays",
    "administrative_leave",
    "notes",
    "source",
    "disclaimer"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢check_business_day(date, calendar, half_days)

Tells whether a date is a business day in Türkiye, which holiday falls on it and whether only the afternoon is off. Türkiye's official calendar (Law 2429 holidays plus Diyanet's religious holidays), covering 2022-01-01 to 2035-12-31. Business days are Monday–Friday minus official holidays. Eves of Republic Day and the religious holidays are half days (holiday from 13:00).

输入模式

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Date, YYYY-MM-DD"
    },
    "calendar": {
      "default": "standard",
      "description": "standard: general business days. public_sector: also excludes announced administrative leave (from 2026). tcmb: days the central bank publishes exchange rates (no bulletin on eves).",
      "type": "string",
      "enum": [
        "standard",
        "public_sector",
        "tcmb"
      ]
    },
    "half_days": {
      "default": "working",
      "description": "Count half-day eves as working days or as holidays.",
      "type": "string",
      "enum": [
        "working",
        "holiday"
      ]
    }
  },
  "required": [
    "date"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

输出模式

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string"
    },
    "weekday": {
      "type": "string"
    },
    "business_day": {
      "type": "boolean"
    },
    "day_off": {
      "type": "string",
      "enum": [
        "none",
        "afternoon",
        "full"
      ]
    },
    "holidays": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "name_tr": {
            "type": "string"
          },
          "name_en": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "national",
              "general",
              "religious"
            ]
          },
          "portion": {
            "type": "string",
            "enum": [
              "full",
              "afternoon"
            ]
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "date",
          "name_tr",
          "name_en",
          "type",
          "portion",
          "starts_at"
        ],
        "additionalProperties": false
      }
    },
    "administrative_leave": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "portion": {
            "type": "string",
            "enum": [
              "full",
              "morning"
            ]
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason_tr": {
            "type": "string"
          },
          "reason_en": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "applies_to": {
            "type": "string",
            "const": "public_sector"
          }
        },
        "required": [
          "portion",
          "ends_at",
          "reason_tr",
          "reason_en",
          "source",
          "applies_to"
        ],
        "additionalProperties": false
      }
    },
    "calendar": {
      "type": "string",
      "enum": [
        "standard",
        "public_sector",
        "tcmb"
      ]
    },
    "half_days": {
      "type": "string",
      "enum": [
        "working",
        "holiday"
      ]
    },
    "source": {
      "type": "string"
    },
    "disclaimer": {
      "type": "string"
    }
  },
  "required": [
    "date",
    "weekday",
    "business_day",
    "day_off",
    "holidays",
    "administrative_leave",
    "calendar",
    "half_days",
    "source",
    "disclaimer"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢add_business_days(date, days, calendar, half_days)

Returns the date that is N business days after (or before, if N is negative) a start date in Türkiye, e.g. for payment terms or legal deadlines. The start date is not counted. Türkiye's official calendar (Law 2429 holidays plus Diyanet's religious holidays), covering 2022-01-01 to 2035-12-31. Business days are Monday–Friday minus official holidays. Eves of Republic Day and the religious holidays are half days (holiday from 13:00).

输入模式

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Start date, YYYY-MM-DD"
    },
    "days": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Business days to add; negative to go back; non-zero"
    },
    "calendar": {
      "default": "standard",
      "description": "standard: general business days. public_sector: also excludes announced administrative leave (from 2026). tcmb: days the central bank publishes exchange rates (no bulletin on eves).",
      "type": "string",
      "enum": [
        "standard",
        "public_sector",
        "tcmb"
      ]
    },
    "half_days": {
      "default": "working",
      "description": "Count half-day eves as working days or as holidays.",
      "type": "string",
      "enum": [
        "working",
        "holiday"
      ]
    }
  },
  "required": [
    "date",
    "days"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

输出模式

{
  "type": "object",
  "properties": {
    "start_date": {
      "type": "string"
    },
    "business_days": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "result_date": {
      "type": "string"
    },
    "result_weekday": {
      "type": "string"
    },
    "rule": {
      "type": "string"
    },
    "calendar": {
      "type": "string",
      "enum": [
        "standard",
        "public_sector",
        "tcmb"
      ]
    },
    "half_days": {
      "type": "string",
      "enum": [
        "working",
        "holiday"
      ]
    },
    "source": {
      "type": "string"
    },
    "disclaimer": {
      "type": "string"
    }
  },
  "required": [
    "start_date",
    "business_days",
    "result_date",
    "result_weekday",
    "rule",
    "calendar",
    "half_days",
    "source",
    "disclaimer"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢count_business_days(from, to, calendar, half_days)

Counts business days between two dates in Türkiye, both dates included. Türkiye's official calendar (Law 2429 holidays plus Diyanet's religious holidays), covering 2022-01-01 to 2035-12-31. Business days are Monday–Friday minus official holidays. Eves of Republic Day and the religious holidays are half days (holiday from 13:00).

输入模式

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Date, YYYY-MM-DD"
    },
    "to": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Date, YYYY-MM-DD"
    },
    "calendar": {
      "default": "standard",
      "description": "standard: general business days. public_sector: also excludes announced administrative leave (from 2026). tcmb: days the central bank publishes exchange rates (no bulletin on eves).",
      "type": "string",
      "enum": [
        "standard",
        "public_sector",
        "tcmb"
      ]
    },
    "half_days": {
      "default": "working",
      "description": "Count half-day eves as working days or as holidays.",
      "type": "string",
      "enum": [
        "working",
        "holiday"
      ]
    }
  },
  "required": [
    "from",
    "to"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

输出模式

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "calendar_days": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "business_days": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "rule": {
      "type": "string"
    },
    "calendar": {
      "type": "string",
      "enum": [
        "standard",
        "public_sector",
        "tcmb"
      ]
    },
    "half_days": {
      "type": "string",
      "enum": [
        "working",
        "holiday"
      ]
    },
    "source": {
      "type": "string"
    },
    "disclaimer": {
      "type": "string"
    }
  },
  "required": [
    "from",
    "to",
    "calendar_days",
    "business_days",
    "rule",
    "calendar",
    "half_days",
    "source",
    "disclaimer"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

社区

评价此服务器

证据

最近观测

已验证未记录版本4 个工具