@modelcontextprotocol/sdk
    Preparing search index...

    Function mergeCapabilities

    • Parameters

      • base: {
            completions?: object;
            experimental?: { [key: string]: object };
            logging?: object;
            prompts?: { listChanged?: boolean };
            resources?: { listChanged?: boolean; subscribe?: boolean };
            tools?: { listChanged?: boolean };
        }
        • Optionalcompletions?: object

          Present if the server supports sending completions to the client.

        • Optionalexperimental?: { [key: string]: object }

          Experimental, non-standard capabilities that the server supports.

        • Optionallogging?: object

          Present if the server supports sending log messages to the client.

        • Optionalprompts?: { listChanged?: boolean }

          Present if the server offers any prompt templates.

          • OptionallistChanged?: boolean

            Whether this server supports issuing notifications for changes to the prompt list.

        • Optionalresources?: { listChanged?: boolean; subscribe?: boolean }

          Present if the server offers any resources to read.

          • OptionallistChanged?: boolean

            Whether this server supports issuing notifications for changes to the resource list.

          • Optionalsubscribe?: boolean

            Whether this server supports clients subscribing to resource updates.

        • Optionaltools?: { listChanged?: boolean }

          Present if the server offers any tools to call.

          • OptionallistChanged?: boolean

            Whether this server supports issuing notifications for changes to the tool list.

      • additional: Partial<ServerCapabilities>

      Returns {
          completions?: object;
          experimental?: { [key: string]: object };
          logging?: object;
          prompts?: { listChanged?: boolean };
          resources?: { listChanged?: boolean; subscribe?: boolean };
          tools?: { listChanged?: boolean };
      }

      • Optionalcompletions?: object

        Present if the server supports sending completions to the client.

      • Optionalexperimental?: { [key: string]: object }

        Experimental, non-standard capabilities that the server supports.

      • Optionallogging?: object

        Present if the server supports sending log messages to the client.

      • Optionalprompts?: { listChanged?: boolean }

        Present if the server offers any prompt templates.

        • OptionallistChanged?: boolean

          Whether this server supports issuing notifications for changes to the prompt list.

      • Optionalresources?: { listChanged?: boolean; subscribe?: boolean }

        Present if the server offers any resources to read.

        • OptionallistChanged?: boolean

          Whether this server supports issuing notifications for changes to the resource list.

        • Optionalsubscribe?: boolean

          Whether this server supports clients subscribing to resource updates.

      • Optionaltools?: { listChanged?: boolean }

        Present if the server offers any tools to call.

        • OptionallistChanged?: boolean

          Whether this server supports issuing notifications for changes to the tool list.

    • Parameters

      • base: {
            elicitation?: { applyDefaults?: boolean; [key: string]: unknown };
            experimental?: { [key: string]: object };
            roots?: { listChanged?: boolean };
            sampling?: object;
        }
        • Optionalelicitation?: { applyDefaults?: boolean; [key: string]: unknown }

          Present if the client supports eliciting user input.

          • OptionalapplyDefaults?: boolean

            Whether the client should apply defaults to the user input.

        • Optionalexperimental?: { [key: string]: object }

          Experimental, non-standard capabilities that the client supports.

        • Optionalroots?: { listChanged?: boolean }

          Present if the client supports listing roots.

          • OptionallistChanged?: boolean

            Whether the client supports issuing notifications for changes to the roots list.

        • Optionalsampling?: object

          Present if the client supports sampling from an LLM.

      • additional: Partial<ClientCapabilities>

      Returns {
          elicitation?: { applyDefaults?: boolean; [key: string]: unknown };
          experimental?: { [key: string]: object };
          roots?: { listChanged?: boolean };
          sampling?: object;
      }

      • Optionalelicitation?: { applyDefaults?: boolean; [key: string]: unknown }

        Present if the client supports eliciting user input.

        • OptionalapplyDefaults?: boolean

          Whether the client should apply defaults to the user input.

      • Optionalexperimental?: { [key: string]: object }

        Experimental, non-standard capabilities that the client supports.

      • Optionalroots?: { listChanged?: boolean }

        Present if the client supports listing roots.

        • OptionallistChanged?: boolean

          Whether the client supports issuing notifications for changes to the roots list.

      • Optionalsampling?: object

        Present if the client supports sampling from an LLM.