@@ -17,9 +17,11 @@ namespace fastmcpp
1717
1818FastMCP::FastMCP (std::string name, std::string version, std::optional<std::string> website_url,
1919 std::optional<std::vector<Icon>> icons,
20+ std::optional<std::string> instructions,
2021 std::vector<std::shared_ptr<providers::Provider>> providers, int list_page_size,
2122 bool dereference_schemas)
22- : server_(std::move(name), std::move(version), std::move(website_url), std::move(icons)),
23+ : server_(std::move(name), std::move(version), std::move(website_url), std::move(icons),
24+ std::move (instructions)),
2325 providers_(std::move(providers)), list_page_size_(list_page_size),
2426 dereference_schemas_(dereference_schemas)
2527{
@@ -30,6 +32,25 @@ FastMCP::FastMCP(std::string name, std::string version, std::optional<std::strin
3032 throw ValidationError (" provider cannot be null" );
3133}
3234
35+ FastMCP::FastMCP (std::string name, std::string version, std::optional<std::string> website_url,
36+ std::optional<std::vector<Icon>> icons,
37+ std::vector<std::shared_ptr<providers::Provider>> providers, int list_page_size,
38+ bool dereference_schemas)
39+ : FastMCP(std::move(name), std::move(version), std::move(website_url), std::move(icons),
40+ std::nullopt, std::move(providers), list_page_size, dereference_schemas)
41+ {
42+ }
43+
44+ FastMCP::FastMCP (std::string name, std::string version, std::optional<std::string> website_url,
45+ std::optional<std::vector<Icon>> icons,
46+ std::initializer_list<std::shared_ptr<providers::Provider>> providers,
47+ int list_page_size, bool dereference_schemas)
48+ : FastMCP(std::move(name), std::move(version), std::move(website_url), std::move(icons),
49+ std::nullopt, std::vector<std::shared_ptr<providers::Provider>>(providers),
50+ list_page_size, dereference_schemas)
51+ {
52+ }
53+
3354namespace
3455{
3556fastmcpp::Json schema_from_schema_or_simple (const fastmcpp::Json& schema_or_simple)
0 commit comments