[Server] Use getDescription to get all descriptions. (#188)

* Remove `getSummary` method and update descriptions in snapshots and code

* Add changelog entry

---------

Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>
This commit is contained in:
落月 2026-01-12 05:08:05 +08:00 • committed by GitHub
commit 2c16b3e084
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 42 deletions

View file

@ -2,7 +2,7 @@
"tools": [
{
"name": "calculate",
"description": "Performs a calculation based on the operation.",
"description": "Performs a calculation based on the operation.\n\nSupports 'add', 'subtract', 'multiply', 'divide'.\nObeys the 'precision' and 'allow_negative' settings from the config resource.",
"icons": [
{
"mimeType": "image/svg+xml",
@ -37,7 +37,7 @@
},
{
"name": "update_setting",
"description": "Updates a specific configuration setting.",
"description": "Updates a specific configuration setting.\n\nNote: This requires more robust validation in a real app.",
"inputSchema": {
"type": "object",
"properties": {

View file

@ -2,7 +2,7 @@
"tools": [
{
"name": "process_data_by_mode",
"description": "Performs an action that can be modified by an environment variable.",
"description": "Performs an action that can be modified by an environment variable.\n\nThe MCP client should set 'APP_MODE' in its 'env' config for this server.",
"inputSchema": {
"type": "object",
"properties": {