mcp_tools_sdk/lib.rs
1/*
2 * Copyright Cedar Contributors
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17//! This library contains definitions of `ToolDescription`s which is a datatype that
18//! represents a Model Context Protocol (MCP) Tool Description. An MCP Tool description is a JSON
19//! object that gives the name of the tool, an optional description of the tool, and a description of
20//! the input and output parameters of the tool (and any type definitions usded to define these parameters).
21//!
22//! This library also includes a parser that deserializes an MCP tool description JSON into a `ToolDescription` struct.
23//!
24//! This library also includes a `ServerDescription` struct that represents a collection of MCP tool descriptions
25//! (i.e., the output of `list_tools` from an MCP Server).
26
27#![deny(
28 missing_docs,
29 rustdoc::broken_intra_doc_links,
30 rustdoc::private_intra_doc_links,
31 rustdoc::invalid_codeblock_attributes,
32 rustdoc::invalid_html_tags,
33 rustdoc::invalid_rust_codeblocks,
34 rustdoc::bare_urls,
35 clippy::doc_markdown,
36 clippy::doc_lazy_continuation,
37 clippy::too_long_first_doc_paragraph
38)]
39
40pub mod data;
41pub mod description;
42mod deserializer;
43pub mod err;
44pub mod parser;
45mod validation;