Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

add-tool

/add-tool

Dodaje narzędzie do serwera MCP z typowanymi strukturami wejścia i wyjścia, logiką domenową, rejestracją i testami protokołu.

Repozytorium
stacks ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
08.11.2026

Ocena i bezpieczeństwo

96/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść31 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 08.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Dodaje narzędzie do serwera MCP z typowanymi strukturami wejścia i wyjścia, logiką domenową, rejestracją i testami protokołu.

Oryginalny opis (EN)

Add a tool to this MCP server, with typed input and output structs, domain logic, registration through addTool and in-memory protocol tests. Use when the user asks for a new tool, action, command or capability the agent host should be able to call.

Jak działa

SKILL.md bez nagłówków drugiego poziomu · 12 linii, 191 słów

Podgląd SKILL.md
---
name: add-tool
description: Add a tool to this MCP server, with typed input and output structs, domain logic, registration through addTool and in-memory protocol tests. Use when the user asks for a new tool, action, command or capability the agent host should be able to call.
---

# Add an MCP tool

`convert_units` is the model to copy: domain logic in `internal/convert`, the tool in `internal/server/convert.go`, its tests in `internal/server/server_test.go`.

1. Put the logic in a domain package under `internal/` that doesn't import the SDK. Return `apperrors.New(apperrors.InvalidInput, "<what was wrong and how to fix the call>")` for a caller's mistake; wrap anything else with `apperrors.Internal`.
2. In `internal/server/<tool>.go`, declare `<Tool>Input` and `<Tool>Output` structs. Every field gets a `json` tag (no `omitempty` unless it's optional) and a `jsonschema` description.
3. Write the description as instructions for a model: when to call the tool, what it needs, what it returns, and one example call as JSON.
4. Add `add<Tool>(s, logger)` calling `addTool` with a snake_case name, a title and annotations (`ReadOnlyHint`, `IdempotentHint`, `DestructiveHint`, `OpenWorldHint` as they apply), and call it from `server.New`.
5. In `server_test.go`, assert the tool is listed with its required properties, then add call cases for success (decode `StructuredContent` into the output struct) and each error path, asserting `IsError` and the message.
6. Run `make fmt lint test test-integration`, then `make call TOOL=<name> ARGS='<json>'` to try it over stdio. Add the tool to the README's tool table.

Wersje

RepozytoriumWynikLicencja
Ta strona · steamfield/stacks96Apache-2.0
umbraco/Umbraco-MCP-Base100MIT
26zl/cybersec-toolkit100MIT
steamfield/stacks96Apache-2.0
pengguogo/ai-credit-dd96MIT
cyanheads/ntfy-mcp-server95Apache-2.0
cyanheads/clinicaltrialsgov-mcp-server91Apache-2.0
cyanheads/mcp-ts-core91Apache-2.0
cyanheads/orcid-mcp-server91Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki a6e0b8dcf2ae (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-tool-scaffolding
    Tworzy szkielet nowego narzędzia MCP dla serwera metashape-mcp z poprawnymi importami, rejestracją, śledzeniem postępu i wzorcami automatycznego zapisu.
  • 100actor-tool-registration
    Rejestruje narzędzie aktora w rejestrze narzędzi: dodaje ToolId i GetToolDefinition oraz udostępnia schemat narzędzia.
  • 100add-command
    Dodaje kompletny przepływ komendy do istniejącego agregatu Protean: klasę komendy, endpoint FastAPI i handler z logiką repozytorium, czyli operację zapisu.
  • 90add-entry
    Dodaje lub poprawia pozycję w katalogu Gearlist, np. narzędzie, serwer MCP lub platformę, także z kolejki gwiazdek.
  • 100testing
    Pisze, umieszcza i uruchamia testy serwera w repozytorium: przez klienta MCP lub wywołania funkcji, z testami protokołu w TypeScript i Pythonie.
  • 100add-mcp-tool
    Dodaje nowe narzędzie Memory* do serwera MCP remindb, rejestrując je w SDK i w pkg/mcp/tools/, tak by klienci MCP dostali nową funkcję opartą na store, engine lub trackerze.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.