ASF Policy MCP
ASF Policy MCP
MCP-сервер для ответов на вопросы о политиках Apache Software Foundation.
Охватывает полный набор политик, перечисленных на странице https://www.apache.org/board/policies — релизы, лицензирование, брендинг, безопасность, инфраструктура, инкубатор и многое другое.
Страницы политик кэшируются локально на 30 дней. Используйте force_refresh=true в инструментах чтения, чтобы обойти кэш для одного вызова.
Установка
python3 -m venv .venv
. .venv/bin/activate
pip install -e .Related MCP server: Open Policy Agent (OPA) REST API MCP Server
Запуск
asf-policy-mcpДля локальной разработки:
python -m asf_policy_mcp.serverТестирование
pip install -e ".[dev]"
make checkНастройка в Claude Desktop или Codex
{
"mcpServers": {
"asf-policy": {
"command": "<path to PolicyMCP>/.venv/bin/python",
"args": ["-m", "asf_policy_mcp.server"]
}
}
}Инструменты
list_policies— список всех доступных документов по политикам, организованный по разделам, со статусом кэша.get_policy— получение полного текста документа по политике по ключу (например,release_policy,branding,incubator).search_policies— поиск по ключевым словам во всех документах по политикам, возвращающий ранжированные отрывки с контекстом.refresh_cache— принудительное повторное получение одного или всех документов по политикам с веб-сайта ASF.
Примеры вопросов
Релизы
Какие файлы должны быть включены в артефакт релиза, чтобы он считался действительным?
Можем ли мы выпустить релиз только с одним голосом +1 от PMC?
Где должны публиковаться артефакты релиза — можем ли мы использовать GitHub Releases в качестве основного места для скачивания?
Инкубатор
Что должен сделать подпроект (podling) перед выпуском из инкубатора?
Может ли подпроект выпустить релиз до завершения инкубации, и какие дополнительные требования применяются?
Кто может голосовать за релиз подпроекта и чьи голоса являются обязательными?
Лицензирование
Совместима ли лицензия MIT с Apache 2.0 для включения в релиз?
Можем ли мы включить библиотеку, лицензированную под LGPL 2.1?
Что такое лицензия категории X и почему это важно?
Нужно ли нам получать CLA от каждого участника или только от коммиттеров?
Какие заголовки лицензий требуются в исходных файлах?
Безопасность
Если кто-то сообщает об уязвимости в частном порядке, через какое время мы должны раскрыть информацию?
Следует ли обсуждать вопросы безопасности в публичном списке рассылки dev?
Брендинг
Может ли третья сторона использовать "Apache Foo" в названии своего коммерческого продукта?
Что должно присутствовать на веб-сайте проекта для соблюдения требований к товарным знакам?
Документы по политикам
Ключ | Название | Раздел |
| Руководство PMC | Надзор за сообществом и проектами |
| Независимость проекта | Независимость |
| Требования к отчетности перед советом | Отчетность |
| Политика релизов | Релиз |
| Процесс голосования в Apache | Релиз |
| Политика распространения релизов | Релиз |
| Руководство группы безопасности | Безопасность |
| Обработка уязвимостей для коммиттеров | Безопасность |
| Соглашения о лицензиях участников | Лицензирование |
| Заголовки исходного кода Apache | Лицензирование |
| Одобренные/разрешенные сторонние лицензии | Лицензирование |
| Требования к брендингу проекта | Брендинг |
| Обязанности по поддержке товарных знаков | Брендинг |
| Политика размещения ссылок на веб-сайте | Брендинг |
| Политика репозиториев | Инфраструктура |
| Политика веб-сайтов | Инфраструктура |
| Политика в отношении прессы и маркетинга | Пресса |
| Требования к спонсорству | Сбор средств |
| Политика конфиденциальности | Конфиденциальность |
| Политики подпроектов инкубатора | Инкубатор |
Available Tools
4 toolsget_policyA
Retrieve the full text of a specific ASF policy document.
Use list_policies to discover valid policy keys such as 'release_policy', 'branding', 'resolved_licenses', 'incubator', etc.
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| force_refresh | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must fully disclose behavior. It implies a read-only operation but does not explain the force_refresh parameter or any caching behavior. Side effects are not mentioned, but the tool is likely safe.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two concise sentences with no wasted words. The key point is front-loaded, and the guidance is immediately after.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple retrieval tool, the description covers the main purpose and provides a prerequisite. However, it lacks details on the force_refresh parameter and potential errors. The output schema may compensate, but the description alone is slightly incomplete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%. The description does not explain the 'key' parameter's format or valid values beyond the example keys, and 'force_refresh' is not described. This is insufficient for parameter understanding.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves the full text of a specific ASF policy document. It distinguishes from siblings by referencing list_policies for discovering valid keys.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly directs users to use list_policies to find valid policy keys, providing a clear prerequisite and alternative. However, it does not mention when to use search_policies or refresh_cache instead.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_policiesA
List all available ASF policy documents organised by section.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It states the tool lists all policies organized by section, which is transparent enough for a simple read operation. However, it does not disclose potential pagination, rate limits, or data volume, which could be relevant for an agent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence with no filler. Every word adds value: 'list all available' sets scope, 'ASF policy documents' identifies the resource, 'organised by section' provides structure. It is optimally concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given zero parameters and the presence of an output schema, the description is complete. It tells the agent what the tool does (list all policies by section) and nothing more is needed for correct invocation. Sibling tools provide additional context for differentiation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There are zero parameters, and the input schema coverage is 100% (empty). According to guidelines, the baseline score is 4 when no parameters exist. The description adds no param info because none are needed.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'List' and clearly identifies the resource as 'all available ASF policy documents'. It also adds organization detail 'by section', which differentiates it from siblings like 'get_policy' (single document) and 'search_policies' (filtered search).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies when to use the tool (when you need all policies organized by section) but provides no explicit guidance on when not to use it or alternatives. Given sibling names, context is inferred but not stated, so the score is neutral.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
refresh_cacheA
Re-fetch policy documents from the ASF website in parallel, bypassing the 30-day cache.
Omit keys to refresh all policies.
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description mentions parallel fetching and cache bypass, which are key traits. But without annotations, it should disclose potential costs (external fetches) and safety (non-destructive but mutates cache). Currently lacks these.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with no redundancy. The first sentence states the main action, the second explains the parameter behavior. Efficient and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema and a single optional parameter, the description covers the essential information for invocation. Minor gap: doesn't mention the effect on other tools' data (e.g., get_policy will now show fresh data).
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The only parameter 'keys' has no schema description, but the description clarifies its meaning: omit to refresh all, provide to refresh specific. This adds value beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (re-fetch policy documents via parallel) and resource (ASF website), and it distinguishes from sibling tools that read the cached policies.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explains when to use the tool (to bypass cache and force refresh) and how to scope the refresh (omit keys for all, provide keys for specific). However, no explicit 'when not to use' or alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_policiesA
Search across cached ASF policy documents for a query term or phrase.
Returns ranked excerpts with surrounding context. Only searches policies already in the local cache — run refresh_cache first to ensure all policies are available.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries full burden. Describes return format (ranked excerpts with context) and cache dependency. Does not disclose read-only nature or other behavioral details like rate limits or error conditions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three sentences, each adding value: first states purpose, second specifies return format, third gives prerequisite. No filler. Information is front-loaded and efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Output schema exists, so return details are covered. Description gives a high-level sense of output (ranked excerpts). However, missing parameter details and lack of behavioral nuance about caching status make it slightly less complete than ideal for a search tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, meaning no descriptions in schema. Description only mentions 'query term or phrase' for the query parameter, but does not explain the max_results parameter or provide any additional semantics beyond the parameter names.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly states verb 'search' and resource 'cached ASF policy documents', distinguishing it from siblings get_policy (retrieve specific), list_policies (list all), and refresh_cache (update). It specifies ranking and excerpts.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly states prerequisite 'run refresh_cache first', advising when the tool is usable. Does not explicitly state when not to use or directly contrast with siblings, but the context is clear enough.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
v0.1.0- First observed
get_policy - First observed
list_policies - First observed
refresh_cache - First observed
search_policies
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: listing, retrieving, searching, and caching. No overlap or confusion.
All tool names follow a consistent verb_noun pattern in snake_case: get_policy, list_policies, refresh_cache, search_policies.
Four tools are perfectly scoped for managing policy documents: list, get, search, and cache refresh.
The set covers all necessary operations for a read-only policy server: discovery, retrieval, search, and cache management.
Maintenance
Related MCP Connectors
MCP server for opencode documentation, generated by doc2mcp.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
MCP server for agentverse documentation, generated by doc2mcp.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis MCP Server provides a natural language interface to interact with Google's Policy Analyzer API, allowing users to analyze policies and evaluate compliance through conversations.-
- FlicenseNot gradedqualityDmaintenanceAn MCP Server that enables natural language interaction with the Open Policy Agent REST API, allowing users to manage policies, decisions, and data through conversational interfaces.1-
- AlicenseAqualityBmaintenanceAn MCP server that gives AI assistants access to the AsyncAPI specification - search, explore and retrieve any version of the spec directly from your coding tool.5Apache 2.0
- AlicenseNot gradedqualityCmaintenanceAn MCP server that provides full-text search over documentation using Whoosh, enabling AI assistants to find up-to-date, authoritative answers.MIT