capability-negotiation-check
/capability-negotiation-check
Deklaruje tylko zdolności faktycznie zaimplementowane przez serwer MCP i odrzuca wywołania wykraczające poza nie.
- Autor
- Wsh7Ash ↗
- Repozytorium
- skillmcp ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 29.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 29.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Deklaruje tylko zdolności faktycznie zaimplementowane przez serwer MCP i odrzuca wywołania wykraczające poza nie.
Oryginalny opis (EN)
Declare only the capabilities the server implements and refuse calls outside them. Use when the server exposes tools and the client must know whether to look for resources or prompts
Jak działa
- Procedure
- Signals
- Patterns
- Pitfalls
- Done when
- References
Podgląd SKILL.md
---
name: capability-negotiation-check
description: "Declare only the capabilities the server implements and refuse calls outside them. Use when the server exposes tools and the client must know whether to look for resources or prompts"
pack: skillmcp
version: 1.0.0
category: ai-tool
tags: [setup, mcp, capabilities]
---
# Capability Negotiation Check
> Declare only the capabilities the server implements and refuse calls outside them
**Use when:** the server exposes tools and the client must know whether to look for resources or prompts
**Avoid when:** the server is a thin wrapper over one tool and capability breadth is irrelevant
## Procedure
1. List what the server can do: tools, resources, prompts, sampling
2. Declare exactly that subset in the initialize response
3. Return method-not-found for capabilities that were not declared
4. Verify the client only calls what was advertised
5. Add a test that asserts undeclared capabilities are refused
6. Update the declaration the same commit a new capability ships
## Signals
- the response capabilities block matches the implemented handlers
- an undeclared method returns a JSON-RPC method-not-found error
- the client hides features the server did not advertise
- a new handler without a capability entry is caught by the test
## Patterns
**1. Tools only**
```text
"capabilities": {"tools": {"listChanged": false}}
```
**2. Refusal shape**
```text
method_not_found for resources/list when undeclared
```
**3. Parity test**
```text
declared capabilities == implemented handlers
```
## Pitfalls
- Declaring resources because a future version might add them
- Leaving an undeclared handler reachable, which clients will not exercise and tests will not cover
- Forgetting listChanged semantics when the tool list is dynamic
## Done when
- declared capabilities match implemented handlers exactly
- undeclared methods return a clean JSON-RPC error
## References
- [MCP - server capabilities](https://modelcontextprotocol.io/specification/2025-03-26/basic/lifecycle)
- [MCP - tools](https://modelcontextprotocol.io/specification/2025-03-26/server/tools)
Wersje
W bazie nie ma innych skilli o nazwie capability-negotiation-check.
Migawka bazy z 13.11.2026 · wersja paczki 7f3edaefec57 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100mcp
Buduje serwery i klienty MCP w .NET z oficjalnym SDK C#: stdio, Streamable HTTP, narzędzia, prompty, zasoby, uzupełnienia i negocjacja możliwości. - 90acp-capability-negotiation
Implementuje negocjację możliwości ACP: dynamiczne wykrywanie wspólnie obsługiwanych możliwości, rozszerzeń, handlerów płatności i interwencji w serwerach sprzedawców i agentach. - 96mcp-server-development
Projektuje, buduje i testuje serwer MCP, który udostępnia ograniczony zestaw narzędzi lub zasobów klientom AI. - 100channel-capabilities
Pomaga projektować zwrotne wywołania RPC przez kanał, gdy funkcja serwerowa potrzebuje czegoś, co zna tylko podłączony klient (git sha, plik lokalny), oraz mapy możliwości i politykę zatwierdzeń. - 100audit
Sprawdza serwer MCP narzędziem mcpscore, wyjaśnia wynik i poprawia własny kod serwera. - 86diagnosing-mcp
Diagnozuje serwer MCP, który nie łączy się, nie pokazuje narzędzi albo którego narzędzia zawodzą.