├── examples ├── golang │ ├── go.mod │ └── synf.toml ├── python │ ├── src │ │ ├── .gitignore │ │ └── mcp_server_test │ │ │ └── __init__.py │ ├── pyproject.toml │ ├── synf.toml │ └── uv.lock ├── typescript │ ├── .gitignore │ ├── tsconfig.json │ ├── package.json │ ├── synf.toml │ ├── package-lock.json │ └── src │ │ └── index.ts └── kotlin │ ├── gradle.properties │ ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── settings.gradle.kts │ ├── build.gradle.kts │ ├── .gitignore │ ├── README.md │ ├── synf.toml │ ├── gradlew.bat │ ├── src │ └── main │ │ └── kotlin │ │ └── Main.kt │ └── gradlew ├── .gitignore ├── rust-toolchain.toml ├── Cross.toml ├── scoop ├── synf.json └── update-manifest.sh ├── Cargo.toml ├── src ├── utils.rs ├── config.rs ├── main.rs ├── init.rs └── runner.rs ├── LICENSE ├── CONTRIBUTING.md ├── release.toml ├── install.sh ├── CHANGELOG.md ├── Makefile.toml ├── .github └── workflows │ └── build.yaml ├── readme.md └── Cargo.lock /examples/golang/go.mod: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/python/src/.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | docker-cache 3 | cross -------------------------------------------------------------------------------- /rust-toolchain.toml: -------------------------------------------------------------------------------- 1 | [toolchain] 2 | channel = "1.83.0" -------------------------------------------------------------------------------- /examples/typescript/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | build/ -------------------------------------------------------------------------------- /examples/kotlin/gradle.properties: -------------------------------------------------------------------------------- 1 | kotlin.code.style=official 2 | 3 | -------------------------------------------------------------------------------- /examples/kotlin/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strowk/synf/HEAD/examples/kotlin/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Cross.toml: -------------------------------------------------------------------------------- 1 | [target.aarch64-apple-darwin] 2 | image = "ghcr.io/cross-rs/aarch64-apple-darwin-cross:local" 3 | 4 | [target.x86_64-apple-darwin] 5 | image = "ghcr.io/cross-rs/x86_64-apple-darwin-cross:local" -------------------------------------------------------------------------------- /examples/python/src/mcp_server_test/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | from fastmcp import FastMCP 3 | 4 | mcp = FastMCP("Demo 🚀") 5 | 6 | @mcp.tool() 7 | def add(a: int, b: int) -> int: 8 | """Add two numbers""" 9 | return a + b + 1005 10 | 11 | def main(): 12 | mcp.run() 13 | -------------------------------------------------------------------------------- /examples/kotlin/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 16 12:27:09 CET 2024 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /scoop/synf.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.5", 3 | "license": "MIT", 4 | "extract_dir": "target/x86_64-pc-windows-gnu/release", 5 | "url": "https://github.com/strowk/synf/releases/download/v0.2.5/synf-x86_64-pc-windows-gnu.tar.gz", 6 | "homepage": "https://github.com/strowk/synf", 7 | "bin": "synf.exe" 8 | } 9 | -------------------------------------------------------------------------------- /examples/kotlin/settings.gradle.kts: -------------------------------------------------------------------------------- 1 | plugins { 2 | id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" 3 | } 4 | rootProject.name = "kotlin-mcp-server" 5 | 6 | dependencyResolutionManagement { 7 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 8 | repositories { 9 | mavenCentral() 10 | maven("https://maven.pkg.jetbrains.space/public/p/kotlin-mcp-sdk/sdk") 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /examples/typescript/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2022", 4 | "module": "Node16", 5 | "moduleResolution": "Node16", 6 | "outDir": "./build", 7 | "rootDir": "./src", 8 | "strict": true, 9 | "esModuleInterop": true, 10 | "skipLibCheck": true, 11 | "forceConsistentCasingInFileNames": true 12 | }, 13 | "include": ["src/**/*"], 14 | "exclude": ["node_modules"] 15 | } 16 | -------------------------------------------------------------------------------- /examples/python/pyproject.toml: -------------------------------------------------------------------------------- 1 | [project] 2 | name = "mcp-server-test" 3 | version = "0.0.1" 4 | description = "A simple MCP server" 5 | requires-python = ">=3.10" 6 | dependencies = [ 7 | "fastmcp>=2.2.1", 8 | ] 9 | 10 | [build-system] 11 | requires = ["hatchling"] 12 | build-backend = "hatchling.build" 13 | 14 | [tool.uv] 15 | dev-dependencies = ["pyright>=1.1.389"] 16 | 17 | [project.scripts] 18 | mcp-server-test = "mcp_server_test:main" 19 | 20 | 21 | -------------------------------------------------------------------------------- /scoop/update-manifest.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | version=$(cargo metadata --format-version=1 --no-deps | jq '.packages[0].version' -r) 4 | cat << EOF > scoop/synf.json 5 | { 6 | "version": "${version}", 7 | "license": "MIT", 8 | "extract_dir": "target/x86_64-pc-windows-gnu/release", 9 | "url": "https://github.com/strowk/synf/releases/download/v${version}/synf-x86_64-pc-windows-gnu.tar.gz", 10 | "homepage": "https://github.com/strowk/synf", 11 | "bin": "synf.exe" 12 | } 13 | EOF 14 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "synf" 3 | version = "0.2.5" 4 | edition = "2021" 5 | 6 | [dependencies] 7 | inquire = "0.7.5" 8 | notify-debouncer-full = "0.4.0" 9 | notify = "6.1.1" 10 | ctrlc = "3.4.5" 11 | toml = "0.8.19" 12 | color-eyre = "0.6" 13 | eyre = "0.6.12" 14 | serde = { version = "1.0", features = ["derive"] } 15 | crossbeam-channel = "0.5.15" 16 | argh = "0.1.13" 17 | serde_json = "1.0" 18 | 19 | # did as recommended here: 20 | # https://github.com/eyre-rs/eyre/tree/master/color-eyre 21 | [profile.dev.package.backtrace] 22 | opt-level = 3 23 | -------------------------------------------------------------------------------- /examples/kotlin/build.gradle.kts: -------------------------------------------------------------------------------- 1 | plugins { 2 | kotlin("jvm") version "2.1.0" 3 | kotlin("plugin.serialization") version "2.1.0" 4 | application 5 | } 6 | 7 | application { 8 | mainClass.set("MainKt") 9 | } 10 | 11 | 12 | group = "org.example" 13 | version = "0.1.0" 14 | 15 | dependencies { 16 | implementation("io.modelcontextprotocol:kotlin-sdk:0.2.0") 17 | implementation("org.slf4j:slf4j-nop:2.0.9") 18 | 19 | testImplementation(kotlin("test")) 20 | } 21 | 22 | tasks.test { 23 | useJUnitPlatform() 24 | } 25 | kotlin { 26 | jvmToolchain(21) 27 | } 28 | -------------------------------------------------------------------------------- /src/utils.rs: -------------------------------------------------------------------------------- 1 | use std::path::Path; 2 | 3 | pub(crate) fn validate_path(path: &Path) -> color_eyre::eyre::Result<()> { 4 | if !path.exists() { 5 | return Err(eyre::eyre!(format!("Path {:?} does not exist", path))); 6 | } 7 | if !path.is_dir() { 8 | return Err(eyre::eyre!(format!( 9 | "Path {:?} expected to be a directory, but was {}", 10 | path, 11 | if path.is_file() { 12 | "a file" 13 | } else { 14 | "something else" 15 | } 16 | ))); 17 | } 18 | Ok(()) 19 | } 20 | -------------------------------------------------------------------------------- /examples/typescript/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mcp-quickstart-ts", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "type": "module", 6 | "bin": { 7 | "weather": "./build/index.js" 8 | }, 9 | "scripts": { 10 | "build": "tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"" 11 | }, 12 | "files": [ 13 | "build" 14 | ], 15 | "keywords": [], 16 | "author": "", 17 | "license": "ISC", 18 | "description": "", 19 | "devDependencies": { 20 | "@types/node": "^22.10.0", 21 | "typescript": "^5.7.2" 22 | }, 23 | "dependencies": { 24 | "@modelcontextprotocol/sdk": "^1.0.3" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /examples/kotlin/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | build/ 3 | !gradle/wrapper/gradle-wrapper.jar 4 | !**/src/main/**/build/ 5 | !**/src/test/**/build/ 6 | 7 | ### IntelliJ IDEA ### 8 | .idea/modules.xml 9 | .idea/jarRepositories.xml 10 | .idea/compiler.xml 11 | .idea/libraries/ 12 | *.iws 13 | *.iml 14 | *.ipr 15 | out/ 16 | !**/src/main/**/out/ 17 | !**/src/test/**/out/ 18 | 19 | ### Kotlin ### 20 | .kotlin 21 | 22 | ### Eclipse ### 23 | .apt_generated 24 | .classpath 25 | .factorypath 26 | .project 27 | .settings 28 | .springBeans 29 | .sts4-cache 30 | bin/ 31 | !**/src/main/**/bin/ 32 | !**/src/test/**/bin/ 33 | 34 | ### NetBeans ### 35 | /nbproject/private/ 36 | /nbbuild/ 37 | /dist/ 38 | /nbdist/ 39 | /.nb-gradle/ 40 | 41 | ### VS Code ### 42 | .vscode/ 43 | 44 | ### Mac OS ### 45 | .DS_Store -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 strowk 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contribution to synf 2 | 3 | Please create Github issues to contribute either for submitting bugs, or preparing to make pull requests. 4 | 5 | ## Development 6 | 7 | Try starting: 8 | 9 | ```bash 10 | cargo run dev examples/typescript 11 | ``` 12 | 13 | Then send: 14 | 15 | ```json 16 | {"method":"initialize", "params":{"protocolVersion":"2024","clientInfo":{"name": "tst","version":"1.0.0"}, "capabilities":{}}, "jsonrpc": "2.0", "id":1} 17 | 18 | ``` 19 | 20 | Try sending resource subscriptions: 21 | ```json 22 | {"jsonrpc":"2.0","id":2,"method":"resources/subscribe","params":{"uri":"file:///project/src/main.ts"}} 23 | ``` 24 | 25 | Try running this: 26 | 27 | ```bash 28 | cargo run init examples/typescript 29 | ``` 30 | 31 | Using with inspector: 32 | 33 | ```bash 34 | npx @modelcontextprotocol/inspector cargo run dev examples/typescript 35 | ``` 36 | 37 | ## Release 38 | 39 | To release a new version make sure that CHANGELOG.md is up to date with unreleased changes. 40 | 41 | Then to release new version run one of the following commands: 42 | 43 | ```bash 44 | cargo release patch --execute 45 | # or 46 | cargo release minor --execute 47 | ``` 48 | -------------------------------------------------------------------------------- /release.toml: -------------------------------------------------------------------------------- 1 | # Disable publishing to crates.io, it is done by GitHub Actions 2 | publish = false 3 | 4 | # Replace Unreleased header with version number and release date in CHANGELOG.md 5 | [[pre-release-replacements]] 6 | file = "CHANGELOG.md" 7 | search = "## \\[Unreleased\\]" 8 | replace = "## [{{version}}] - {{date}}" 9 | exactly = 1 10 | 11 | # Replace Unreleased link with version number in CHANGELOG.md 12 | [[pre-release-replacements]] 13 | file = "CHANGELOG.md" 14 | search = "\\[Unreleased\\]:" 15 | replace = "[{{version}}]:" 16 | exactly = 1 17 | 18 | # Add next Unreleased header in CHANGELOG.md 19 | [[pre-release-replacements]] 20 | file = "CHANGELOG.md" 21 | search = "" 22 | replace = "\n\n## [Unreleased]\n\nWIP" 23 | exactly = 1 24 | 25 | # Replace footer comparison link in CHANGELOG.md 26 | [[pre-release-replacements]] 27 | file = "CHANGELOG.md" 28 | search = "\\.\\.\\.HEAD" 29 | replace = "...v{{version}}" 30 | exactly = 1 31 | 32 | # Add next Unreleased comparison link in CHANGELOG.md 33 | [[pre-release-replacements]] 34 | file = "CHANGELOG.md" 35 | search = "" 36 | replace = "\n[Unreleased]: https://github.com/strowk/synf/compare/v{{version}}...HEAD" 37 | exactly = 1 -------------------------------------------------------------------------------- /examples/kotlin/README.md: -------------------------------------------------------------------------------- 1 | # MCP Kotlin Server Sample 2 | 3 | A sample implementation of an MCP (Model Communication Protocol) server in Kotlin that demonstrates different server configurations and transport methods. 4 | 5 | ## Features 6 | 7 | - Multiple server operation modes: 8 | - Standard I/O server 9 | - SSE (Server-Sent Events) server with plain configuration 10 | - SSE server using Ktor plugin 11 | - Built-in capabilities for: 12 | - Prompts management 13 | - Resources handling 14 | - Tools integration 15 | 16 | ## Getting Started 17 | 18 | ### Running the Server 19 | 20 | To run the server in SSE mode on the port 3001, run: 21 | 22 | ```bash 23 | ./gradlew run 24 | ``` 25 | 26 | ### Connecting to the Server 27 | 28 | For SSE servers (both plain and Ktor plugin versions): 29 | 1. Start the server 30 | 2. Use the MCP inspector to connect to `http://localhost:/sse` 31 | 32 | ## Server Capabilities 33 | 34 | - **Prompts**: Supports prompt management with list change notifications 35 | - **Resources**: Includes subscription support and list change notifications 36 | - **Tools**: Supports tool management with list change notifications 37 | 38 | ## Implementation Details 39 | 40 | The server is implemented using: 41 | - Ktor for HTTP server functionality 42 | - Kotlin coroutines for asynchronous operations 43 | - SSE for real-time communication 44 | - Standard I/O for command-line interface 45 | -------------------------------------------------------------------------------- /examples/python/synf.toml: -------------------------------------------------------------------------------- 1 | 2 | # language is used to determine the default paths to watch for changes 3 | # and the default command to run the server. 4 | # Possible values are "typescript", "python", "kotlin" and "golang" 5 | language = "python" 6 | 7 | # Resending resource subscriptions can be enabled to make synf 8 | # parse all incoming requests and cache any resource subscriptions 9 | # and later resend them after server restart, defaults to false 10 | # resend_resource_subscriptions = false 11 | 12 | [build] 13 | # command and args are used to specify the command to build the server after changes. 14 | # These are the default values for python: 15 | 16 | # command = "" 17 | # args = [""] 18 | 19 | [run] 20 | # command and args are used to specify the command to run the server 21 | # during development after it has been rebuilt 22 | 23 | command = "uv" 24 | args = ["run", "mcp-server-test"] 25 | 26 | [watch] 27 | # Watch configurations are used to specify the files and directories to watch for changes 28 | # when hot reloading the server during development 29 | 30 | # default_paths are the paths that are watched by default 31 | # and are defined by the language that is being used. 32 | # You can override the default paths by specifying them here. 33 | # These are the paths that are watched by default for python: 34 | 35 | # default_paths = ["src", "pyproject.toml"] 36 | 37 | # extra_paths are the paths that are watched in addition to the default paths. 38 | # You can use it to add more paths to watch for changes besides the default paths. 39 | # extra_paths = [] 40 | -------------------------------------------------------------------------------- /examples/golang/synf.toml: -------------------------------------------------------------------------------- 1 | 2 | # language is used to determine the default paths to watch for changes 3 | # and the default command to run the server. 4 | # Possible values are "typescript", "python", "kotlin" and "golang" 5 | language = "golang" 6 | 7 | # Resending resource subscriptions can be enabled to make synf 8 | # parse all incoming requests and cache any resource subscriptions 9 | # and later resend them after server restart, defaults to false 10 | # resend_resource_subscriptions = false 11 | 12 | [build] 13 | # command and args are used to specify the command to build the server after changes. 14 | # These are the default values for golang: 15 | 16 | # command = "" 17 | # args = [""] 18 | 19 | [run] 20 | # command and args are used to specify the command to run the server 21 | # during development after it has been rebuilt 22 | # These are the default values for golang: 23 | 24 | # command = "go" 25 | # args = ["run"] 26 | 27 | [watch] 28 | # Watch configurations are used to specify the files and directories to watch for changes 29 | # when hot reloading the server during development 30 | 31 | # default_paths are the paths that are watched by default 32 | # and are defined by the language that is being used. 33 | # You can override the default paths by specifying them here. 34 | # These are the paths that are watched by default for golang: 35 | 36 | # default_paths = ["go.mod"] 37 | 38 | # extra_paths are the paths that are watched in addition to the default paths. 39 | # You can use it to add more paths to watch for changes besides the default paths. 40 | # extra_paths = [] 41 | -------------------------------------------------------------------------------- /examples/kotlin/synf.toml: -------------------------------------------------------------------------------- 1 | 2 | # language is used to determine the default paths to watch for changes 3 | # and the default command to run the server. 4 | # Possible values are "typescript", "python", "kotlin" and "golang" 5 | language = "kotlin" 6 | 7 | # Resending resource subscriptions can be enabled to make synf 8 | # parse all incoming requests and cache any resource subscriptions 9 | # and later resend them after server restart, defaults to false 10 | # resend_resource_subscriptions = false 11 | 12 | [build] 13 | # command and args are used to specify the command to build the server after changes. 14 | # These are the default values for kotlin: 15 | 16 | # command = "" 17 | # args = [""] 18 | 19 | [run] 20 | # command and args are used to specify the command to run the server 21 | # during development after it has been rebuilt 22 | # These are the default values for kotlin: 23 | 24 | # command = "./gradlew" 25 | # args = ["run"] 26 | 27 | [watch] 28 | # Watch configurations are used to specify the files and directories to watch for changes 29 | # when hot reloading the server during development 30 | 31 | # default_paths are the paths that are watched by default 32 | # and are defined by the language that is being used. 33 | # You can override the default paths by specifying them here. 34 | # These are the paths that are watched by default for kotlin: 35 | 36 | # default_paths = ["src", "build.gradle.kts", "gradle.properties"] 37 | 38 | # extra_paths are the paths that are watched in addition to the default paths. 39 | # You can use it to add more paths to watch for changes besides the default paths. 40 | # extra_paths = [] 41 | -------------------------------------------------------------------------------- /examples/typescript/synf.toml: -------------------------------------------------------------------------------- 1 | 2 | # language is used to determine the default paths to watch for changes 3 | # and the default command to run the server. 4 | # Possible values are "typescript", "python", "kotlin" and "golang" 5 | language = "typescript" 6 | 7 | # Resending resource subscriptions can be enabled to make synf 8 | # parse all incoming requests and cache any resource subscriptions 9 | # and later resend them after server restart, defaults to false 10 | # resend_resource_subscriptions = false 11 | 12 | [build] 13 | # command and args are used to specify the command to build the server after changes. 14 | # These are the default values for typescript: 15 | 16 | # command = "npm" 17 | # args = ["run", "build"] 18 | 19 | [run] 20 | # command and args are used to specify the command to run the server 21 | # during development after it has been rebuilt 22 | # These are the default values for typescript: 23 | 24 | # command = "node" 25 | # args = ["build/index.js"] 26 | 27 | [watch] 28 | # Watch configurations are used to specify the files and directories to watch for changes 29 | # when hot reloading the server during development 30 | 31 | # default_paths are the paths that are watched by default 32 | # and are defined by the language that is being used. 33 | # You can override the default paths by specifying them here. 34 | # These are the paths that are watched by default for typescript: 35 | 36 | # default_paths = ["src", "package.json"] 37 | 38 | # extra_paths are the paths that are watched in addition to the default paths. 39 | # You can use it to add more paths to watch for changes besides the default paths. 40 | # extra_paths = [] 41 | -------------------------------------------------------------------------------- /src/config.rs: -------------------------------------------------------------------------------- 1 | use std::{ 2 | fmt::{Display, Formatter}, 3 | path::Path, 4 | }; 5 | 6 | use serde::Deserialize; 7 | use toml; 8 | 9 | #[derive(Deserialize, Debug, PartialEq, Clone)] 10 | pub(crate) enum Language { 11 | #[serde(rename = "typescript")] 12 | Typescript, 13 | #[serde(rename = "python")] 14 | Python, 15 | #[serde(rename = "golang")] 16 | Golang, 17 | #[serde(rename = "kotlin")] 18 | Kotlin, 19 | } 20 | 21 | impl Display for Language { 22 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { 23 | match self { 24 | Language::Typescript => write!(f, "typescript"), 25 | Language::Python => write!(f, "python"), 26 | Language::Golang => write!(f, "golang"), 27 | Language::Kotlin => write!(f, "kotlin"), 28 | } 29 | } 30 | } 31 | 32 | #[derive(Deserialize)] 33 | pub(crate) struct Config { 34 | pub(crate) language: Language, 35 | pub(crate) watch: Option, 36 | pub(crate) resend_resource_subscriptions: Option, 37 | pub(crate) build: Option, 38 | pub(crate) run: Option, 39 | } 40 | 41 | #[derive(Deserialize)] 42 | pub(crate) struct CommandConfig { 43 | pub(crate) command: Option, 44 | pub(crate) args: Option>, 45 | } 46 | 47 | #[derive(Deserialize)] 48 | pub(crate) struct Watch { 49 | pub(crate) default_paths: Option>, 50 | pub(crate) extra_paths: Option>, 51 | } 52 | 53 | pub(crate) fn read_from_toml(path: &Path) -> Result { 54 | let path = path.join("synf.toml"); 55 | let toml_str = std::fs::read_to_string(path)?; 56 | let config: Config = toml::from_str(&toml_str)?; 57 | Ok(config) 58 | } 59 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | use std::{path::Path, sync::mpsc}; 2 | 3 | use argh::FromArgs; 4 | use eyre::Context; 5 | 6 | mod config; 7 | mod init; 8 | mod runner; 9 | mod utils; 10 | 11 | #[derive(FromArgs)] 12 | /// Tool for MCP Server hot reloading 13 | struct Synf { 14 | #[argh(subcommand)] 15 | sub: Subcommand, 16 | } 17 | 18 | #[derive(FromArgs, PartialEq, Debug)] 19 | #[argh(subcommand)] 20 | enum Subcommand { 21 | Dev(Dev), 22 | Init(Init), 23 | } 24 | 25 | #[derive(FromArgs, PartialEq, Debug)] 26 | /// Run MCP server for development with hot reloading 27 | #[argh(subcommand, name = "dev")] 28 | struct Dev { 29 | #[argh(positional)] 30 | path: Option, 31 | } 32 | 33 | #[derive(FromArgs, PartialEq, Debug)] 34 | /// Initialize project by preparing synf.toml file 35 | #[argh(subcommand, name = "init")] 36 | struct Init { 37 | #[argh(positional)] 38 | path: Option, 39 | } 40 | 41 | fn main() -> color_eyre::eyre::Result<()> { 42 | color_eyre::install()?; 43 | let synf: Synf = argh::from_env(); 44 | match synf.sub { 45 | Subcommand::Init(Init { path }) => { 46 | return init::run(path); 47 | } 48 | Subcommand::Dev(Dev { path }) => { 49 | let folder = if let Some(path) = path { 50 | path 51 | } else { 52 | String::from(".") 53 | }; 54 | 55 | let path = Path::new(&folder); 56 | utils::validate_path(path)?; 57 | let cfg = 58 | config::read_from_toml(path).context("failed to read config from synf.toml")?; 59 | 60 | runner::Runner::new(path.to_path_buf(), cfg)?; 61 | 62 | let (tx, rx) = mpsc::channel::<()>(); 63 | 64 | ctrlc::set_handler(move || tx.send(()).expect("Could not send signal on channel.")) 65 | .expect("Error setting Ctrl-C handler"); 66 | 67 | eprintln!("Use Ctrl-C to exit."); 68 | rx.recv().expect("Could not receive from stopping channel."); 69 | } 70 | } 71 | 72 | Ok(()) 73 | } 74 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | THESYSTEMIS="unknown-linux-gnu" 4 | POSTFIX="" 5 | 6 | if [[ "$OSTYPE" == "linux-gnu"* ]]; then 7 | THESYSTEMIS="unknown-linux-gnu" 8 | elif [[ "$OSTYPE" == "darwin"* ]]; then 9 | THESYSTEMIS="apple-darwin" 10 | elif [[ "$OSTYPE" == "cygwin" ]]; then 11 | THESYSTEMIS="pc-windows-gnu" 12 | elif [[ "$OSTYPE" == "msys" ]]; then 13 | THESYSTEMIS="pc-windows-gnu" 14 | elif [[ "$OSTYPE" == "win32" ]]; then 15 | THESYSTEMIS="pc-windows-gnu" 16 | fi 17 | 18 | if [[ "$THESYSTEMIS" == "unknown-linux-gnu" ]]; then 19 | libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1) 20 | if ! [ -z $libc ]; then 21 | THESYSTEMIS="unknown-linux-musl" 22 | fi 23 | fi 24 | 25 | if [[ "$THESYSTEMIS" == "pc-windows-gnu" ]]; then 26 | POSTFIX=".exe" 27 | fi 28 | 29 | echo "The system is $THESYSTEMIS" 30 | ARCH="$(uname -m)" 31 | echo "architecture is $ARCH" 32 | 33 | BUILD="${ARCH}-${THESYSTEMIS}" 34 | DOWNLOAD_URL="$(curl https://api.github.com/repos/strowk/synf/releases/latest | grep browser_download_url | grep ${BUILD} | cut -d '"' -f 4 )" 35 | 36 | if [[ -z "$DOWNLOAD_URL" ]]; then 37 | echo "No prebuilt binary found for $BUILD" 38 | echo "Check out existing builds in https://github.com/strowk/synf/releases/latest" 39 | echo "Or you could build from source" 40 | echo "Refer to README in https://github.com/strowk/synf#from-sources for more information" 41 | exit 1 42 | fi 43 | 44 | echo "Downloading from $DOWNLOAD_URL" 45 | curl "$DOWNLOAD_URL" -Lo ./synf-archive.tgz 46 | mkdir -p ./synf-install 47 | tar -xzf ./synf-archive.tgz -C ./synf-install 48 | 49 | INSTALL_SOURCE="./synf-install/target/${BUILD}/release/synf${POSTFIX}" 50 | INSTALL_TARGET="/usr/local/bin/synf" 51 | 52 | chmod +x "${INSTALL_SOURCE}" 53 | 54 | SUDO_PREFIX="sudo" 55 | 56 | if [[ "$THESYSTEMIS" == "pc-windows-gnu" ]]; then 57 | mkdir -p /usr/local/bin 58 | SUDO_PREFIX="" 59 | fi 60 | 61 | # if set environment variable NO_SUDO, then don't use sudo 62 | if [[ "$NO_SUDO" == "1" ]]; then 63 | SUDO_PREFIX="" 64 | fi 65 | 66 | ${SUDO_PREFIX} mv "${INSTALL_SOURCE}" "${INSTALL_TARGET}${POSTFIX}" 67 | 68 | rm synf-install/ -r 69 | rm synf-archive.tgz 70 | 71 | echo "synf is installed, checking by running 'synf --help'" 72 | synf --help -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file. 4 | The format is based on [Keep a Changelog](http://keepachangelog.com/) 5 | and this project adheres to [Semantic Versioning](http://semver.org/). 6 | 7 | 8 | 9 | ## [Unreleased] 10 | 11 | WIP 12 | 13 | ## [0.2.5] - 2025-04-23 14 | 15 | ### Fixed 16 | 17 | - Correct debouncing logic to trigger reload only once after multiple changes are detected in the same interval. 18 | 19 | ## [0.2.4] - 2025-04-23 20 | 21 | ### Fixed 22 | 23 | - Corrected wrong initialized notification. 24 | 25 | ## [0.2.3] - 2025-04-12 26 | 27 | - bump: crossbeam channel dependency to 0.5.15. 28 | 29 | ## [0.2.2] - 2025-03-30 30 | 31 | ### Fixed 32 | 33 | - Fixed when configuration in `synf.toml` was ignored for run command, by @ezyang. 34 | 35 | ## [0.2.1] - 2025-01-08 36 | 37 | ### Fixed 38 | 39 | - Correctly reading configuration for default_paths and extra_paths. 40 | - Correctly reading configuration for run command. 41 | 42 | ## [0.2.0] - 2025-01-07 43 | 44 | ### Changed 45 | 46 | - Build command output is not shown in stderr anymore. 47 | 48 | ### Fixed 49 | 50 | - Sometimes `synf dev` would get stuck on Windows if using powershell for build command. 51 | 52 | ### Added 53 | 54 | - `synf dev` now supports tracking and resending resource subscriptions after server restart. 55 | - `synf init` now adds comment about resend_resource_subscriptions to `synf.toml` file. 56 | 57 | ## [0.1.1] - 2025-01-05 58 | 59 | ### Fixed 60 | 61 | - Removed log message from stdout. 62 | - Corrected starting node process in Windows. 63 | - Removed extra endline from initialize output. 64 | 65 | ## [0.1.0] - 2025-01-05 66 | 67 | ### Added 68 | 69 | - `synf init` command would bootstrap initial `synf.toml` file. 70 | 71 | ## [0.0.1] - 2025-01-01 72 | 73 | ### Added 74 | 75 | - Initial release. 76 | - Command `synf dev [path]` would start MCP dev server. 77 | - `synf dev` supports kotlin, typescript, python and golang. 78 | - `synf dev` watches default and extra configured dirs/files for changes to trigger server restart. 79 | - `synf dev` sends list_updated for tools/prompts/resources after server restart. 80 | 81 | 82 | [Unreleased]: https://github.com/strowk/synf/compare/v0.2.5...HEAD 83 | [0.2.5]: https://github.com/strowk/synf/compare/v0.2.4...v0.2.5 84 | [0.2.4]: https://github.com/strowk/synf/compare/v0.2.3...v0.2.4 85 | [0.2.3]: https://github.com/strowk/synf/compare/v0.2.2...v0.2.3 86 | [0.2.2]: https://github.com/strowk/synf/compare/v0.2.1...v0.2.2 87 | [0.2.1]: https://github.com/strowk/synf/compare/v0.2.0...v0.2.1 88 | [0.2.0]: https://github.com/strowk/synf/compare/v0.1.1...v0.2.0 89 | [0.1.1]: https://github.com/strowk/synf/compare/v0.1.0...v0.1.1 90 | [0.1.0]: https://github.com/strowk/synf/compare/v0.0.1...v0.1.0 91 | [0.1.0]: https://github.com/strowk/synf/releases/tag/v0.1.0 92 | -------------------------------------------------------------------------------- /examples/kotlin/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /Makefile.toml: -------------------------------------------------------------------------------- 1 | [env] 2 | CACHE_TO = { value = "type=local,dest=../../docker-cache", condition = { env_not_set = [ 3 | "CACHE_TO", 4 | ] } } 5 | CACHE_FROM = { value = "type=local,src=../../docker-cache", condition = { env_not_set = [ 6 | "CACHE_FROM", 7 | ] } } 8 | 9 | [tasks.install-changelog-lint-deps] 10 | script_runner = "@shell" 11 | cwd = "changelog" 12 | script = ''' 13 | npm ci --silent 14 | ''' 15 | 16 | [tasks.lint-changelog] 17 | dependencies = ["install-changelog-lint-deps"] 18 | command = "node" 19 | args = ["./changelog/lint.mjs"] 20 | 21 | [tasks.install] 22 | command = "cargo" 23 | args = ["install", "--path", "./"] 24 | 25 | # Cross builds for linux, windows and mac 26 | 27 | [tasks.install-cross] 28 | command = "cargo" 29 | args = ["install", "cross", "--git", "https://github.com/cross-rs/cross"] 30 | 31 | [tasks.build-all] 32 | dependencies = [ 33 | "build-linux_x86_64", 34 | "build-linux_arm", 35 | "build-linux_x86_64_musl", 36 | "build-linux_arm_musl", 37 | "build-windows_x86_64", 38 | "build-mac_x86_64", 39 | "build-mac_arm", 40 | ] 41 | 42 | [tasks.get-version-for-github] 43 | command = "bash" 44 | args = [ 45 | "-c", 46 | "echo CARGO_BUILD_VERSION=${CARGO_MAKE_PROJECT_VERSION} >> $GITHUB_OUTPUT", 47 | ] 48 | 49 | # Building binaries for linux 50 | 51 | [tasks.build-linux_x86_64] 52 | command = "cross" 53 | args = ["build", "--target", "x86_64-unknown-linux-gnu", "--release"] 54 | 55 | [tasks.build-linux_x86_64_profiling] 56 | command = "cross" 57 | args = [ 58 | "build", 59 | "--target", 60 | "x86_64-unknown-linux-gnu", 61 | "--profile", 62 | "profiling", 63 | ] 64 | 65 | [tasks.build-linux_arm] 66 | command = "cross" 67 | args = ["build", "--target", "aarch64-unknown-linux-gnu", "--release"] 68 | 69 | [tasks.build-linux_x86_64_musl] 70 | command = "cross" 71 | args = ["build", "--target", "x86_64-unknown-linux-musl", "--release"] 72 | 73 | [tasks.build-linux_arm_musl] 74 | command = "cross" 75 | args = ["build", "--target", "aarch64-unknown-linux-musl", "--release"] 76 | 77 | # Building binary for windows x86_64 78 | 79 | [tasks.build-windows_x86_64] 80 | command = "cross" 81 | args = ["build", "--target", "x86_64-pc-windows-gnu", "--release"] 82 | 83 | # Building binaries for MacOS 84 | 85 | [tasks.get-cross] 86 | dependencies = ["clone-cross", "checkout-cross"] 87 | 88 | [tasks.clone-cross] 89 | condition = { files_not_exist = ["${CARGO_MAKE_WORKING_DIRECTORY}/cross"] } 90 | command = "git" 91 | args = ["clone", "https://github.com/cross-rs/cross.git"] 92 | 93 | [tasks.checkout-cross] 94 | cwd = "./cross" 95 | command = "git" 96 | args = ["checkout", "3bfc6d54c817a2991f610d258f3290906c97474f"] 97 | 98 | [tasks.get-cross-toolchains] 99 | dependencies = ["get-cross"] 100 | command = "git" 101 | condition = { files_not_exist = [ 102 | "${CARGO_MAKE_WORKING_DIRECTORY}/docker/cross-toolchains/README.md", 103 | ] } 104 | cwd = "./cross" 105 | args = ["submodule", "update", "--init", "--remote"] 106 | 107 | [tasks.create-docker-engine] 108 | ignore_errors = true 109 | command = "docker" 110 | args = [ 111 | "buildx", 112 | "create", 113 | "--use", 114 | "--name", 115 | "docker-container", 116 | "--driver=docker-container", 117 | ] 118 | 119 | [tasks.cross-image-mac_arm] 120 | dependencies = ["get-cross-toolchains", "create-docker-engine"] 121 | command = "cargo" 122 | cwd = "./cross" 123 | args = [ 124 | "build-docker-image", 125 | "aarch64-apple-darwin-cross", 126 | "--tag", 127 | "local", 128 | "--build-arg", 129 | "MACOS_SDK_URL=https://storage.googleapis.com/ory.sh/build-assets/MacOSX11.3.sdk.tar.xz", 130 | "--cache-to", 131 | "${CACHE_TO}", 132 | "--cache-from", 133 | "${CACHE_FROM}", 134 | # Overriding git reference supplied by Github 135 | # to avoid unnecessary struggle with name of docker image 136 | "--ref-type", 137 | "branch", 138 | "--ref-name", 139 | "main", 140 | ] 141 | 142 | [tasks.build-mac_arm] 143 | dependencies = ["cross-image-mac_arm"] 144 | command = "cross" 145 | args = ["build", "--target", "aarch64-apple-darwin", "--release"] 146 | 147 | [tasks.cross-image-mac_x86_64] 148 | dependencies = ["get-cross-toolchains", "create-docker-engine"] 149 | command = "cargo" 150 | cwd = "./cross" 151 | args = [ 152 | "build-docker-image", 153 | "x86_64-apple-darwin-cross", 154 | "--tag", 155 | "local", 156 | "--build-arg", 157 | "MACOS_SDK_URL=https://github.com/joseluisq/macosx-sdks/releases/download/10.12/MacOSX10.12.sdk.tar.xz", 158 | "--cache-to", 159 | "${CACHE_TO}", 160 | "--cache-from", 161 | "${CACHE_FROM}", 162 | # Overriding git reference supplied by Github 163 | # to avoid unnecessary struggle with name of docker image 164 | "--ref-type", 165 | "branch", 166 | "--ref-name", 167 | "main", 168 | ] 169 | 170 | [tasks.build-mac_x86_64] 171 | dependencies = ["cross-image-mac_x86_64"] 172 | command = "cross" 173 | args = ["build", "--target", "x86_64-apple-darwin", "--release"] -------------------------------------------------------------------------------- /src/init.rs: -------------------------------------------------------------------------------- 1 | use std::{fs, path::Path}; 2 | 3 | use eyre::Context; 4 | use inquire::Select; 5 | 6 | use crate::{config::{self, Language}, runner, utils}; 7 | 8 | fn detect_language(folder: &Path) -> config::Language { 9 | let has_package_json = folder.join("package.json").exists(); 10 | if has_package_json { 11 | return config::Language::Typescript; 12 | } 13 | let has_pyproject_toml = folder.join("pyproject.toml").exists(); 14 | if has_pyproject_toml { 15 | return config::Language::Python; 16 | } 17 | let has_build_gradle = folder.join("build.gradle").exists(); 18 | let has_build_gradle_kts = folder.join("build.gradle.kts").exists(); 19 | if has_build_gradle || has_build_gradle_kts { 20 | return config::Language::Kotlin; 21 | } 22 | let has_go_mod = folder.join("go.mod").exists(); 23 | if has_go_mod { 24 | return config::Language::Golang; 25 | } 26 | 27 | config::Language::Typescript 28 | } 29 | 30 | pub(crate) fn run(path: Option) -> eyre::Result<()> { 31 | let folder = if let Some(path) = path { 32 | path 33 | } else { 34 | String::from(".") 35 | }; 36 | 37 | let path = Path::new(&folder); 38 | utils::validate_path(path)?; 39 | 40 | let mut language = detect_language(path); 41 | 42 | loop { 43 | let mut options: Vec<&Language> = vec![ 44 | &Language::Typescript, 45 | &Language::Python, 46 | &Language::Kotlin, 47 | &Language::Golang, 48 | ]; 49 | 50 | // sort to put detected language first 51 | options.sort_by(|a, b| { 52 | if *a == &language { 53 | std::cmp::Ordering::Less 54 | } else if *b == &language { 55 | std::cmp::Ordering::Greater 56 | } else { 57 | std::cmp::Ordering::Equal 58 | } 59 | }); 60 | 61 | let ans = Select::new(&format!("Detected language: '{language}', confirm or change:"), options).prompt(); 62 | 63 | match ans { 64 | Ok(choice) => { 65 | language = choice.clone(); 66 | break; 67 | }, 68 | Err(_) => println!("There was an error, please try again"), 69 | } 70 | } 71 | 72 | let mut conf_buf = String::from( 73 | r####" 74 | # language is used to determine the default paths to watch for changes 75 | # and the default command to run the server. 76 | # Possible values are "typescript", "python", "kotlin" and "golang" 77 | "####, 78 | ); 79 | 80 | match language { 81 | config::Language::Typescript => { 82 | conf_buf.push_str(r#"language = "typescript""#); 83 | } 84 | config::Language::Python => { 85 | conf_buf.push_str(r#"language = "python""#); 86 | } 87 | config::Language::Kotlin => { 88 | conf_buf.push_str(r#"language = "kotlin""#); 89 | } 90 | config::Language::Golang => { 91 | conf_buf.push_str(r#"language = "golang""#); 92 | } 93 | } 94 | 95 | conf_buf.push_str("\n"); 96 | 97 | conf_buf.push_str(r#" 98 | # Resending resource subscriptions can be enabled to make synf 99 | # parse all incoming requests and cache any resource subscriptions 100 | # and later resend them after server restart, defaults to false 101 | # resend_resource_subscriptions = false 102 | 103 | "#); 104 | 105 | conf_buf.push_str(&format!( 106 | "[build] 107 | # command and args are used to specify the command to build the server after changes. 108 | # These are the default values for {language}: 109 | " 110 | )); 111 | 112 | let (build_command, build_args) = runner::Runner::get_build_command(&language); 113 | 114 | conf_buf.push_str(&format!( 115 | r#" 116 | # command = "{}" 117 | # args = ["{}"] 118 | "#, 119 | build_command, 120 | build_args.join("\", \"") 121 | )); 122 | 123 | conf_buf.push_str(&format!( 124 | r#" 125 | [run] 126 | # command and args are used to specify the command to run the server 127 | # during development after it has been rebuilt 128 | # These are the default values for {language}: 129 | "# 130 | )); 131 | 132 | let (run_command, run_args) = runner::Runner::get_run_command(&language); 133 | 134 | conf_buf.push_str(&format!( 135 | r#" 136 | # command = "{}" 137 | # args = ["{}"] 138 | "#, 139 | run_command, 140 | run_args.join("\", \"") 141 | )); 142 | 143 | conf_buf.push_str(&format!( 144 | r#" 145 | [watch] 146 | # Watch configurations are used to specify the files and directories to watch for changes 147 | # when hot reloading the server during development 148 | 149 | # default_paths are the paths that are watched by default 150 | # and are defined by the language that is being used. 151 | # You can override the default paths by specifying them here. 152 | # These are the paths that are watched by default for {language}: 153 | "# 154 | )); 155 | 156 | let default_paths = runner::Runner::get_default_watch_paths(&language); 157 | 158 | conf_buf.push_str(&format!( 159 | r#" 160 | # default_paths = ["{}"] 161 | "#, 162 | default_paths.join("\", \"") 163 | )); 164 | 165 | conf_buf.push_str(&format!( 166 | r#" 167 | # extra_paths are the paths that are watched in addition to the default paths. 168 | # You can use it to add more paths to watch for changes besides the default paths. 169 | # extra_paths = [] 170 | "# 171 | )); 172 | 173 | let path = path.join("synf.toml"); 174 | 175 | fs::write(path, conf_buf).context("Failed to write synf.toml file")?; 176 | 177 | Ok(()) 178 | } 179 | -------------------------------------------------------------------------------- /.github/workflows/build.yaml: -------------------------------------------------------------------------------- 1 | on: 2 | # schedule: 3 | # Run job every third day to ensure that caches won't be deleted 4 | # - cron: '5 7 */3 * *' 5 | push: 6 | braches: 7 | - main 8 | 9 | permissions: 10 | contents: write 11 | packages: write 12 | 13 | jobs: 14 | # validate: 15 | # runs-on: ubuntu-latest 16 | # steps: 17 | # - uses: actions/checkout@v4 18 | # - name: Lint changelog 19 | # run: |- 20 | # echo Checking changelog file... 21 | # set -e 22 | # npm ci --prefix changelog --silent 23 | # node changelog/lint.mjs 24 | 25 | build: 26 | runs-on: ubuntu-latest 27 | strategy: 28 | matrix: 29 | include: 30 | - make: build-linux_x86_64 31 | target: x86_64-unknown-linux-gnu 32 | docker_platform: linux/amd64 33 | docker_base: debian 34 | - make: build-linux_arm 35 | target: aarch64-unknown-linux-gnu 36 | docker_platform: linux/arm64 37 | docker_base: debian 38 | - make: build-linux_x86_64_musl 39 | target: x86_64-unknown-linux-musl 40 | docker_platform: linux/amd64 41 | docker_base: alpine 42 | - make: build-linux_arm_musl 43 | target: aarch64-unknown-linux-musl 44 | docker_platform: linux/arm64 45 | docker_base: alpine 46 | - make: build-windows_x86_64 47 | target: x86_64-pc-windows-gnu 48 | - make: build-mac_x86_64 49 | target: x86_64-apple-darwin 50 | cache: mac_x86_64 51 | - make: build-mac_arm 52 | target: aarch64-apple-darwin 53 | cache: mac_arm 54 | steps: 55 | - uses: actions/checkout@v4 56 | - name: Cache 57 | uses: actions/cache@v3 58 | with: 59 | key: build-${{matrix.target}} 60 | path: | 61 | ./target 62 | ~/.cargo 63 | ./cross 64 | - name: Expose GitHub Runtime 65 | uses: crazy-max/ghaction-github-runtime@v2 66 | # Create target folder beforehand, as otherwise it would be 67 | # created from container and would not have right user 68 | - run: mkdir -p ./target 69 | - run: if ! ( which cargo-make &>/dev/null ) ; then cargo install cargo-make ; fi 70 | shell: bash 71 | - run: if ! ( which cross &>/dev/null ) ; then cargo make install-cross ; fi 72 | shell: bash 73 | - run: cargo make ${{ matrix.make }} 74 | env: 75 | CACHE_TO: type=gha,mode=max,scope=${{ matrix.cache }} 76 | CACHE_FROM: type=gha,scope=${{ matrix.cache }} 77 | - id: cargo-version 78 | if: matrix.docker_platform != null 79 | run: cargo make get-version-for-github 80 | - name: Set up Docker Buildx 81 | if: matrix.docker_platform != null 82 | uses: docker/setup-buildx-action@v3 83 | - name: Login to GitHub Container Registry 84 | if: matrix.docker_platform != null 85 | uses: docker/login-action@v3 86 | with: 87 | registry: ghcr.io 88 | username: ${{ github.actor }} 89 | password: ${{ secrets.GITHUB_TOKEN }} 90 | - run: |- 91 | shopt -s extglob 92 | tar -czf synf-${{ matrix.target }}.tar.gz target/${{ matrix.target }}/release/synf?(.exe) 93 | - name: Upload build archive 94 | uses: actions/upload-artifact@v4 95 | with: 96 | name: ${{ matrix.target }}-build-archive 97 | path: synf-${{ matrix.target }}.tar.gz 98 | retention-days: 1 99 | 100 | publish: 101 | name: publish 102 | runs-on: ubuntu-latest 103 | needs: [ build ] 104 | # needs: [ build, validate ] 105 | steps: 106 | - uses: actions/checkout@v4 107 | - name: Download all workflow run artifacts 108 | uses: actions/download-artifact@v4 109 | - name: Get version from tag 110 | id: tag_name 111 | if: > 112 | github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') 113 | run: | 114 | echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} 115 | shell: bash 116 | - name: Read changelog 117 | id: changelog-reader 118 | if: > 119 | github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') 120 | uses: mindsers/changelog-reader-action@v2 121 | with: 122 | version: ${{ steps.tag_name.outputs.current_version }} 123 | path: ./CHANGELOG.md 124 | - run: mv *-build-archive/*.tar.gz ./ 125 | - name: Create GitHub release 126 | if: > 127 | github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') 128 | uses: softprops/action-gh-release@v1 129 | with: 130 | body: ${{ steps.changelog-reader.outputs.changes }} 131 | prerelease: ${{ startsWith(github.ref, 'refs/tags/v') && contains(github.ref_name, '-') }} 132 | draft: ${{ !startsWith(github.ref, 'refs/tags/v') && steps.changelog-reader.outputs.status == 'unreleased' }} 133 | files: | 134 | synf-*.tar.gz 135 | - uses: actions/checkout@v4 136 | with: 137 | ref: main 138 | - name: Update scoop 139 | run: bash scoop/update-manifest.sh 140 | - name: Commit changes 141 | if: > 142 | github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') 143 | run: | 144 | git config --local user.email "github-actions[bot]@users.noreply.github.com" 145 | git config --local user.name "github-actions[bot]" 146 | git add scoop 147 | git commit -m "Update scoop manifest" 148 | - name: Push changes 149 | if: > 150 | github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') 151 | uses: ad-m/github-push-action@v0.8.0 152 | with: 153 | github_token: ${{ secrets.GITHUB_TOKEN }} 154 | branch: main -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # synf - hot reload for MCP servers 2 | 3 | `synf` can help you developing MCP server by hot reloading it on file changes. 4 | 5 | It proxies stdio transport between MCP client and server and hot-reloads the server by rebuilding/restarting and refreshing the states (such as sending list_changed notifications). 6 | 7 | ## Usage 8 | 9 | Firstly you would need to initialize synf file using command `synf init` - run this in the folder with your project. It would automatically detect used language and ask confirmation. 10 | 11 | Once `synf init` have created `synf.toml` file, command `synf dev` can do following: 12 | 13 | - build and run your MCP server 14 | - wait for the first initialization request from client and cache it 15 | - watch for changes you make to files configurable within `synf.toml` 16 | - whenever you change watched files - rebuild and restart your server 17 | - repeat initialization request that was sent by client the first time 18 | - notify MCP client to repeat request for tools, prompts and resources 19 | - drop initialization response from server after restart, to avoid repeating it 20 | - if configured: cache resource subscriptions and resend them after restart 21 | 22 | You would need to configure the command `synf dev` to be run by client that you want to integrate with your server. Command takes path to folder with your project as first argument. 23 | 24 | Here is example for Claude Desktop: 25 | 26 | ```json 27 | { 28 | "mcpServers": { 29 | "synf_test": { 30 | "command": "synf", 31 | "args": [ 32 | "dev", 33 | "C:/work/synf/examples/typescript" 34 | ] 35 | } 36 | } 37 | } 38 | ``` 39 | 40 | Note: Claude Desktop appears to have a bug at the moment, where it ignores list_changed notification that synf is sending and list of tools and their descriptions would not be hot-reloaded when using that client. I expect that they would fix it eventually. 41 | 42 | In the meantime you can use VS Code Copilot, which supports tools reload correctly. 43 | 44 | ### Configuration for Windows 45 | 46 | If you are using Windows, you might need to configure `synf.toml` to use powershell for running some commands, depending on how programming language is installed for you. 47 | 48 | For example Node.js developers would have problems with `npm` since it might be provided as a cmd script rather than an executable. You can configure `synf.toml` to use powershell for running npm: 49 | 50 | ```toml 51 | [build] 52 | command = "powershell" 53 | args = ["npm run build"] 54 | ``` 55 | 56 | ## Installation 57 | 58 | ### Windows with [Scoop](https://github.com/ScoopInstaller/Scoop) 59 | 60 | ```bash 61 | scoop install https://raw.githubusercontent.com/strowk/synf/main/scoop/synf.json 62 | ``` 63 | 64 | , or if you already have it installed with scoop: 65 | 66 | ```bash 67 | scoop update synf 68 | ``` 69 | 70 | ### With bash script 71 | 72 | In bash shell run: 73 | 74 | ```bash 75 | curl -s https://raw.githubusercontent.com/strowk/synf/main/install.sh | bash 76 | ``` 77 | 78 | Should work in Linux bash, Windows Git Bash and MacOS. 79 | For Windows users: you might need to start Git Bash from Administrator. 80 | 81 | #### Disabling sudo 82 | 83 | By default the script would try to install synf to `/usr/local/bin` and would require sudo rights for that, 84 | but you can disable this behavior by setting `NO_SUDO` environment variable: 85 | 86 | ```bash 87 | curl -s https://raw.githubusercontent.com/strowk/synf/main/install.sh | NO_SUDO=1 bash 88 | ``` 89 | 90 | Sudo is disabled by default for Windows Git Bash. 91 | 92 | ### Manually 93 | 94 | Head to [latest release](https://github.com/strowk/synf/releases/latest), download archive for your OS/arch, unpack it and put binary somewhere in your PATH. 95 | 96 | ### From sources 97 | 98 | If your system/architecture is not supported by the script above, 99 | you can install Rust and install synf from sources: 100 | 101 | ```bash 102 | git clone https://github.com/strowk/synf 103 | cargo install --path ./synf 104 | ``` 105 | 106 | ## Under the hood 107 | 108 | ## Initialization 109 | 110 | When client connects to server, it sends initialization request that would look f.e like this: 111 | 112 | ```json 113 | { 114 | "jsonrpc": "2.0", 115 | "id": 1, 116 | "method": "initialize", 117 | "params": { 118 | "protocolVersion": "2024-11-05", 119 | "capabilities": {}, 120 | "clientInfo": { 121 | "name": "ExampleClient", 122 | "version": "1.0.0" 123 | } 124 | } 125 | } 126 | ``` 127 | 128 | `synf` would cache this request and repeat it after server restart, while also dropping the response from server, since the client already received it. 129 | 130 | On first run client also would send initialized notification looking like this: 131 | 132 | ```json 133 | { 134 | "jsonrpc": "2.0", 135 | "method": "notifications/initialized" 136 | } 137 | ``` 138 | 139 | When server restarted, `synf` would send same notification to server after initialization response is dropped. 140 | 141 | ### List Changed 142 | 143 | After server restarts, it might have new tools, prompts or resources. 144 | 145 | `synf` would notify client to repeat requests by sending such notifications: 146 | 147 | ```json 148 | {"method":"notifications/tools/list_changed","jsonrpc":"2.0"} 149 | {"method":"notifications/prompts/list_changed","jsonrpc":"2.0"} 150 | {"method":"notifications/resources/list_changed","jsonrpc":"2.0"} 151 | ``` 152 | 153 | Note that some clients might be bugged at the moment and would ignore these notifications, so you might need to manually restart them until the client is following specification correctly. 154 | 155 | ### Subscriptions 156 | 157 | The protocol supports optional subscriptions to resource changes. 158 | Clients can subscribe to specific resources and receive notifications when they change: 159 | 160 | Subscribe Request: 161 | 162 | ```json 163 | { 164 | "jsonrpc": "2.0", 165 | "id": 4, 166 | "method": "resources/subscribe", 167 | "params": { 168 | "uri": "file:///project/src/main.rs" 169 | } 170 | } 171 | ``` 172 | 173 | Update Notification: 174 | 175 | 176 | ```json 177 | { 178 | "jsonrpc": "2.0", 179 | "method": "notifications/resources/updated", 180 | "params": { 181 | "uri": "file:///project/src/main.rs" 182 | } 183 | } 184 | ``` 185 | 186 | `synf` can cache the resources subscribed to and would resend the subscriptions to server after restart. -------------------------------------------------------------------------------- /examples/kotlin/src/main/kotlin/Main.kt: -------------------------------------------------------------------------------- 1 | import io.ktor.http.* 2 | import io.ktor.server.application.* 3 | import io.ktor.server.cio.* 4 | import io.ktor.server.engine.* 5 | import io.ktor.server.response.* 6 | import io.ktor.server.routing.* 7 | import io.ktor.server.sse.* 8 | import io.ktor.util.collections.* 9 | import io.modelcontextprotocol.kotlin.sdk.* 10 | import io.modelcontextprotocol.kotlin.sdk.GetPromptResult 11 | import io.modelcontextprotocol.kotlin.sdk.Implementation 12 | import io.modelcontextprotocol.kotlin.sdk.PromptArgument 13 | import io.modelcontextprotocol.kotlin.sdk.PromptMessage 14 | import io.modelcontextprotocol.kotlin.sdk.Role 15 | import io.modelcontextprotocol.kotlin.sdk.ServerCapabilities 16 | import io.modelcontextprotocol.kotlin.sdk.Tool 17 | import io.modelcontextprotocol.kotlin.sdk.server.MCP 18 | import io.modelcontextprotocol.kotlin.sdk.server.SSEServerTransport 19 | import io.modelcontextprotocol.kotlin.sdk.server.Server 20 | import io.modelcontextprotocol.kotlin.sdk.server.ServerOptions 21 | import io.modelcontextprotocol.kotlin.sdk.server.StdioServerTransport 22 | import kotlinx.coroutines.CompletableDeferred 23 | import kotlinx.coroutines.Job 24 | import kotlinx.coroutines.runBlocking 25 | 26 | /** 27 | * Start sse-server mcp on port 3001. 28 | * 29 | * @param args 30 | * - "--stdio": Runs an MCP server using standard input/output. 31 | * - "--sse-server-ktor ": Runs an SSE MCP server using Ktor plugin (default if no argument is provided). 32 | * - "--sse-server ": Runs an SSE MCP server with a plain configuration. 33 | */ 34 | fun main(args: Array) { 35 | val command = args.firstOrNull() ?: "--sse-server-ktor" 36 | val port = args.getOrNull(1)?.toIntOrNull() ?: 3001 37 | when (command) { 38 | "--stdio" -> `run mcp server using stdio`() 39 | "--sse-server-ktor" -> `run sse mcp server using Ktor plugin`(port) 40 | "--sse-server" -> `run sse mcp server with plain configuration`(port) 41 | else -> { 42 | System.err.println("Unknown command: $command") 43 | } 44 | } 45 | } 46 | 47 | fun configureServer(): Server { 48 | val def = CompletableDeferred() 49 | 50 | val server = Server( 51 | Implementation( 52 | name = "mcp-kotlin test server", 53 | version = "0.1.0" 54 | ), 55 | ServerOptions( 56 | capabilities = ServerCapabilities( 57 | prompts = ServerCapabilities.Prompts(listChanged = true), 58 | resources = ServerCapabilities.Resources(subscribe = true, listChanged = true), 59 | tools = ServerCapabilities.Tools(listChanged = true), 60 | ) 61 | ), 62 | onCloseCallback = { 63 | def.complete(Unit) 64 | } 65 | ) 66 | 67 | server.addPrompt( 68 | name = "Kotlin Developer", 69 | description = "Develop small kotlin applications", 70 | arguments = listOf( 71 | PromptArgument( 72 | name = "Project Name", 73 | description = "Project name for the new project", 74 | required = true 75 | ) 76 | ) 77 | ) { request -> 78 | GetPromptResult( 79 | "Description for ${request.name}", 80 | messages = listOf( 81 | PromptMessage( 82 | role = Role.user, 83 | content = TextContent("Develop a kotlin project named ${request.arguments?.get("Project Name")}") 84 | ) 85 | ) 86 | ) 87 | } 88 | 89 | // Add a tool 90 | server.addTool( 91 | name = "Test io.modelcontextprotocol.kotlin.sdk.Tool", 92 | description = "A test tool", 93 | inputSchema = Tool.Input() 94 | ) { request -> 95 | CallToolResult( 96 | content = listOf(TextContent("Hello, world!")) 97 | ) 98 | } 99 | 100 | // Add a resource 101 | server.addResource( 102 | uri = "https://search.com/", 103 | name = "Web Search", 104 | description = "Web search engine", 105 | mimeType = "text/html" 106 | ) { request -> 107 | ReadResourceResult( 108 | contents = listOf( 109 | TextResourceContents("Placeholder content for ${request.uri}", request.uri, "text/html") 110 | ) 111 | ) 112 | } 113 | 114 | return server 115 | } 116 | 117 | fun `run mcp server using stdio`() { 118 | // Note: The server will handle listing prompts, tools, and resources automatically. 119 | // The handleListResourceTemplates will return empty as defined in the Server code. 120 | val server = configureServer() 121 | val transport = StdioServerTransport() 122 | 123 | runBlocking { 124 | server.connect(transport) 125 | println("Server running on stdio") 126 | val done = Job() 127 | server.onCloseCallback = { 128 | done.complete() 129 | } 130 | done.join() 131 | println("Server closed") 132 | } 133 | } 134 | 135 | fun `run sse mcp server with plain configuration`(port: Int): Unit = runBlocking { 136 | val servers = ConcurrentMap() 137 | println("Starting sse server on port $port. ") 138 | println("Use inspector to connect to the http://localhost:$port/sse") 139 | 140 | embeddedServer(CIO, host = "0.0.0.0", port = port) { 141 | install(SSE) 142 | routing { 143 | sse("/sse") { 144 | val transport = SSEServerTransport("/message", this) 145 | val server = configureServer() 146 | 147 | // For SSE, you can also add prompts/tools/resources if needed: 148 | // server.addTool(...), server.addPrompt(...), server.addResource(...) 149 | 150 | servers[transport.sessionId] = server 151 | 152 | server.onCloseCallback = { 153 | println("Server closed") 154 | servers.remove(transport.sessionId) 155 | } 156 | 157 | server.connect(transport) 158 | } 159 | post("/message") { 160 | println("Received Message") 161 | val sessionId: String = call.request.queryParameters["sessionId"]!! 162 | val transport = servers[sessionId]?.transport as? SSEServerTransport 163 | if (transport == null) { 164 | call.respond(HttpStatusCode.NotFound, "Session not found") 165 | return@post 166 | } 167 | 168 | transport.handlePostMessage(call) 169 | } 170 | } 171 | }.start(wait = true) 172 | } 173 | 174 | /** 175 | * Starts an SSE (Server Sent Events) MCP server using the Ktor framework and the specified port. 176 | * 177 | * The url can be accessed in the MCP inspector at [http://localhost:$port] 178 | * 179 | * @param port The port number on which the SSE MCP server will listen for client connections. 180 | * @return Unit This method does not return a value. 181 | */ 182 | fun `run sse mcp server using Ktor plugin`(port: Int): Unit = runBlocking { 183 | println("Starting sse server on port $port") 184 | println("Use inspector to connect to the http://localhost:$port/sse") 185 | 186 | embeddedServer(CIO, host = "0.0.0.0", port = port) { 187 | MCP { 188 | return@MCP configureServer() 189 | } 190 | } 191 | } -------------------------------------------------------------------------------- /examples/typescript/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mcp-quickstart-ts", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "mcp-quickstart-ts", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "dependencies": { 12 | "@modelcontextprotocol/sdk": "^1.0.3" 13 | }, 14 | "bin": { 15 | "weather": "build/index.js" 16 | }, 17 | "devDependencies": { 18 | "@types/node": "^22.10.0", 19 | "typescript": "^5.7.2" 20 | } 21 | }, 22 | "node_modules/@modelcontextprotocol/sdk": { 23 | "version": "1.0.4", 24 | "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.0.4.tgz", 25 | "integrity": "sha512-C+jw1lF6HSGzs7EZpzHbXfzz9rj9him4BaoumlTciW/IDDgIpweF/qiCWKlP02QKg5PPcgY6xY2WCt5y2tpYow==", 26 | "license": "MIT", 27 | "dependencies": { 28 | "content-type": "^1.0.5", 29 | "raw-body": "^3.0.0", 30 | "zod": "^3.23.8" 31 | } 32 | }, 33 | "node_modules/@types/node": { 34 | "version": "22.10.2", 35 | "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz", 36 | "integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==", 37 | "dev": true, 38 | "license": "MIT", 39 | "dependencies": { 40 | "undici-types": "~6.20.0" 41 | } 42 | }, 43 | "node_modules/bytes": { 44 | "version": "3.1.2", 45 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 46 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 47 | "license": "MIT", 48 | "engines": { 49 | "node": ">= 0.8" 50 | } 51 | }, 52 | "node_modules/content-type": { 53 | "version": "1.0.5", 54 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 55 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 56 | "license": "MIT", 57 | "engines": { 58 | "node": ">= 0.6" 59 | } 60 | }, 61 | "node_modules/depd": { 62 | "version": "2.0.0", 63 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 64 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 65 | "license": "MIT", 66 | "engines": { 67 | "node": ">= 0.8" 68 | } 69 | }, 70 | "node_modules/http-errors": { 71 | "version": "2.0.0", 72 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 73 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 74 | "license": "MIT", 75 | "dependencies": { 76 | "depd": "2.0.0", 77 | "inherits": "2.0.4", 78 | "setprototypeof": "1.2.0", 79 | "statuses": "2.0.1", 80 | "toidentifier": "1.0.1" 81 | }, 82 | "engines": { 83 | "node": ">= 0.8" 84 | } 85 | }, 86 | "node_modules/iconv-lite": { 87 | "version": "0.6.3", 88 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", 89 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", 90 | "license": "MIT", 91 | "dependencies": { 92 | "safer-buffer": ">= 2.1.2 < 3.0.0" 93 | }, 94 | "engines": { 95 | "node": ">=0.10.0" 96 | } 97 | }, 98 | "node_modules/inherits": { 99 | "version": "2.0.4", 100 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 101 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 102 | "license": "ISC" 103 | }, 104 | "node_modules/raw-body": { 105 | "version": "3.0.0", 106 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", 107 | "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", 108 | "license": "MIT", 109 | "dependencies": { 110 | "bytes": "3.1.2", 111 | "http-errors": "2.0.0", 112 | "iconv-lite": "0.6.3", 113 | "unpipe": "1.0.0" 114 | }, 115 | "engines": { 116 | "node": ">= 0.8" 117 | } 118 | }, 119 | "node_modules/safer-buffer": { 120 | "version": "2.1.2", 121 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 122 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 123 | "license": "MIT" 124 | }, 125 | "node_modules/setprototypeof": { 126 | "version": "1.2.0", 127 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 128 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", 129 | "license": "ISC" 130 | }, 131 | "node_modules/statuses": { 132 | "version": "2.0.1", 133 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 134 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 135 | "license": "MIT", 136 | "engines": { 137 | "node": ">= 0.8" 138 | } 139 | }, 140 | "node_modules/toidentifier": { 141 | "version": "1.0.1", 142 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 143 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 144 | "license": "MIT", 145 | "engines": { 146 | "node": ">=0.6" 147 | } 148 | }, 149 | "node_modules/typescript": { 150 | "version": "5.7.2", 151 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", 152 | "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", 153 | "dev": true, 154 | "license": "Apache-2.0", 155 | "bin": { 156 | "tsc": "bin/tsc", 157 | "tsserver": "bin/tsserver" 158 | }, 159 | "engines": { 160 | "node": ">=14.17" 161 | } 162 | }, 163 | "node_modules/undici-types": { 164 | "version": "6.20.0", 165 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", 166 | "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", 167 | "dev": true, 168 | "license": "MIT" 169 | }, 170 | "node_modules/unpipe": { 171 | "version": "1.0.0", 172 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 173 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 174 | "license": "MIT", 175 | "engines": { 176 | "node": ">= 0.8" 177 | } 178 | }, 179 | "node_modules/zod": { 180 | "version": "3.24.1", 181 | "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.1.tgz", 182 | "integrity": "sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==", 183 | "license": "MIT", 184 | "funding": { 185 | "url": "https://github.com/sponsors/colinhacks" 186 | } 187 | } 188 | } 189 | } 190 | -------------------------------------------------------------------------------- /examples/typescript/src/index.ts: -------------------------------------------------------------------------------- 1 | import { Server } from "@modelcontextprotocol/sdk/server/index.js"; 2 | import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; 3 | import { 4 | CallToolRequestSchema, 5 | ListToolsRequestSchema, 6 | } from "@modelcontextprotocol/sdk/types.js"; 7 | import { z } from "zod"; 8 | 9 | const NWS_API_BASE = "https://api.weather.gov"; 10 | const USER_AGENT = "weather-app/1.0"; 11 | 12 | // Define Zod schemas for validation 13 | const AlertsArgumentsSchema = z.object({ 14 | state: z.string().length(2), 15 | }); 16 | 17 | const ForecastArgumentsSchema = z.object({ 18 | latitude: z.number().min(-90).max(90), 19 | longitude: z.number().min(-180).max(180), 20 | }); 21 | 22 | // Create server instance 23 | const server = new Server( 24 | { 25 | name: "weather", 26 | version: "1.0.0", 27 | }, 28 | { 29 | capabilities: { 30 | tools: {}, 31 | }, 32 | } 33 | ); 34 | 35 | // List available tools 36 | server.setRequestHandler(ListToolsRequestSchema, async () => { 37 | return { 38 | tools: [ 39 | { 40 | name: "get-alerts", 41 | description: "Get weather alerts for a state", 42 | inputSchema: { 43 | type: "object", 44 | properties: { 45 | state: { 46 | type: "string", 47 | description: "Two-letter state code (e.g. CA, NY)", 48 | }, 49 | }, 50 | required: ["state"], 51 | }, 52 | }, 53 | { 54 | name: "get-forecast", 55 | description: "Get weather forecast for a location", 56 | inputSchema: { 57 | type: "object", 58 | properties: { 59 | latitude: { 60 | type: "number", 61 | description: "Latitude of the location", 62 | }, 63 | longitude: { 64 | type: "number", 65 | description: "Longitude of the location", 66 | }, 67 | }, 68 | required: ["latitude", "longitude"], 69 | }, 70 | }, 71 | ], 72 | }; 73 | }); 74 | 75 | // Helper function for making NWS API requests 76 | async function makeNWSRequest(url: string): Promise { 77 | const headers = { 78 | "User-Agent": USER_AGENT, 79 | Accept: "application/geo+json", 80 | }; 81 | 82 | try { 83 | const response = await fetch(url, { headers }); 84 | if (!response.ok) { 85 | throw new Error(`HTTP error! status: ${response.status}`); 86 | } 87 | return (await response.json()) as T; 88 | } catch (error) { 89 | console.error("Error making NWS request:", error); 90 | return null; 91 | } 92 | } 93 | 94 | interface AlertFeature { 95 | properties: { 96 | event?: string; 97 | areaDesc?: string; 98 | severity?: string; 99 | status?: string; 100 | headline?: string; 101 | }; 102 | } 103 | 104 | // Format alert data 105 | function formatAlert(feature: AlertFeature): string { 106 | const props = feature.properties; 107 | return [ 108 | `Event: ${props.event || "Unknown"}`, 109 | `Area: ${props.areaDesc || "Unknown"}`, 110 | `Severity: ${props.severity || "Unknown"}`, 111 | `Status: ${props.status || "Unknown"}`, 112 | `Headline: ${props.headline || "No headline"}`, 113 | "---", 114 | ].join("\n"); 115 | } 116 | 117 | interface ForecastPeriod { 118 | name?: string; 119 | temperature?: number; 120 | temperatureUnit?: string; 121 | windSpeed?: string; 122 | windDirection?: string; 123 | shortForecast?: string; 124 | } 125 | 126 | interface AlertsResponse { 127 | features: AlertFeature[]; 128 | } 129 | 130 | interface PointsResponse { 131 | properties: { 132 | forecast?: string; 133 | }; 134 | } 135 | 136 | interface ForecastResponse { 137 | properties: { 138 | periods: ForecastPeriod[]; 139 | }; 140 | } 141 | 142 | // Handle tool execution 143 | server.setRequestHandler(CallToolRequestSchema, async (request) => { 144 | const { name, arguments: args } = request.params; 145 | 146 | try { 147 | if (name === "get-alerts") { 148 | const { state } = AlertsArgumentsSchema.parse(args); 149 | const stateCode = state.toUpperCase(); 150 | 151 | const alertsUrl = `${NWS_API_BASE}/alerts?area=${stateCode}`; 152 | const alertsData = await makeNWSRequest(alertsUrl); 153 | 154 | if (!alertsData) { 155 | return { 156 | content: [ 157 | { 158 | type: "text", 159 | text: "Failed to retrieve alerts data", 160 | }, 161 | ], 162 | }; 163 | } 164 | 165 | const features = alertsData.features || []; 166 | if (features.length === 0) { 167 | return { 168 | content: [ 169 | { 170 | type: "text", 171 | text: `No active alerts for ${stateCode}`, 172 | }, 173 | ], 174 | }; 175 | } 176 | 177 | const formattedAlerts = features.map(formatAlert); 178 | const alertsText = `Active alerts for ${stateCode}:\n\n${formattedAlerts.join( 179 | "\n" 180 | )}`; 181 | 182 | return { 183 | content: [ 184 | { 185 | type: "text", 186 | text: alertsText, 187 | }, 188 | ], 189 | }; 190 | } else if (name === "get-forecast") { 191 | const { latitude, longitude } = ForecastArgumentsSchema.parse(args); 192 | 193 | // Get grid point data 194 | const pointsUrl = `${NWS_API_BASE}/points/${latitude.toFixed( 195 | 4 196 | )},${longitude.toFixed(4)}`; 197 | const pointsData = await makeNWSRequest(pointsUrl); 198 | 199 | if (!pointsData) { 200 | return { 201 | content: [ 202 | { 203 | type: "text", 204 | text: `Failed to retrieve grid point data for coordinates: ${latitude}, ${longitude}. This location may not be supported by the NWS API (only US locations are supported).`, 205 | }, 206 | ], 207 | }; 208 | } 209 | 210 | const forecastUrl = pointsData.properties?.forecast; 211 | if (!forecastUrl) { 212 | return { 213 | content: [ 214 | { 215 | type: "text", 216 | text: "Failed to get forecast URL from grid point data", 217 | }, 218 | ], 219 | }; 220 | } 221 | 222 | // Get forecast data 223 | const forecastData = await makeNWSRequest(forecastUrl); 224 | if (!forecastData) { 225 | return { 226 | content: [ 227 | { 228 | type: "text", 229 | text: "Failed to retrieve forecast data", 230 | }, 231 | ], 232 | }; 233 | } 234 | 235 | const periods = forecastData.properties?.periods || []; 236 | if (periods.length === 0) { 237 | return { 238 | content: [ 239 | { 240 | type: "text", 241 | text: "No forecast periods available", 242 | }, 243 | ], 244 | }; 245 | } 246 | 247 | // Format forecast periods 248 | const formattedForecast = periods.map((period: ForecastPeriod) => 249 | [ 250 | `${period.name || "Unknown"}:`, 251 | `Temperature: ${period.temperature || "Unknown"}°${ 252 | period.temperatureUnit || "F" 253 | }`, 254 | `Wind: ${period.windSpeed || "Unknown"} ${ 255 | period.windDirection || "" 256 | }`, 257 | `${period.shortForecast || "No forecast available"}`, 258 | "---", 259 | ].join("\n") 260 | ); 261 | 262 | const forecastText = `Forecast for ${latitude}, ${longitude}:\n\n${formattedForecast.join( 263 | "\n" 264 | )}`; 265 | 266 | return { 267 | content: [ 268 | { 269 | type: "text", 270 | text: forecastText, 271 | }, 272 | ], 273 | }; 274 | } else { 275 | throw new Error(`Unknown tool: ${name}`); 276 | } 277 | } catch (error) { 278 | if (error instanceof z.ZodError) { 279 | throw new Error( 280 | `Invalid arguments: ${error.errors 281 | .map((e) => `${e.path.join(".")}: ${e.message}`) 282 | .join(", ")}` 283 | ); 284 | } 285 | throw error; 286 | } 287 | }); 288 | 289 | // Start the server 290 | async function main() { 291 | const transport = new StdioServerTransport(); 292 | await server.connect(transport); 293 | console.error("Weather MCP Server running on stdio"); 294 | } 295 | 296 | main().catch((error) => { 297 | console.error("Fatal error in main():", error); 298 | process.exit(1); 299 | }); -------------------------------------------------------------------------------- /examples/kotlin/gradlew: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright © 2015-2021 the original authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | # 21 | # Gradle start up script for POSIX generated by Gradle. 22 | # 23 | # Important for running: 24 | # 25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is 26 | # noncompliant, but you have some other compliant shell such as ksh or 27 | # bash, then to run this script, type that shell name before the whole 28 | # command line, like: 29 | # 30 | # ksh Gradle 31 | # 32 | # Busybox and similar reduced shells will NOT work, because this script 33 | # requires all of these POSIX shell features: 34 | # * functions; 35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»; 37 | # * compound commands having a testable exit status, especially «case»; 38 | # * various built-in commands including «command», «set», and «ulimit». 39 | # 40 | # Important for patching: 41 | # 42 | # (2) This script targets any POSIX shell, so it avoids extensions provided 43 | # by Bash, Ksh, etc; in particular arrays are avoided. 44 | # 45 | # The "traditional" practice of packing multiple parameters into a 46 | # space-separated string is a well documented source of bugs and security 47 | # problems, so this is (mostly) avoided, by progressively accumulating 48 | # options in "$@", and eventually passing that to Java. 49 | # 50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, 51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; 52 | # see the in-line comments for details. 53 | # 54 | # There are tweaks for specific operating systems such as AIX, CygWin, 55 | # Darwin, MinGW, and NonStop. 56 | # 57 | # (3) This script is generated from the Groovy template 58 | # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 59 | # within the Gradle project. 60 | # 61 | # You can find Gradle at https://github.com/gradle/gradle/. 62 | # 63 | ############################################################################## 64 | 65 | # Attempt to set APP_HOME 66 | 67 | # Resolve links: $0 may be a link 68 | app_path=$0 69 | 70 | # Need this for daisy-chained symlinks. 71 | while 72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path 73 | [ -h "$app_path" ] 74 | do 75 | ls=$( ls -ld "$app_path" ) 76 | link=${ls#*' -> '} 77 | case $link in #( 78 | /*) app_path=$link ;; #( 79 | *) app_path=$APP_HOME$link ;; 80 | esac 81 | done 82 | 83 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit 84 | 85 | APP_NAME="Gradle" 86 | APP_BASE_NAME=${0##*/} 87 | 88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 90 | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value. 92 | MAX_FD=maximum 93 | 94 | warn () { 95 | echo "$*" 96 | } >&2 97 | 98 | die () { 99 | echo 100 | echo "$*" 101 | echo 102 | exit 1 103 | } >&2 104 | 105 | # OS specific support (must be 'true' or 'false'). 106 | cygwin=false 107 | msys=false 108 | darwin=false 109 | nonstop=false 110 | case "$( uname )" in #( 111 | CYGWIN* ) cygwin=true ;; #( 112 | Darwin* ) darwin=true ;; #( 113 | MSYS* | MINGW* ) msys=true ;; #( 114 | NONSTOP* ) nonstop=true ;; 115 | esac 116 | 117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 118 | 119 | 120 | # Determine the Java command to use to start the JVM. 121 | if [ -n "$JAVA_HOME" ] ; then 122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 123 | # IBM's JDK on AIX uses strange locations for the executables 124 | JAVACMD=$JAVA_HOME/jre/sh/java 125 | else 126 | JAVACMD=$JAVA_HOME/bin/java 127 | fi 128 | if [ ! -x "$JAVACMD" ] ; then 129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 130 | 131 | Please set the JAVA_HOME variable in your environment to match the 132 | location of your Java installation." 133 | fi 134 | else 135 | JAVACMD=java 136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 137 | 138 | Please set the JAVA_HOME variable in your environment to match the 139 | location of your Java installation." 140 | fi 141 | 142 | # Increase the maximum file descriptors if we can. 143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 144 | case $MAX_FD in #( 145 | max*) 146 | MAX_FD=$( ulimit -H -n ) || 147 | warn "Could not query maximum file descriptor limit" 148 | esac 149 | case $MAX_FD in #( 150 | '' | soft) :;; #( 151 | *) 152 | ulimit -n "$MAX_FD" || 153 | warn "Could not set maximum file descriptor limit to $MAX_FD" 154 | esac 155 | fi 156 | 157 | # Collect all arguments for the java command, stacking in reverse order: 158 | # * args from the command line 159 | # * the main class name 160 | # * -classpath 161 | # * -D...appname settings 162 | # * --module-path (only if needed) 163 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. 164 | 165 | # For Cygwin or MSYS, switch paths to Windows format before running java 166 | if "$cygwin" || "$msys" ; then 167 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) 168 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) 169 | 170 | JAVACMD=$( cygpath --unix "$JAVACMD" ) 171 | 172 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 173 | for arg do 174 | if 175 | case $arg in #( 176 | -*) false ;; # don't mess with options #( 177 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath 178 | [ -e "$t" ] ;; #( 179 | *) false ;; 180 | esac 181 | then 182 | arg=$( cygpath --path --ignore --mixed "$arg" ) 183 | fi 184 | # Roll the args list around exactly as many times as the number of 185 | # args, so each arg winds up back in the position where it started, but 186 | # possibly modified. 187 | # 188 | # NB: a `for` loop captures its iteration list before it begins, so 189 | # changing the positional parameters here affects neither the number of 190 | # iterations, nor the values presented in `arg`. 191 | shift # remove old arg 192 | set -- "$@" "$arg" # push replacement arg 193 | done 194 | fi 195 | 196 | # Collect all arguments for the java command; 197 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of 198 | # shell script including quotes and variable substitutions, so put them in 199 | # double quotes to make sure that they get re-expanded; and 200 | # * put everything else in single quotes, so that it's not re-expanded. 201 | 202 | set -- \ 203 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ 204 | -classpath "$CLASSPATH" \ 205 | org.gradle.wrapper.GradleWrapperMain \ 206 | "$@" 207 | 208 | # Use "xargs" to parse quoted args. 209 | # 210 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. 211 | # 212 | # In Bash we could simply go: 213 | # 214 | # readarray ARGS < <( xargs -n1 <<<"$var" ) && 215 | # set -- "${ARGS[@]}" "$@" 216 | # 217 | # but POSIX shell has neither arrays nor command substitution, so instead we 218 | # post-process each arg (as a line of input to sed) to backslash-escape any 219 | # character that might be a shell metacharacter, then use eval to reverse 220 | # that process (while maintaining the separation between arguments), and wrap 221 | # the whole thing up as a single "set" statement. 222 | # 223 | # This will of course break if any of these variables contains a newline or 224 | # an unmatched quote. 225 | # 226 | 227 | eval "set -- $( 228 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | 229 | xargs -n1 | 230 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | 231 | tr '\n' ' ' 232 | )" '"$@"' 233 | 234 | exec "$JAVACMD" "$@" 235 | -------------------------------------------------------------------------------- /src/runner.rs: -------------------------------------------------------------------------------- 1 | use std::{ 2 | collections::HashMap, 3 | env, 4 | io::{stdin, BufRead, BufReader, Write}, 5 | path::PathBuf, 6 | process::{Child, Stdio}, 7 | sync::{Arc, Mutex}, 8 | thread::{self}, 9 | time::Duration, 10 | }; 11 | 12 | use crate::config::{self, Watch}; 13 | use crossbeam_channel::{select, unbounded}; 14 | use eyre::Context; 15 | use notify_debouncer_full::{new_debouncer, notify::*, DebounceEventResult, RecommendedCache}; 16 | use serde::Deserialize; 17 | 18 | pub(crate) struct Runner { 19 | debouncer: Option>, 20 | process: Option, 21 | path: PathBuf, 22 | build_command: String, 23 | build_args: Vec, 24 | run_command: String, 25 | run_args: Vec, 26 | language: config::Language, 27 | 28 | client_resource_subscriptions: Arc>>, 29 | resend_resource_subscriptions: bool, 30 | client_initialize_req: Arc>>, 31 | process_stopped_sender: Option>, 32 | stdin_receiver: Arc>>, 33 | } 34 | 35 | impl Runner { 36 | fn stop(process: &mut Child) { 37 | if process.stdin.is_some() { 38 | eprintln!("Closing running process stdin"); 39 | drop(process.stdin.take()); 40 | // give it some time to close before killing 41 | thread::sleep(Duration::from_secs(2)); 42 | } 43 | 44 | let should_try_killing: bool; 45 | match process.try_wait() { 46 | Ok(Some(status)) => { 47 | if status.success() { 48 | eprintln!("Process exited successfully"); 49 | } else { 50 | eprintln!("Process exited with error: {:?}", status); 51 | } 52 | should_try_killing = false; 53 | } 54 | Ok(None) => { 55 | eprintln!("Process is still running"); 56 | should_try_killing = true; 57 | } 58 | Err(e) => { 59 | eprintln!("Failed to check if process is closed: {:?}", e); 60 | should_try_killing = true; 61 | } 62 | } 63 | 64 | if should_try_killing { 65 | match process.kill() { 66 | Ok(_) => { 67 | eprintln!("Killed running process"); 68 | } 69 | Err(e) => { 70 | eprintln!("Failed to kill running process: {:?}", e); 71 | } 72 | } 73 | } 74 | } 75 | 76 | pub(crate) fn trigger(&mut self) { 77 | let build_command = self.build_command.clone(); 78 | let build_args = self.build_args.clone(); 79 | let path = self.path.clone(); 80 | let no_build = self.build_command == ""; 81 | 82 | // if windows - wrap in cmd shell, otherwise just run 83 | if !no_build { 84 | eprintln!( 85 | "Running build command: {:?} {:?}", 86 | build_command, build_args 87 | ); 88 | let status = std::process::Command::new(build_command) 89 | .args(build_args) 90 | .current_dir(path) 91 | .stdin(Stdio::piped()) 92 | .stdout(Stdio::piped()) 93 | .stderr(Stdio::piped()) // todo: handle stderr to provide logs 94 | .status(); 95 | match status { 96 | Ok(status) => { 97 | if status.success() { 98 | eprintln!("Build succeeded"); 99 | } else { 100 | eprintln!("Build failed"); 101 | } 102 | } 103 | Err(e) => { 104 | eprintln!("Error running build command: {:?}", e); 105 | } 106 | } 107 | } 108 | 109 | // Use the configured run command and args from the instance 110 | // instead of getting the default values again 111 | let run_command = self.run_command.clone(); 112 | let run_args = self.run_args.clone(); 113 | 114 | if let Some(stopped_tx) = &mut self.process_stopped_sender { 115 | eprintln!("Sending stop to tx"); 116 | stopped_tx.send(()).unwrap(); 117 | } 118 | 119 | if let Some(process) = &mut self.process { 120 | Self::stop(process); 121 | } 122 | 123 | eprintln!("Running run command: {:?} {:?}", run_command, run_args); 124 | let process = std::process::Command::new(run_command) 125 | .args(run_args) 126 | .stdin(Stdio::piped()) 127 | .stdout(Stdio::piped()) 128 | .stderr(Stdio::inherit()) 129 | .current_dir(self.path.clone()) 130 | .spawn(); 131 | 132 | match process { 133 | Ok(process) => { 134 | self.process = Some(process); 135 | } 136 | Err(e) => { 137 | eprintln!("Error running run command: {:?}", e); 138 | } 139 | } 140 | eprintln!("Command has started"); 141 | self.run().unwrap(); 142 | } 143 | 144 | pub(crate) fn get_run_command(language: &config::Language) -> (String, Vec) { 145 | match language { 146 | config::Language::Typescript => { 147 | ("node".to_string(), vec!["build/index.js".to_string()]) 148 | } 149 | config::Language::Python => ("uv".to_string(), vec!["run".to_string()]), 150 | config::Language::Golang => ( 151 | "go".to_string(), 152 | vec!["run".to_string(), "main.go".to_string()], 153 | ), 154 | config::Language::Kotlin => ("./gradlew".to_string(), vec!["run".to_string()]), 155 | } 156 | } 157 | 158 | pub(crate) fn get_build_command(language: &config::Language) -> (String, Vec) { 159 | match language { 160 | config::Language::Typescript => ( 161 | "npm".to_string(), 162 | vec!["run".to_string(), "build".to_string()], 163 | ), 164 | config::Language::Python => ("".to_string(), vec![]), 165 | config::Language::Golang => ("".to_string(), vec![]), 166 | config::Language::Kotlin => ("".to_string(), vec![]), 167 | } 168 | } 169 | 170 | pub(crate) fn get_default_watch_paths(language: &config::Language) -> Vec { 171 | match language { 172 | config::Language::Typescript => vec!["src".to_string(), "package.json".to_string()], 173 | config::Language::Python => vec!["src".to_string(), "pyproject.toml".to_string()], 174 | config::Language::Golang => vec!["go.mod".to_string()], 175 | config::Language::Kotlin => vec![ 176 | "src".to_string(), 177 | "build.gradle.kts".to_string(), 178 | "gradle.properties".to_string(), 179 | ], 180 | } 181 | } 182 | 183 | pub(crate) fn new(path: PathBuf, cfg: config::Config) -> eyre::Result>> { 184 | let (build_command, build_args) = Self::get_build_command(&cfg.language); 185 | 186 | let (build_command, build_args) = if let Some(custom_build_config) = cfg.build { 187 | let command = custom_build_config.command.unwrap_or(build_command); 188 | let args = custom_build_config.args.unwrap_or(build_args); 189 | (command, args) 190 | } else { 191 | (build_command, build_args) 192 | }; 193 | 194 | let (run_command, run_args) = Self::get_run_command(&cfg.language); 195 | 196 | let (run_command, run_args) = if let Some(custom_run_config) = cfg.run { 197 | let command = custom_run_config.command.unwrap_or(run_command); 198 | let args = custom_run_config.args.unwrap_or(run_args); 199 | (command, args) 200 | } else { 201 | (run_command, run_args) 202 | }; 203 | 204 | let (sender, receiver) = unbounded::(); 205 | 206 | thread::spawn(move || { 207 | for line in stdin().lines() { 208 | match line { 209 | Ok(line) => { 210 | sender.send(line).unwrap(); 211 | } 212 | Err(e) => { 213 | eprintln!("{}", e); 214 | return; 215 | } 216 | } 217 | } 218 | }); 219 | 220 | let mut therunner = Runner { 221 | debouncer: None, 222 | process: None, 223 | build_args, 224 | build_command, 225 | run_command, 226 | run_args, 227 | path: path.clone(), 228 | language: cfg.language.clone(), 229 | 230 | client_resource_subscriptions: Arc::new(Mutex::new(HashMap::new())), 231 | resend_resource_subscriptions: cfg.resend_resource_subscriptions.unwrap_or(false), 232 | client_initialize_req: Arc::new(Mutex::new(None)), 233 | process_stopped_sender: None, 234 | stdin_receiver: Arc::new(Mutex::new(receiver)), 235 | }; 236 | 237 | therunner.trigger(); 238 | 239 | let runner_arc = Arc::new(Mutex::new(therunner)); 240 | let runner_arc_clone = runner_arc.clone(); 241 | 242 | let mut debouncer = new_debouncer( 243 | Duration::from_secs(2), 244 | None, 245 | move |result: DebounceEventResult| match result { 246 | Ok(events) => { 247 | events.iter().for_each(|event| { 248 | eprintln!("{event:?}"); 249 | }); 250 | 251 | eprintln!("Debouncer triggers reload"); 252 | runner_arc_clone.lock().unwrap().trigger(); 253 | }, 254 | Err(errors) => errors.iter().for_each(|error| eprintln!("{error:?}")), 255 | }, 256 | ) 257 | .context("failed to create debouncer to watch path")?; 258 | 259 | let default_watch_paths = match &cfg.watch { 260 | Some(Watch { 261 | default_paths: Some(configured_default_paths), 262 | .. 263 | }) => configured_default_paths.clone(), 264 | _ => Self::get_default_watch_paths(&cfg.language), 265 | }; 266 | 267 | for watch_path in default_watch_paths { 268 | let watch_path = path.join(watch_path); 269 | eprintln!("Watching default path {:?}", watch_path); 270 | debouncer 271 | .watch(watch_path.clone(), RecursiveMode::Recursive) 272 | .with_context(|| format!("failed to watch default path {:?}", watch_path))?; 273 | } 274 | 275 | if let Some(extra_watch_paths) = cfg.watch.and_then(|w| w.extra_paths) { 276 | for watch_path in extra_watch_paths { 277 | eprintln!("Watching extra path {:?}", watch_path); 278 | let watch_path = path.join(watch_path); 279 | debouncer 280 | .watch(watch_path.clone(), RecursiveMode::Recursive) 281 | .with_context(|| format!("failed to watch extra path {:?}", watch_path))?; 282 | } 283 | } else { 284 | eprintln!("No extra watch paths provided"); 285 | if cfg.language == config::Language::Golang { 286 | eprintln!("Warning: no extra watch paths provided for golang, only watching go.mod, you probably want to add more paths, like internal/, cmd/, etc."); 287 | } 288 | } 289 | runner_arc.lock().unwrap().debouncer = Some(debouncer); 290 | Ok(runner_arc) 291 | } 292 | 293 | pub(crate) fn run(&mut self) -> eyre::Result<()> { 294 | // firstly wait until we have a running process 295 | while self.process.is_none() { 296 | // TODO: use channels to wait efficiently 297 | eprintln!("Waiting for process to start"); 298 | thread::sleep(Duration::from_secs(1)); 299 | } 300 | 301 | let mut process = self.process.take().unwrap(); 302 | let init_req = self.client_initialize_req.clone(); 303 | 304 | let mut process_input = process.stdin.take().unwrap(); 305 | let process_out = process.stdout.take().unwrap(); 306 | 307 | let (sender, stopped_rx) = unbounded::<()>(); 308 | self.process_stopped_sender = Some(sender); 309 | 310 | let stdin_chan = self.stdin_receiver.clone(); 311 | 312 | let resend_resource_subscriptions = self.resend_resource_subscriptions; 313 | let client_resource_subscriptions = self.client_resource_subscriptions.clone(); 314 | 315 | eprintln!("Starting thread to process IO"); 316 | thread::spawn(move || { 317 | let stdin_chan = stdin_chan.lock().unwrap(); 318 | 319 | // phase 1: initialization 320 | let mut init_req = init_req.lock().unwrap(); 321 | let mut received_client_initialize = false; 322 | if init_req.is_none() { 323 | eprintln!("Waiting for input to initialize"); 324 | received_client_initialize = true; 325 | match stdin_chan.recv() { 326 | Ok(line) => { 327 | *init_req = Some(line); 328 | } 329 | Err(e) => { 330 | eprintln!("{}", e); 331 | return; 332 | } 333 | } 334 | } 335 | 336 | if let Some(line) = &*init_req { 337 | process_input 338 | .write_all(line.as_bytes()) 339 | .context("failed to write to process stdin") 340 | .unwrap(); 341 | process_input 342 | .write_all(b"\n") 343 | .context("failed to write to process stdin") 344 | .unwrap(); 345 | process_input 346 | .flush() 347 | .context("failed to flush process stdin") 348 | .unwrap(); 349 | } 350 | 351 | let mut process_out = BufReader::new(process_out); 352 | let mut initialize_response = String::new(); 353 | process_out.read_line(&mut initialize_response).unwrap(); 354 | 355 | if received_client_initialize { 356 | // send initialization response back to client 357 | print!("{}", initialize_response); 358 | } else { 359 | eprintln!("skipping server initialize response"); 360 | // we do not need to send initialize again, as client has 361 | // already received one from us earlier 362 | // but we need to imitate client's initialized notification now 363 | process_input 364 | .write( 365 | r####"{"method":"notifications/initialized","jsonrpc":"2.0"} 366 | "#### 367 | .as_bytes(), 368 | ) 369 | .unwrap(); 370 | 371 | // we could check here if list of tools actually changed before sending notification 372 | // , however possibility of this optimisation to misfire probably outweights its value 373 | // process_input 374 | // .write_all( 375 | // r####"{"method":"tools/list","jsonrpc":"2.0","params":{}} 376 | // "#### 377 | // .as_bytes(), 378 | // ) 379 | // .unwrap(); 380 | 381 | // let mut tools_response = String::new(); 382 | // process_out.read_line(&mut tools_response).unwrap(); 383 | 384 | println!( 385 | "{}", 386 | r####"{"method":"notifications/tools/list_changed","jsonrpc":"2.0"}"#### 387 | ); 388 | 389 | println!( 390 | "{}", 391 | r####"{"method":"notifications/prompts/list_changed","jsonrpc":"2.0"}"#### 392 | ); 393 | 394 | println!( 395 | "{}", 396 | r####"{"method":"notifications/resources/list_changed","jsonrpc":"2.0"}"#### 397 | ); 398 | 399 | for (_, subscription) in client_resource_subscriptions.lock().unwrap().iter() { 400 | process_input 401 | .write_all(subscription.as_bytes()) 402 | .context("failed to write to process stdin") 403 | .unwrap(); 404 | 405 | // skip the responses, since client does not need them 406 | let mut dummy_buffer = String::new(); 407 | process_out.read_line(&mut dummy_buffer).unwrap(); 408 | } 409 | } 410 | 411 | // phase 2: proxying 412 | thread::spawn(move || { 413 | eprintln!("started stdout processing"); 414 | for line in process_out.lines() { 415 | match line { 416 | Ok(line) => { 417 | println!("{}", line); 418 | } 419 | Err(e) => { 420 | eprintln!("{}", e); 421 | eprintln!("ended stdout processing"); 422 | return; 423 | } 424 | } 425 | } 426 | eprintln!("exit ended stdout processing"); 427 | }); 428 | 429 | loop { 430 | select! { 431 | recv(stopped_rx) -> _ => { 432 | eprintln!("exiting input processing loop by rx"); 433 | break; 434 | } 435 | recv(stdin_chan) -> line => { 436 | match line { 437 | Ok(line) => { 438 | if resend_resource_subscriptions { 439 | if line.contains("resources/subscribe") || line.contains("resources/unsubscribe") { 440 | let partial: serde_json::Result = serde_json::from_str(&line); 441 | if let Ok(partial) = partial { 442 | let mut client_resource_subscriptions = client_resource_subscriptions.lock().unwrap(); 443 | if partial.method == "resources/subscribe" { 444 | client_resource_subscriptions.insert(partial.params.uri.clone(), line.clone()); 445 | } else if partial.method == "resources/unsubscribe" { 446 | client_resource_subscriptions.remove(&partial.params.uri); 447 | } 448 | } 449 | } 450 | } 451 | process_input 452 | .write_all(line.as_bytes()) 453 | .context("failed to write to process stdin") 454 | .unwrap(); 455 | process_input 456 | .write_all(b"\n") 457 | .context("failed to write to process stdin") 458 | .unwrap(); 459 | process_input 460 | .flush() 461 | .context("failed to flush process stdin") 462 | .unwrap(); 463 | } 464 | Err(e)=>{ 465 | eprintln!("Failed to get from chan {}", e); 466 | break; 467 | } 468 | } 469 | } 470 | } 471 | } 472 | 473 | drop(process_input); 474 | 475 | // give it some time to close before killing 476 | thread::sleep(Duration::from_secs(2)); 477 | 478 | Self::stop(&mut process); 479 | 480 | eprintln!("Finished proxying"); 481 | }); 482 | 483 | Ok(()) 484 | } 485 | 486 | // pub(crate) fn stop(self) { 487 | // if let Some(debouncer) = self.debouncer { 488 | // debouncer.stop(); 489 | // } 490 | // } 491 | } 492 | 493 | #[derive(Deserialize)] 494 | struct PartialJsonRequest { 495 | pub method: String, 496 | pub params: SubscribeParams, 497 | } 498 | 499 | #[derive(Deserialize)] 500 | struct SubscribeParams { 501 | pub uri: String, 502 | } 503 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 4 4 | 5 | [[package]] 6 | name = "addr2line" 7 | version = "0.21.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" 10 | dependencies = [ 11 | "gimli", 12 | ] 13 | 14 | [[package]] 15 | name = "adler" 16 | version = "1.0.2" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" 19 | 20 | [[package]] 21 | name = "argh" 22 | version = "0.1.13" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "34ff18325c8a36b82f992e533ece1ec9f9a9db446bd1c14d4f936bac88fcd240" 25 | dependencies = [ 26 | "argh_derive", 27 | "argh_shared", 28 | "rust-fuzzy-search", 29 | ] 30 | 31 | [[package]] 32 | name = "argh_derive" 33 | version = "0.1.13" 34 | source = "registry+https://github.com/rust-lang/crates.io-index" 35 | checksum = "adb7b2b83a50d329d5d8ccc620f5c7064028828538bdf5646acd60dc1f767803" 36 | dependencies = [ 37 | "argh_shared", 38 | "proc-macro2", 39 | "quote", 40 | "syn", 41 | ] 42 | 43 | [[package]] 44 | name = "argh_shared" 45 | version = "0.1.13" 46 | source = "registry+https://github.com/rust-lang/crates.io-index" 47 | checksum = "a464143cc82dedcdc3928737445362466b7674b5db4e2eb8e869846d6d84f4f6" 48 | dependencies = [ 49 | "serde", 50 | ] 51 | 52 | [[package]] 53 | name = "autocfg" 54 | version = "1.4.0" 55 | source = "registry+https://github.com/rust-lang/crates.io-index" 56 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" 57 | 58 | [[package]] 59 | name = "backtrace" 60 | version = "0.3.71" 61 | source = "registry+https://github.com/rust-lang/crates.io-index" 62 | checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d" 63 | dependencies = [ 64 | "addr2line", 65 | "cc", 66 | "cfg-if", 67 | "libc", 68 | "miniz_oxide", 69 | "object", 70 | "rustc-demangle", 71 | ] 72 | 73 | [[package]] 74 | name = "bitflags" 75 | version = "1.3.2" 76 | source = "registry+https://github.com/rust-lang/crates.io-index" 77 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 78 | 79 | [[package]] 80 | name = "bitflags" 81 | version = "2.6.0" 82 | source = "registry+https://github.com/rust-lang/crates.io-index" 83 | checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" 84 | 85 | [[package]] 86 | name = "byteorder" 87 | version = "1.5.0" 88 | source = "registry+https://github.com/rust-lang/crates.io-index" 89 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" 90 | 91 | [[package]] 92 | name = "cc" 93 | version = "1.2.5" 94 | source = "registry+https://github.com/rust-lang/crates.io-index" 95 | checksum = "c31a0499c1dc64f458ad13872de75c0eb7e3fdb0e67964610c914b034fc5956e" 96 | dependencies = [ 97 | "shlex", 98 | ] 99 | 100 | [[package]] 101 | name = "cfg-if" 102 | version = "1.0.0" 103 | source = "registry+https://github.com/rust-lang/crates.io-index" 104 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 105 | 106 | [[package]] 107 | name = "cfg_aliases" 108 | version = "0.2.1" 109 | source = "registry+https://github.com/rust-lang/crates.io-index" 110 | checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" 111 | 112 | [[package]] 113 | name = "color-eyre" 114 | version = "0.6.3" 115 | source = "registry+https://github.com/rust-lang/crates.io-index" 116 | checksum = "55146f5e46f237f7423d74111267d4597b59b0dad0ffaf7303bce9945d843ad5" 117 | dependencies = [ 118 | "backtrace", 119 | "color-spantrace", 120 | "eyre", 121 | "indenter", 122 | "once_cell", 123 | "owo-colors", 124 | "tracing-error", 125 | ] 126 | 127 | [[package]] 128 | name = "color-spantrace" 129 | version = "0.2.1" 130 | source = "registry+https://github.com/rust-lang/crates.io-index" 131 | checksum = "cd6be1b2a7e382e2b98b43b2adcca6bb0e465af0bdd38123873ae61eb17a72c2" 132 | dependencies = [ 133 | "once_cell", 134 | "owo-colors", 135 | "tracing-core", 136 | "tracing-error", 137 | ] 138 | 139 | [[package]] 140 | name = "crossbeam-channel" 141 | version = "0.5.15" 142 | source = "registry+https://github.com/rust-lang/crates.io-index" 143 | checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" 144 | dependencies = [ 145 | "crossbeam-utils", 146 | ] 147 | 148 | [[package]] 149 | name = "crossbeam-utils" 150 | version = "0.8.21" 151 | source = "registry+https://github.com/rust-lang/crates.io-index" 152 | checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" 153 | 154 | [[package]] 155 | name = "crossterm" 156 | version = "0.25.0" 157 | source = "registry+https://github.com/rust-lang/crates.io-index" 158 | checksum = "e64e6c0fbe2c17357405f7c758c1ef960fce08bdfb2c03d88d2a18d7e09c4b67" 159 | dependencies = [ 160 | "bitflags 1.3.2", 161 | "crossterm_winapi", 162 | "libc", 163 | "mio 0.8.11", 164 | "parking_lot", 165 | "signal-hook", 166 | "signal-hook-mio", 167 | "winapi", 168 | ] 169 | 170 | [[package]] 171 | name = "crossterm_winapi" 172 | version = "0.9.1" 173 | source = "registry+https://github.com/rust-lang/crates.io-index" 174 | checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b" 175 | dependencies = [ 176 | "winapi", 177 | ] 178 | 179 | [[package]] 180 | name = "ctrlc" 181 | version = "3.4.5" 182 | source = "registry+https://github.com/rust-lang/crates.io-index" 183 | checksum = "90eeab0aa92f3f9b4e87f258c72b139c207d251f9cbc1080a0086b86a8870dd3" 184 | dependencies = [ 185 | "nix", 186 | "windows-sys 0.59.0", 187 | ] 188 | 189 | [[package]] 190 | name = "dyn-clone" 191 | version = "1.0.17" 192 | source = "registry+https://github.com/rust-lang/crates.io-index" 193 | checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" 194 | 195 | [[package]] 196 | name = "equivalent" 197 | version = "1.0.1" 198 | source = "registry+https://github.com/rust-lang/crates.io-index" 199 | checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" 200 | 201 | [[package]] 202 | name = "eyre" 203 | version = "0.6.12" 204 | source = "registry+https://github.com/rust-lang/crates.io-index" 205 | checksum = "7cd915d99f24784cdc19fd37ef22b97e3ff0ae756c7e492e9fbfe897d61e2aec" 206 | dependencies = [ 207 | "indenter", 208 | "once_cell", 209 | ] 210 | 211 | [[package]] 212 | name = "file-id" 213 | version = "0.2.2" 214 | source = "registry+https://github.com/rust-lang/crates.io-index" 215 | checksum = "6bc904b9bbefcadbd8e3a9fb0d464a9b979de6324c03b3c663e8994f46a5be36" 216 | dependencies = [ 217 | "windows-sys 0.52.0", 218 | ] 219 | 220 | [[package]] 221 | name = "filetime" 222 | version = "0.2.25" 223 | source = "registry+https://github.com/rust-lang/crates.io-index" 224 | checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586" 225 | dependencies = [ 226 | "cfg-if", 227 | "libc", 228 | "libredox", 229 | "windows-sys 0.59.0", 230 | ] 231 | 232 | [[package]] 233 | name = "fsevent-sys" 234 | version = "4.1.0" 235 | source = "registry+https://github.com/rust-lang/crates.io-index" 236 | checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2" 237 | dependencies = [ 238 | "libc", 239 | ] 240 | 241 | [[package]] 242 | name = "fuzzy-matcher" 243 | version = "0.3.7" 244 | source = "registry+https://github.com/rust-lang/crates.io-index" 245 | checksum = "54614a3312934d066701a80f20f15fa3b56d67ac7722b39eea5b4c9dd1d66c94" 246 | dependencies = [ 247 | "thread_local", 248 | ] 249 | 250 | [[package]] 251 | name = "fxhash" 252 | version = "0.2.1" 253 | source = "registry+https://github.com/rust-lang/crates.io-index" 254 | checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" 255 | dependencies = [ 256 | "byteorder", 257 | ] 258 | 259 | [[package]] 260 | name = "gimli" 261 | version = "0.28.1" 262 | source = "registry+https://github.com/rust-lang/crates.io-index" 263 | checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" 264 | 265 | [[package]] 266 | name = "hashbrown" 267 | version = "0.15.2" 268 | source = "registry+https://github.com/rust-lang/crates.io-index" 269 | checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" 270 | 271 | [[package]] 272 | name = "indenter" 273 | version = "0.3.3" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683" 276 | 277 | [[package]] 278 | name = "indexmap" 279 | version = "2.7.0" 280 | source = "registry+https://github.com/rust-lang/crates.io-index" 281 | checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" 282 | dependencies = [ 283 | "equivalent", 284 | "hashbrown", 285 | ] 286 | 287 | [[package]] 288 | name = "inotify" 289 | version = "0.9.6" 290 | source = "registry+https://github.com/rust-lang/crates.io-index" 291 | checksum = "f8069d3ec154eb856955c1c0fbffefbf5f3c40a104ec912d4797314c1801abff" 292 | dependencies = [ 293 | "bitflags 1.3.2", 294 | "inotify-sys", 295 | "libc", 296 | ] 297 | 298 | [[package]] 299 | name = "inotify" 300 | version = "0.10.2" 301 | source = "registry+https://github.com/rust-lang/crates.io-index" 302 | checksum = "fdd168d97690d0b8c412d6b6c10360277f4d7ee495c5d0d5d5fe0854923255cc" 303 | dependencies = [ 304 | "bitflags 1.3.2", 305 | "inotify-sys", 306 | "libc", 307 | ] 308 | 309 | [[package]] 310 | name = "inotify-sys" 311 | version = "0.1.5" 312 | source = "registry+https://github.com/rust-lang/crates.io-index" 313 | checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" 314 | dependencies = [ 315 | "libc", 316 | ] 317 | 318 | [[package]] 319 | name = "inquire" 320 | version = "0.7.5" 321 | source = "registry+https://github.com/rust-lang/crates.io-index" 322 | checksum = "0fddf93031af70e75410a2511ec04d49e758ed2f26dad3404a934e0fb45cc12a" 323 | dependencies = [ 324 | "bitflags 2.6.0", 325 | "crossterm", 326 | "dyn-clone", 327 | "fuzzy-matcher", 328 | "fxhash", 329 | "newline-converter", 330 | "once_cell", 331 | "unicode-segmentation", 332 | "unicode-width", 333 | ] 334 | 335 | [[package]] 336 | name = "instant" 337 | version = "0.1.13" 338 | source = "registry+https://github.com/rust-lang/crates.io-index" 339 | checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" 340 | dependencies = [ 341 | "cfg-if", 342 | ] 343 | 344 | [[package]] 345 | name = "itoa" 346 | version = "1.0.14" 347 | source = "registry+https://github.com/rust-lang/crates.io-index" 348 | checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" 349 | 350 | [[package]] 351 | name = "kqueue" 352 | version = "1.0.8" 353 | source = "registry+https://github.com/rust-lang/crates.io-index" 354 | checksum = "7447f1ca1b7b563588a205fe93dea8df60fd981423a768bc1c0ded35ed147d0c" 355 | dependencies = [ 356 | "kqueue-sys", 357 | "libc", 358 | ] 359 | 360 | [[package]] 361 | name = "kqueue-sys" 362 | version = "1.0.4" 363 | source = "registry+https://github.com/rust-lang/crates.io-index" 364 | checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b" 365 | dependencies = [ 366 | "bitflags 1.3.2", 367 | "libc", 368 | ] 369 | 370 | [[package]] 371 | name = "lazy_static" 372 | version = "1.5.0" 373 | source = "registry+https://github.com/rust-lang/crates.io-index" 374 | checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" 375 | 376 | [[package]] 377 | name = "libc" 378 | version = "0.2.169" 379 | source = "registry+https://github.com/rust-lang/crates.io-index" 380 | checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" 381 | 382 | [[package]] 383 | name = "libredox" 384 | version = "0.1.3" 385 | source = "registry+https://github.com/rust-lang/crates.io-index" 386 | checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" 387 | dependencies = [ 388 | "bitflags 2.6.0", 389 | "libc", 390 | "redox_syscall", 391 | ] 392 | 393 | [[package]] 394 | name = "lock_api" 395 | version = "0.4.12" 396 | source = "registry+https://github.com/rust-lang/crates.io-index" 397 | checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" 398 | dependencies = [ 399 | "autocfg", 400 | "scopeguard", 401 | ] 402 | 403 | [[package]] 404 | name = "log" 405 | version = "0.4.22" 406 | source = "registry+https://github.com/rust-lang/crates.io-index" 407 | checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" 408 | 409 | [[package]] 410 | name = "memchr" 411 | version = "2.7.4" 412 | source = "registry+https://github.com/rust-lang/crates.io-index" 413 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 414 | 415 | [[package]] 416 | name = "miniz_oxide" 417 | version = "0.7.4" 418 | source = "registry+https://github.com/rust-lang/crates.io-index" 419 | checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08" 420 | dependencies = [ 421 | "adler", 422 | ] 423 | 424 | [[package]] 425 | name = "mio" 426 | version = "0.8.11" 427 | source = "registry+https://github.com/rust-lang/crates.io-index" 428 | checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" 429 | dependencies = [ 430 | "libc", 431 | "log", 432 | "wasi", 433 | "windows-sys 0.48.0", 434 | ] 435 | 436 | [[package]] 437 | name = "mio" 438 | version = "1.0.3" 439 | source = "registry+https://github.com/rust-lang/crates.io-index" 440 | checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" 441 | dependencies = [ 442 | "libc", 443 | "log", 444 | "wasi", 445 | "windows-sys 0.52.0", 446 | ] 447 | 448 | [[package]] 449 | name = "newline-converter" 450 | version = "0.3.0" 451 | source = "registry+https://github.com/rust-lang/crates.io-index" 452 | checksum = "47b6b097ecb1cbfed438542d16e84fd7ad9b0c76c8a65b7f9039212a3d14dc7f" 453 | dependencies = [ 454 | "unicode-segmentation", 455 | ] 456 | 457 | [[package]] 458 | name = "nix" 459 | version = "0.29.0" 460 | source = "registry+https://github.com/rust-lang/crates.io-index" 461 | checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" 462 | dependencies = [ 463 | "bitflags 2.6.0", 464 | "cfg-if", 465 | "cfg_aliases", 466 | "libc", 467 | ] 468 | 469 | [[package]] 470 | name = "notify" 471 | version = "6.1.1" 472 | source = "registry+https://github.com/rust-lang/crates.io-index" 473 | checksum = "6205bd8bb1e454ad2e27422015fb5e4f2bcc7e08fa8f27058670d208324a4d2d" 474 | dependencies = [ 475 | "bitflags 2.6.0", 476 | "crossbeam-channel", 477 | "filetime", 478 | "fsevent-sys", 479 | "inotify 0.9.6", 480 | "kqueue", 481 | "libc", 482 | "log", 483 | "mio 0.8.11", 484 | "walkdir", 485 | "windows-sys 0.48.0", 486 | ] 487 | 488 | [[package]] 489 | name = "notify" 490 | version = "7.0.0" 491 | source = "registry+https://github.com/rust-lang/crates.io-index" 492 | checksum = "c533b4c39709f9ba5005d8002048266593c1cfaf3c5f0739d5b8ab0c6c504009" 493 | dependencies = [ 494 | "bitflags 2.6.0", 495 | "filetime", 496 | "fsevent-sys", 497 | "inotify 0.10.2", 498 | "kqueue", 499 | "libc", 500 | "log", 501 | "mio 1.0.3", 502 | "notify-types", 503 | "walkdir", 504 | "windows-sys 0.52.0", 505 | ] 506 | 507 | [[package]] 508 | name = "notify-debouncer-full" 509 | version = "0.4.0" 510 | source = "registry+https://github.com/rust-lang/crates.io-index" 511 | checksum = "9dcf855483228259b2353f89e99df35fc639b2b2510d1166e4858e3f67ec1afb" 512 | dependencies = [ 513 | "file-id", 514 | "log", 515 | "notify 7.0.0", 516 | "notify-types", 517 | "walkdir", 518 | ] 519 | 520 | [[package]] 521 | name = "notify-types" 522 | version = "1.0.1" 523 | source = "registry+https://github.com/rust-lang/crates.io-index" 524 | checksum = "585d3cb5e12e01aed9e8a1f70d5c6b5e86fe2a6e48fc8cd0b3e0b8df6f6eb174" 525 | dependencies = [ 526 | "instant", 527 | ] 528 | 529 | [[package]] 530 | name = "object" 531 | version = "0.32.2" 532 | source = "registry+https://github.com/rust-lang/crates.io-index" 533 | checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" 534 | dependencies = [ 535 | "memchr", 536 | ] 537 | 538 | [[package]] 539 | name = "once_cell" 540 | version = "1.20.2" 541 | source = "registry+https://github.com/rust-lang/crates.io-index" 542 | checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" 543 | 544 | [[package]] 545 | name = "owo-colors" 546 | version = "3.5.0" 547 | source = "registry+https://github.com/rust-lang/crates.io-index" 548 | checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f" 549 | 550 | [[package]] 551 | name = "parking_lot" 552 | version = "0.12.3" 553 | source = "registry+https://github.com/rust-lang/crates.io-index" 554 | checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" 555 | dependencies = [ 556 | "lock_api", 557 | "parking_lot_core", 558 | ] 559 | 560 | [[package]] 561 | name = "parking_lot_core" 562 | version = "0.9.10" 563 | source = "registry+https://github.com/rust-lang/crates.io-index" 564 | checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" 565 | dependencies = [ 566 | "cfg-if", 567 | "libc", 568 | "redox_syscall", 569 | "smallvec", 570 | "windows-targets 0.52.6", 571 | ] 572 | 573 | [[package]] 574 | name = "pin-project-lite" 575 | version = "0.2.15" 576 | source = "registry+https://github.com/rust-lang/crates.io-index" 577 | checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" 578 | 579 | [[package]] 580 | name = "proc-macro2" 581 | version = "1.0.92" 582 | source = "registry+https://github.com/rust-lang/crates.io-index" 583 | checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" 584 | dependencies = [ 585 | "unicode-ident", 586 | ] 587 | 588 | [[package]] 589 | name = "quote" 590 | version = "1.0.37" 591 | source = "registry+https://github.com/rust-lang/crates.io-index" 592 | checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" 593 | dependencies = [ 594 | "proc-macro2", 595 | ] 596 | 597 | [[package]] 598 | name = "redox_syscall" 599 | version = "0.5.8" 600 | source = "registry+https://github.com/rust-lang/crates.io-index" 601 | checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" 602 | dependencies = [ 603 | "bitflags 2.6.0", 604 | ] 605 | 606 | [[package]] 607 | name = "rust-fuzzy-search" 608 | version = "0.1.1" 609 | source = "registry+https://github.com/rust-lang/crates.io-index" 610 | checksum = "a157657054ffe556d8858504af8a672a054a6e0bd9e8ee531059100c0fa11bb2" 611 | 612 | [[package]] 613 | name = "rustc-demangle" 614 | version = "0.1.24" 615 | source = "registry+https://github.com/rust-lang/crates.io-index" 616 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" 617 | 618 | [[package]] 619 | name = "ryu" 620 | version = "1.0.18" 621 | source = "registry+https://github.com/rust-lang/crates.io-index" 622 | checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" 623 | 624 | [[package]] 625 | name = "same-file" 626 | version = "1.0.6" 627 | source = "registry+https://github.com/rust-lang/crates.io-index" 628 | checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" 629 | dependencies = [ 630 | "winapi-util", 631 | ] 632 | 633 | [[package]] 634 | name = "scopeguard" 635 | version = "1.2.0" 636 | source = "registry+https://github.com/rust-lang/crates.io-index" 637 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 638 | 639 | [[package]] 640 | name = "serde" 641 | version = "1.0.216" 642 | source = "registry+https://github.com/rust-lang/crates.io-index" 643 | checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" 644 | dependencies = [ 645 | "serde_derive", 646 | ] 647 | 648 | [[package]] 649 | name = "serde_derive" 650 | version = "1.0.216" 651 | source = "registry+https://github.com/rust-lang/crates.io-index" 652 | checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" 653 | dependencies = [ 654 | "proc-macro2", 655 | "quote", 656 | "syn", 657 | ] 658 | 659 | [[package]] 660 | name = "serde_json" 661 | version = "1.0.135" 662 | source = "registry+https://github.com/rust-lang/crates.io-index" 663 | checksum = "2b0d7ba2887406110130a978386c4e1befb98c674b4fba677954e4db976630d9" 664 | dependencies = [ 665 | "itoa", 666 | "memchr", 667 | "ryu", 668 | "serde", 669 | ] 670 | 671 | [[package]] 672 | name = "serde_spanned" 673 | version = "0.6.8" 674 | source = "registry+https://github.com/rust-lang/crates.io-index" 675 | checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" 676 | dependencies = [ 677 | "serde", 678 | ] 679 | 680 | [[package]] 681 | name = "sharded-slab" 682 | version = "0.1.7" 683 | source = "registry+https://github.com/rust-lang/crates.io-index" 684 | checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" 685 | dependencies = [ 686 | "lazy_static", 687 | ] 688 | 689 | [[package]] 690 | name = "shlex" 691 | version = "1.3.0" 692 | source = "registry+https://github.com/rust-lang/crates.io-index" 693 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 694 | 695 | [[package]] 696 | name = "signal-hook" 697 | version = "0.3.17" 698 | source = "registry+https://github.com/rust-lang/crates.io-index" 699 | checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801" 700 | dependencies = [ 701 | "libc", 702 | "signal-hook-registry", 703 | ] 704 | 705 | [[package]] 706 | name = "signal-hook-mio" 707 | version = "0.2.4" 708 | source = "registry+https://github.com/rust-lang/crates.io-index" 709 | checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd" 710 | dependencies = [ 711 | "libc", 712 | "mio 0.8.11", 713 | "signal-hook", 714 | ] 715 | 716 | [[package]] 717 | name = "signal-hook-registry" 718 | version = "1.4.2" 719 | source = "registry+https://github.com/rust-lang/crates.io-index" 720 | checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" 721 | dependencies = [ 722 | "libc", 723 | ] 724 | 725 | [[package]] 726 | name = "smallvec" 727 | version = "1.13.2" 728 | source = "registry+https://github.com/rust-lang/crates.io-index" 729 | checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" 730 | 731 | [[package]] 732 | name = "syn" 733 | version = "2.0.91" 734 | source = "registry+https://github.com/rust-lang/crates.io-index" 735 | checksum = "d53cbcb5a243bd33b7858b1d7f4aca2153490815872d86d955d6ea29f743c035" 736 | dependencies = [ 737 | "proc-macro2", 738 | "quote", 739 | "unicode-ident", 740 | ] 741 | 742 | [[package]] 743 | name = "synf" 744 | version = "0.2.5" 745 | dependencies = [ 746 | "argh", 747 | "color-eyre", 748 | "crossbeam-channel", 749 | "ctrlc", 750 | "eyre", 751 | "inquire", 752 | "notify 6.1.1", 753 | "notify-debouncer-full", 754 | "serde", 755 | "serde_json", 756 | "toml", 757 | ] 758 | 759 | [[package]] 760 | name = "thread_local" 761 | version = "1.1.8" 762 | source = "registry+https://github.com/rust-lang/crates.io-index" 763 | checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" 764 | dependencies = [ 765 | "cfg-if", 766 | "once_cell", 767 | ] 768 | 769 | [[package]] 770 | name = "toml" 771 | version = "0.8.19" 772 | source = "registry+https://github.com/rust-lang/crates.io-index" 773 | checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" 774 | dependencies = [ 775 | "serde", 776 | "serde_spanned", 777 | "toml_datetime", 778 | "toml_edit", 779 | ] 780 | 781 | [[package]] 782 | name = "toml_datetime" 783 | version = "0.6.8" 784 | source = "registry+https://github.com/rust-lang/crates.io-index" 785 | checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" 786 | dependencies = [ 787 | "serde", 788 | ] 789 | 790 | [[package]] 791 | name = "toml_edit" 792 | version = "0.22.22" 793 | source = "registry+https://github.com/rust-lang/crates.io-index" 794 | checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" 795 | dependencies = [ 796 | "indexmap", 797 | "serde", 798 | "serde_spanned", 799 | "toml_datetime", 800 | "winnow", 801 | ] 802 | 803 | [[package]] 804 | name = "tracing" 805 | version = "0.1.41" 806 | source = "registry+https://github.com/rust-lang/crates.io-index" 807 | checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" 808 | dependencies = [ 809 | "pin-project-lite", 810 | "tracing-core", 811 | ] 812 | 813 | [[package]] 814 | name = "tracing-core" 815 | version = "0.1.33" 816 | source = "registry+https://github.com/rust-lang/crates.io-index" 817 | checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" 818 | dependencies = [ 819 | "once_cell", 820 | "valuable", 821 | ] 822 | 823 | [[package]] 824 | name = "tracing-error" 825 | version = "0.2.1" 826 | source = "registry+https://github.com/rust-lang/crates.io-index" 827 | checksum = "8b1581020d7a273442f5b45074a6a57d5757ad0a47dac0e9f0bd57b81936f3db" 828 | dependencies = [ 829 | "tracing", 830 | "tracing-subscriber", 831 | ] 832 | 833 | [[package]] 834 | name = "tracing-subscriber" 835 | version = "0.3.19" 836 | source = "registry+https://github.com/rust-lang/crates.io-index" 837 | checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" 838 | dependencies = [ 839 | "sharded-slab", 840 | "thread_local", 841 | "tracing-core", 842 | ] 843 | 844 | [[package]] 845 | name = "unicode-ident" 846 | version = "1.0.14" 847 | source = "registry+https://github.com/rust-lang/crates.io-index" 848 | checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" 849 | 850 | [[package]] 851 | name = "unicode-segmentation" 852 | version = "1.12.0" 853 | source = "registry+https://github.com/rust-lang/crates.io-index" 854 | checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" 855 | 856 | [[package]] 857 | name = "unicode-width" 858 | version = "0.1.14" 859 | source = "registry+https://github.com/rust-lang/crates.io-index" 860 | checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" 861 | 862 | [[package]] 863 | name = "valuable" 864 | version = "0.1.0" 865 | source = "registry+https://github.com/rust-lang/crates.io-index" 866 | checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" 867 | 868 | [[package]] 869 | name = "walkdir" 870 | version = "2.5.0" 871 | source = "registry+https://github.com/rust-lang/crates.io-index" 872 | checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" 873 | dependencies = [ 874 | "same-file", 875 | "winapi-util", 876 | ] 877 | 878 | [[package]] 879 | name = "wasi" 880 | version = "0.11.0+wasi-snapshot-preview1" 881 | source = "registry+https://github.com/rust-lang/crates.io-index" 882 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 883 | 884 | [[package]] 885 | name = "winapi" 886 | version = "0.3.9" 887 | source = "registry+https://github.com/rust-lang/crates.io-index" 888 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 889 | dependencies = [ 890 | "winapi-i686-pc-windows-gnu", 891 | "winapi-x86_64-pc-windows-gnu", 892 | ] 893 | 894 | [[package]] 895 | name = "winapi-i686-pc-windows-gnu" 896 | version = "0.4.0" 897 | source = "registry+https://github.com/rust-lang/crates.io-index" 898 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 899 | 900 | [[package]] 901 | name = "winapi-util" 902 | version = "0.1.9" 903 | source = "registry+https://github.com/rust-lang/crates.io-index" 904 | checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" 905 | dependencies = [ 906 | "windows-sys 0.59.0", 907 | ] 908 | 909 | [[package]] 910 | name = "winapi-x86_64-pc-windows-gnu" 911 | version = "0.4.0" 912 | source = "registry+https://github.com/rust-lang/crates.io-index" 913 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 914 | 915 | [[package]] 916 | name = "windows-sys" 917 | version = "0.48.0" 918 | source = "registry+https://github.com/rust-lang/crates.io-index" 919 | checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" 920 | dependencies = [ 921 | "windows-targets 0.48.5", 922 | ] 923 | 924 | [[package]] 925 | name = "windows-sys" 926 | version = "0.52.0" 927 | source = "registry+https://github.com/rust-lang/crates.io-index" 928 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 929 | dependencies = [ 930 | "windows-targets 0.52.6", 931 | ] 932 | 933 | [[package]] 934 | name = "windows-sys" 935 | version = "0.59.0" 936 | source = "registry+https://github.com/rust-lang/crates.io-index" 937 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 938 | dependencies = [ 939 | "windows-targets 0.52.6", 940 | ] 941 | 942 | [[package]] 943 | name = "windows-targets" 944 | version = "0.48.5" 945 | source = "registry+https://github.com/rust-lang/crates.io-index" 946 | checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" 947 | dependencies = [ 948 | "windows_aarch64_gnullvm 0.48.5", 949 | "windows_aarch64_msvc 0.48.5", 950 | "windows_i686_gnu 0.48.5", 951 | "windows_i686_msvc 0.48.5", 952 | "windows_x86_64_gnu 0.48.5", 953 | "windows_x86_64_gnullvm 0.48.5", 954 | "windows_x86_64_msvc 0.48.5", 955 | ] 956 | 957 | [[package]] 958 | name = "windows-targets" 959 | version = "0.52.6" 960 | source = "registry+https://github.com/rust-lang/crates.io-index" 961 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 962 | dependencies = [ 963 | "windows_aarch64_gnullvm 0.52.6", 964 | "windows_aarch64_msvc 0.52.6", 965 | "windows_i686_gnu 0.52.6", 966 | "windows_i686_gnullvm", 967 | "windows_i686_msvc 0.52.6", 968 | "windows_x86_64_gnu 0.52.6", 969 | "windows_x86_64_gnullvm 0.52.6", 970 | "windows_x86_64_msvc 0.52.6", 971 | ] 972 | 973 | [[package]] 974 | name = "windows_aarch64_gnullvm" 975 | version = "0.48.5" 976 | source = "registry+https://github.com/rust-lang/crates.io-index" 977 | checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" 978 | 979 | [[package]] 980 | name = "windows_aarch64_gnullvm" 981 | version = "0.52.6" 982 | source = "registry+https://github.com/rust-lang/crates.io-index" 983 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 984 | 985 | [[package]] 986 | name = "windows_aarch64_msvc" 987 | version = "0.48.5" 988 | source = "registry+https://github.com/rust-lang/crates.io-index" 989 | checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" 990 | 991 | [[package]] 992 | name = "windows_aarch64_msvc" 993 | version = "0.52.6" 994 | source = "registry+https://github.com/rust-lang/crates.io-index" 995 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 996 | 997 | [[package]] 998 | name = "windows_i686_gnu" 999 | version = "0.48.5" 1000 | source = "registry+https://github.com/rust-lang/crates.io-index" 1001 | checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" 1002 | 1003 | [[package]] 1004 | name = "windows_i686_gnu" 1005 | version = "0.52.6" 1006 | source = "registry+https://github.com/rust-lang/crates.io-index" 1007 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 1008 | 1009 | [[package]] 1010 | name = "windows_i686_gnullvm" 1011 | version = "0.52.6" 1012 | source = "registry+https://github.com/rust-lang/crates.io-index" 1013 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 1014 | 1015 | [[package]] 1016 | name = "windows_i686_msvc" 1017 | version = "0.48.5" 1018 | source = "registry+https://github.com/rust-lang/crates.io-index" 1019 | checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" 1020 | 1021 | [[package]] 1022 | name = "windows_i686_msvc" 1023 | version = "0.52.6" 1024 | source = "registry+https://github.com/rust-lang/crates.io-index" 1025 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 1026 | 1027 | [[package]] 1028 | name = "windows_x86_64_gnu" 1029 | version = "0.48.5" 1030 | source = "registry+https://github.com/rust-lang/crates.io-index" 1031 | checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" 1032 | 1033 | [[package]] 1034 | name = "windows_x86_64_gnu" 1035 | version = "0.52.6" 1036 | source = "registry+https://github.com/rust-lang/crates.io-index" 1037 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 1038 | 1039 | [[package]] 1040 | name = "windows_x86_64_gnullvm" 1041 | version = "0.48.5" 1042 | source = "registry+https://github.com/rust-lang/crates.io-index" 1043 | checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" 1044 | 1045 | [[package]] 1046 | name = "windows_x86_64_gnullvm" 1047 | version = "0.52.6" 1048 | source = "registry+https://github.com/rust-lang/crates.io-index" 1049 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 1050 | 1051 | [[package]] 1052 | name = "windows_x86_64_msvc" 1053 | version = "0.48.5" 1054 | source = "registry+https://github.com/rust-lang/crates.io-index" 1055 | checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" 1056 | 1057 | [[package]] 1058 | name = "windows_x86_64_msvc" 1059 | version = "0.52.6" 1060 | source = "registry+https://github.com/rust-lang/crates.io-index" 1061 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 1062 | 1063 | [[package]] 1064 | name = "winnow" 1065 | version = "0.6.20" 1066 | source = "registry+https://github.com/rust-lang/crates.io-index" 1067 | checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" 1068 | dependencies = [ 1069 | "memchr", 1070 | ] 1071 | -------------------------------------------------------------------------------- /examples/python/uv.lock: -------------------------------------------------------------------------------- 1 | version = 1 2 | revision = 1 3 | requires-python = ">=3.10" 4 | 5 | [[package]] 6 | name = "annotated-types" 7 | version = "0.7.0" 8 | source = { registry = "https://pypi.org/simple" } 9 | sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081 } 10 | wheels = [ 11 | { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643 }, 12 | ] 13 | 14 | [[package]] 15 | name = "anyio" 16 | version = "4.9.0" 17 | source = { registry = "https://pypi.org/simple" } 18 | dependencies = [ 19 | { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, 20 | { name = "idna" }, 21 | { name = "sniffio" }, 22 | { name = "typing-extensions", marker = "python_full_version < '3.13'" }, 23 | ] 24 | sdist = { url = "https://files.pythonhosted.org/packages/95/7d/4c1bd541d4dffa1b52bd83fb8527089e097a106fc90b467a7313b105f840/anyio-4.9.0.tar.gz", hash = "sha256:673c0c244e15788651a4ff38710fea9675823028a6f08a5eda409e0c9840a028", size = 190949 } 25 | wheels = [ 26 | { url = "https://files.pythonhosted.org/packages/a1/ee/48ca1a7c89ffec8b6a0c5d02b89c305671d5ffd8d3c94acf8b8c408575bb/anyio-4.9.0-py3-none-any.whl", hash = "sha256:9f76d541cad6e36af7beb62e978876f3b41e3e04f2c1fbf0884604c0a9c4d93c", size = 100916 }, 27 | ] 28 | 29 | [[package]] 30 | name = "certifi" 31 | version = "2025.1.31" 32 | source = { registry = "https://pypi.org/simple" } 33 | sdist = { url = "https://files.pythonhosted.org/packages/1c/ab/c9f1e32b7b1bf505bf26f0ef697775960db7932abeb7b516de930ba2705f/certifi-2025.1.31.tar.gz", hash = "sha256:3d5da6925056f6f18f119200434a4780a94263f10d1c21d032a6f6b2baa20651", size = 167577 } 34 | wheels = [ 35 | { url = "https://files.pythonhosted.org/packages/38/fc/bce832fd4fd99766c04d1ee0eead6b0ec6486fb100ae5e74c1d91292b982/certifi-2025.1.31-py3-none-any.whl", hash = "sha256:ca78db4565a652026a4db2bcdf68f2fb589ea80d0be70e03929ed730746b84fe", size = 166393 }, 36 | ] 37 | 38 | [[package]] 39 | name = "click" 40 | version = "8.1.8" 41 | source = { registry = "https://pypi.org/simple" } 42 | dependencies = [ 43 | { name = "colorama", marker = "sys_platform == 'win32'" }, 44 | ] 45 | sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593 } 46 | wheels = [ 47 | { url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c/click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2", size = 98188 }, 48 | ] 49 | 50 | [[package]] 51 | name = "colorama" 52 | version = "0.4.6" 53 | source = { registry = "https://pypi.org/simple" } 54 | sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 } 55 | wheels = [ 56 | { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 }, 57 | ] 58 | 59 | [[package]] 60 | name = "exceptiongroup" 61 | version = "1.2.2" 62 | source = { registry = "https://pypi.org/simple" } 63 | sdist = { url = "https://files.pythonhosted.org/packages/09/35/2495c4ac46b980e4ca1f6ad6db102322ef3ad2410b79fdde159a4b0f3b92/exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc", size = 28883 } 64 | wheels = [ 65 | { url = "https://files.pythonhosted.org/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b", size = 16453 }, 66 | ] 67 | 68 | [[package]] 69 | name = "fastmcp" 70 | version = "2.2.1" 71 | source = { registry = "https://pypi.org/simple" } 72 | dependencies = [ 73 | { name = "exceptiongroup" }, 74 | { name = "httpx" }, 75 | { name = "mcp" }, 76 | { name = "openapi-pydantic" }, 77 | { name = "python-dotenv" }, 78 | { name = "rich" }, 79 | { name = "typer" }, 80 | { name = "websockets" }, 81 | ] 82 | sdist = { url = "https://files.pythonhosted.org/packages/a5/bb/5da870f11f5cfa6f2c573022e7ee0de9d9f4eef787ce95af3181b60d5f86/fastmcp-2.2.1.tar.gz", hash = "sha256:9c3e977349a324de011c3fcab7eec15de094e8189aef2745297cc5ca687632c2", size = 925991 } 83 | wheels = [ 84 | { url = "https://files.pythonhosted.org/packages/4d/9b/63ab7f64440c39857b3229aa5de6bf5f0849f91a7be04160e22a96f0ca42/fastmcp-2.2.1-py3-none-any.whl", hash = "sha256:0e4071c290f5b00db3fd59068cc7d832981bc7458880ba4d59b8c515fef17545", size = 75906 }, 85 | ] 86 | 87 | [[package]] 88 | name = "h11" 89 | version = "0.14.0" 90 | source = { registry = "https://pypi.org/simple" } 91 | sdist = { url = "https://files.pythonhosted.org/packages/f5/38/3af3d3633a34a3316095b39c8e8fb4853a28a536e55d347bd8d8e9a14b03/h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d", size = 100418 } 92 | wheels = [ 93 | { url = "https://files.pythonhosted.org/packages/95/04/ff642e65ad6b90db43e668d70ffb6736436c7ce41fcc549f4e9472234127/h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761", size = 58259 }, 94 | ] 95 | 96 | [[package]] 97 | name = "httpcore" 98 | version = "1.0.8" 99 | source = { registry = "https://pypi.org/simple" } 100 | dependencies = [ 101 | { name = "certifi" }, 102 | { name = "h11" }, 103 | ] 104 | sdist = { url = "https://files.pythonhosted.org/packages/9f/45/ad3e1b4d448f22c0cff4f5692f5ed0666658578e358b8d58a19846048059/httpcore-1.0.8.tar.gz", hash = "sha256:86e94505ed24ea06514883fd44d2bc02d90e77e7979c8eb71b90f41d364a1bad", size = 85385 } 105 | wheels = [ 106 | { url = "https://files.pythonhosted.org/packages/18/8d/f052b1e336bb2c1fc7ed1aaed898aa570c0b61a09707b108979d9fc6e308/httpcore-1.0.8-py3-none-any.whl", hash = "sha256:5254cf149bcb5f75e9d1b2b9f729ea4a4b883d1ad7379fc632b727cec23674be", size = 78732 }, 107 | ] 108 | 109 | [[package]] 110 | name = "httpx" 111 | version = "0.28.1" 112 | source = { registry = "https://pypi.org/simple" } 113 | dependencies = [ 114 | { name = "anyio" }, 115 | { name = "certifi" }, 116 | { name = "httpcore" }, 117 | { name = "idna" }, 118 | ] 119 | sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406 } 120 | wheels = [ 121 | { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517 }, 122 | ] 123 | 124 | [[package]] 125 | name = "httpx-sse" 126 | version = "0.4.0" 127 | source = { registry = "https://pypi.org/simple" } 128 | sdist = { url = "https://files.pythonhosted.org/packages/4c/60/8f4281fa9bbf3c8034fd54c0e7412e66edbab6bc74c4996bd616f8d0406e/httpx-sse-0.4.0.tar.gz", hash = "sha256:1e81a3a3070ce322add1d3529ed42eb5f70817f45ed6ec915ab753f961139721", size = 12624 } 129 | wheels = [ 130 | { url = "https://files.pythonhosted.org/packages/e1/9b/a181f281f65d776426002f330c31849b86b31fc9d848db62e16f03ff739f/httpx_sse-0.4.0-py3-none-any.whl", hash = "sha256:f329af6eae57eaa2bdfd962b42524764af68075ea87370a2de920af5341e318f", size = 7819 }, 131 | ] 132 | 133 | [[package]] 134 | name = "idna" 135 | version = "3.10" 136 | source = { registry = "https://pypi.org/simple" } 137 | sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490 } 138 | wheels = [ 139 | { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442 }, 140 | ] 141 | 142 | [[package]] 143 | name = "markdown-it-py" 144 | version = "3.0.0" 145 | source = { registry = "https://pypi.org/simple" } 146 | dependencies = [ 147 | { name = "mdurl" }, 148 | ] 149 | sdist = { url = "https://files.pythonhosted.org/packages/38/71/3b932df36c1a044d397a1f92d1cf91ee0a503d91e470cbd670aa66b07ed0/markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb", size = 74596 } 150 | wheels = [ 151 | { url = "https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1", size = 87528 }, 152 | ] 153 | 154 | [[package]] 155 | name = "mcp" 156 | version = "1.6.0" 157 | source = { registry = "https://pypi.org/simple" } 158 | dependencies = [ 159 | { name = "anyio" }, 160 | { name = "httpx" }, 161 | { name = "httpx-sse" }, 162 | { name = "pydantic" }, 163 | { name = "pydantic-settings" }, 164 | { name = "sse-starlette" }, 165 | { name = "starlette" }, 166 | { name = "uvicorn" }, 167 | ] 168 | sdist = { url = "https://files.pythonhosted.org/packages/95/d2/f587cb965a56e992634bebc8611c5b579af912b74e04eb9164bd49527d21/mcp-1.6.0.tar.gz", hash = "sha256:d9324876de2c5637369f43161cd71eebfd803df5a95e46225cab8d280e366723", size = 200031 } 169 | wheels = [ 170 | { url = "https://files.pythonhosted.org/packages/10/30/20a7f33b0b884a9d14dd3aa94ff1ac9da1479fe2ad66dd9e2736075d2506/mcp-1.6.0-py3-none-any.whl", hash = "sha256:7bd24c6ea042dbec44c754f100984d186620d8b841ec30f1b19eda9b93a634d0", size = 76077 }, 171 | ] 172 | 173 | [[package]] 174 | name = "mcp-server-test" 175 | version = "0.0.1" 176 | source = { editable = "." } 177 | dependencies = [ 178 | { name = "fastmcp" }, 179 | ] 180 | 181 | [package.dev-dependencies] 182 | dev = [ 183 | { name = "pyright" }, 184 | ] 185 | 186 | [package.metadata] 187 | requires-dist = [{ name = "fastmcp", specifier = ">=2.2.1" }] 188 | 189 | [package.metadata.requires-dev] 190 | dev = [{ name = "pyright", specifier = ">=1.1.389" }] 191 | 192 | [[package]] 193 | name = "mdurl" 194 | version = "0.1.2" 195 | source = { registry = "https://pypi.org/simple" } 196 | sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729 } 197 | wheels = [ 198 | { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979 }, 199 | ] 200 | 201 | [[package]] 202 | name = "nodeenv" 203 | version = "1.9.1" 204 | source = { registry = "https://pypi.org/simple" } 205 | sdist = { url = "https://files.pythonhosted.org/packages/43/16/fc88b08840de0e0a72a2f9d8c6bae36be573e475a6326ae854bcc549fc45/nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f", size = 47437 } 206 | wheels = [ 207 | { url = "https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9", size = 22314 }, 208 | ] 209 | 210 | [[package]] 211 | name = "openapi-pydantic" 212 | version = "0.5.1" 213 | source = { registry = "https://pypi.org/simple" } 214 | dependencies = [ 215 | { name = "pydantic" }, 216 | ] 217 | sdist = { url = "https://files.pythonhosted.org/packages/02/2e/58d83848dd1a79cb92ed8e63f6ba901ca282c5f09d04af9423ec26c56fd7/openapi_pydantic-0.5.1.tar.gz", hash = "sha256:ff6835af6bde7a459fb93eb93bb92b8749b754fc6e51b2f1590a19dc3005ee0d", size = 60892 } 218 | wheels = [ 219 | { url = "https://files.pythonhosted.org/packages/12/cf/03675d8bd8ecbf4445504d8071adab19f5f993676795708e36402ab38263/openapi_pydantic-0.5.1-py3-none-any.whl", hash = "sha256:a3a09ef4586f5bd760a8df7f43028b60cafb6d9f61de2acba9574766255ab146", size = 96381 }, 220 | ] 221 | 222 | [[package]] 223 | name = "pydantic" 224 | version = "2.11.3" 225 | source = { registry = "https://pypi.org/simple" } 226 | dependencies = [ 227 | { name = "annotated-types" }, 228 | { name = "pydantic-core" }, 229 | { name = "typing-extensions" }, 230 | { name = "typing-inspection" }, 231 | ] 232 | sdist = { url = "https://files.pythonhosted.org/packages/10/2e/ca897f093ee6c5f3b0bee123ee4465c50e75431c3d5b6a3b44a47134e891/pydantic-2.11.3.tar.gz", hash = "sha256:7471657138c16adad9322fe3070c0116dd6c3ad8d649300e3cbdfe91f4db4ec3", size = 785513 } 233 | wheels = [ 234 | { url = "https://files.pythonhosted.org/packages/b0/1d/407b29780a289868ed696d1616f4aad49d6388e5a77f567dcd2629dcd7b8/pydantic-2.11.3-py3-none-any.whl", hash = "sha256:a082753436a07f9ba1289c6ffa01cd93db3548776088aa917cc43b63f68fa60f", size = 443591 }, 235 | ] 236 | 237 | [[package]] 238 | name = "pydantic-core" 239 | version = "2.33.1" 240 | source = { registry = "https://pypi.org/simple" } 241 | dependencies = [ 242 | { name = "typing-extensions" }, 243 | ] 244 | sdist = { url = "https://files.pythonhosted.org/packages/17/19/ed6a078a5287aea7922de6841ef4c06157931622c89c2a47940837b5eecd/pydantic_core-2.33.1.tar.gz", hash = "sha256:bcc9c6fdb0ced789245b02b7d6603e17d1563064ddcfc36f046b61c0c05dd9df", size = 434395 } 245 | wheels = [ 246 | { url = "https://files.pythonhosted.org/packages/38/ea/5f572806ab4d4223d11551af814d243b0e3e02cc6913def4d1fe4a5ca41c/pydantic_core-2.33.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:3077cfdb6125cc8dab61b155fdd714663e401f0e6883f9632118ec12cf42df26", size = 2044021 }, 247 | { url = "https://files.pythonhosted.org/packages/8c/d1/f86cc96d2aa80e3881140d16d12ef2b491223f90b28b9a911346c04ac359/pydantic_core-2.33.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8ffab8b2908d152e74862d276cf5017c81a2f3719f14e8e3e8d6b83fda863927", size = 1861742 }, 248 | { url = "https://files.pythonhosted.org/packages/37/08/fbd2cd1e9fc735a0df0142fac41c114ad9602d1c004aea340169ae90973b/pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5183e4f6a2d468787243ebcd70cf4098c247e60d73fb7d68d5bc1e1beaa0c4db", size = 1910414 }, 249 | { url = "https://files.pythonhosted.org/packages/7f/73/3ac217751decbf8d6cb9443cec9b9eb0130eeada6ae56403e11b486e277e/pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:398a38d323f37714023be1e0285765f0a27243a8b1506b7b7de87b647b517e48", size = 1996848 }, 250 | { url = "https://files.pythonhosted.org/packages/9a/f5/5c26b265cdcff2661e2520d2d1e9db72d117ea00eb41e00a76efe68cb009/pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:87d3776f0001b43acebfa86f8c64019c043b55cc5a6a2e313d728b5c95b46969", size = 2141055 }, 251 | { url = "https://files.pythonhosted.org/packages/5d/14/a9c3cee817ef2f8347c5ce0713e91867a0dceceefcb2973942855c917379/pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c566dd9c5f63d22226409553531f89de0cac55397f2ab8d97d6f06cfce6d947e", size = 2753806 }, 252 | { url = "https://files.pythonhosted.org/packages/f2/68/866ce83a51dd37e7c604ce0050ff6ad26de65a7799df89f4db87dd93d1d6/pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a0d5f3acc81452c56895e90643a625302bd6be351e7010664151cc55b7b97f89", size = 2007777 }, 253 | { url = "https://files.pythonhosted.org/packages/b6/a8/36771f4404bb3e49bd6d4344da4dede0bf89cc1e01f3b723c47248a3761c/pydantic_core-2.33.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d3a07fadec2a13274a8d861d3d37c61e97a816beae717efccaa4b36dfcaadcde", size = 2122803 }, 254 | { url = "https://files.pythonhosted.org/packages/18/9c/730a09b2694aa89360d20756369822d98dc2f31b717c21df33b64ffd1f50/pydantic_core-2.33.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:f99aeda58dce827f76963ee87a0ebe75e648c72ff9ba1174a253f6744f518f65", size = 2086755 }, 255 | { url = "https://files.pythonhosted.org/packages/54/8e/2dccd89602b5ec31d1c58138d02340ecb2ebb8c2cac3cc66b65ce3edb6ce/pydantic_core-2.33.1-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:902dbc832141aa0ec374f4310f1e4e7febeebc3256f00dc359a9ac3f264a45dc", size = 2257358 }, 256 | { url = "https://files.pythonhosted.org/packages/d1/9c/126e4ac1bfad8a95a9837acdd0963695d69264179ba4ede8b8c40d741702/pydantic_core-2.33.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:fe44d56aa0b00d66640aa84a3cbe80b7a3ccdc6f0b1ca71090696a6d4777c091", size = 2257916 }, 257 | { url = "https://files.pythonhosted.org/packages/7d/ba/91eea2047e681a6853c81c20aeca9dcdaa5402ccb7404a2097c2adf9d038/pydantic_core-2.33.1-cp310-cp310-win32.whl", hash = "sha256:ed3eb16d51257c763539bde21e011092f127a2202692afaeaccb50db55a31383", size = 1923823 }, 258 | { url = "https://files.pythonhosted.org/packages/94/c0/fcdf739bf60d836a38811476f6ecd50374880b01e3014318b6e809ddfd52/pydantic_core-2.33.1-cp310-cp310-win_amd64.whl", hash = "sha256:694ad99a7f6718c1a498dc170ca430687a39894a60327f548e02a9c7ee4b6504", size = 1952494 }, 259 | { url = "https://files.pythonhosted.org/packages/d6/7f/c6298830cb780c46b4f46bb24298d01019ffa4d21769f39b908cd14bbd50/pydantic_core-2.33.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:6e966fc3caaf9f1d96b349b0341c70c8d6573bf1bac7261f7b0ba88f96c56c24", size = 2044224 }, 260 | { url = "https://files.pythonhosted.org/packages/a8/65/6ab3a536776cad5343f625245bd38165d6663256ad43f3a200e5936afd6c/pydantic_core-2.33.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bfd0adeee563d59c598ceabddf2c92eec77abcb3f4a391b19aa7366170bd9e30", size = 1858845 }, 261 | { url = "https://files.pythonhosted.org/packages/e9/15/9a22fd26ba5ee8c669d4b8c9c244238e940cd5d818649603ca81d1c69861/pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91815221101ad3c6b507804178a7bb5cb7b2ead9ecd600041669c8d805ebd595", size = 1910029 }, 262 | { url = "https://files.pythonhosted.org/packages/d5/33/8cb1a62818974045086f55f604044bf35b9342900318f9a2a029a1bec460/pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9fea9c1869bb4742d174a57b4700c6dadea951df8b06de40c2fedb4f02931c2e", size = 1997784 }, 263 | { url = "https://files.pythonhosted.org/packages/c0/ca/49958e4df7715c71773e1ea5be1c74544923d10319173264e6db122543f9/pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1d20eb4861329bb2484c021b9d9a977566ab16d84000a57e28061151c62b349a", size = 2141075 }, 264 | { url = "https://files.pythonhosted.org/packages/7b/a6/0b3a167a9773c79ba834b959b4e18c3ae9216b8319bd8422792abc8a41b1/pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0fb935c5591573ae3201640579f30128ccc10739b45663f93c06796854405505", size = 2745849 }, 265 | { url = "https://files.pythonhosted.org/packages/0b/60/516484135173aa9e5861d7a0663dce82e4746d2e7f803627d8c25dfa5578/pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c964fd24e6166420d18fb53996d8c9fd6eac9bf5ae3ec3d03015be4414ce497f", size = 2005794 }, 266 | { url = "https://files.pythonhosted.org/packages/86/70/05b1eb77459ad47de00cf78ee003016da0cedf8b9170260488d7c21e9181/pydantic_core-2.33.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:681d65e9011f7392db5aa002b7423cc442d6a673c635668c227c6c8d0e5a4f77", size = 2123237 }, 267 | { url = "https://files.pythonhosted.org/packages/c7/57/12667a1409c04ae7dc95d3b43158948eb0368e9c790be8b095cb60611459/pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e100c52f7355a48413e2999bfb4e139d2977a904495441b374f3d4fb4a170961", size = 2086351 }, 268 | { url = "https://files.pythonhosted.org/packages/57/61/cc6d1d1c1664b58fdd6ecc64c84366c34ec9b606aeb66cafab6f4088974c/pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:048831bd363490be79acdd3232f74a0e9951b11b2b4cc058aeb72b22fdc3abe1", size = 2258914 }, 269 | { url = "https://files.pythonhosted.org/packages/d1/0a/edb137176a1f5419b2ddee8bde6a0a548cfa3c74f657f63e56232df8de88/pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:bdc84017d28459c00db6f918a7272a5190bec3090058334e43a76afb279eac7c", size = 2257385 }, 270 | { url = "https://files.pythonhosted.org/packages/26/3c/48ca982d50e4b0e1d9954919c887bdc1c2b462801bf408613ccc641b3daa/pydantic_core-2.33.1-cp311-cp311-win32.whl", hash = "sha256:32cd11c5914d1179df70406427097c7dcde19fddf1418c787540f4b730289896", size = 1923765 }, 271 | { url = "https://files.pythonhosted.org/packages/33/cd/7ab70b99e5e21559f5de38a0928ea84e6f23fdef2b0d16a6feaf942b003c/pydantic_core-2.33.1-cp311-cp311-win_amd64.whl", hash = "sha256:2ea62419ba8c397e7da28a9170a16219d310d2cf4970dbc65c32faf20d828c83", size = 1950688 }, 272 | { url = "https://files.pythonhosted.org/packages/4b/ae/db1fc237b82e2cacd379f63e3335748ab88b5adde98bf7544a1b1bd10a84/pydantic_core-2.33.1-cp311-cp311-win_arm64.whl", hash = "sha256:fc903512177361e868bc1f5b80ac8c8a6e05fcdd574a5fb5ffeac5a9982b9e89", size = 1908185 }, 273 | { url = "https://files.pythonhosted.org/packages/c8/ce/3cb22b07c29938f97ff5f5bb27521f95e2ebec399b882392deb68d6c440e/pydantic_core-2.33.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:1293d7febb995e9d3ec3ea09caf1a26214eec45b0f29f6074abb004723fc1de8", size = 2026640 }, 274 | { url = "https://files.pythonhosted.org/packages/19/78/f381d643b12378fee782a72126ec5d793081ef03791c28a0fd542a5bee64/pydantic_core-2.33.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:99b56acd433386c8f20be5c4000786d1e7ca0523c8eefc995d14d79c7a081498", size = 1852649 }, 275 | { url = "https://files.pythonhosted.org/packages/9d/2b/98a37b80b15aac9eb2c6cfc6dbd35e5058a352891c5cce3a8472d77665a6/pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:35a5ec3fa8c2fe6c53e1b2ccc2454398f95d5393ab398478f53e1afbbeb4d939", size = 1892472 }, 276 | { url = "https://files.pythonhosted.org/packages/4e/d4/3c59514e0f55a161004792b9ff3039da52448f43f5834f905abef9db6e4a/pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b172f7b9d2f3abc0efd12e3386f7e48b576ef309544ac3a63e5e9cdd2e24585d", size = 1977509 }, 277 | { url = "https://files.pythonhosted.org/packages/a9/b6/c2c7946ef70576f79a25db59a576bce088bdc5952d1b93c9789b091df716/pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9097b9f17f91eea659b9ec58148c0747ec354a42f7389b9d50701610d86f812e", size = 2128702 }, 278 | { url = "https://files.pythonhosted.org/packages/88/fe/65a880f81e3f2a974312b61f82a03d85528f89a010ce21ad92f109d94deb/pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cc77ec5b7e2118b152b0d886c7514a4653bcb58c6b1d760134a9fab915f777b3", size = 2679428 }, 279 | { url = "https://files.pythonhosted.org/packages/6f/ff/4459e4146afd0462fb483bb98aa2436d69c484737feaceba1341615fb0ac/pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d5e3d15245b08fa4a84cefc6c9222e6f37c98111c8679fbd94aa145f9a0ae23d", size = 2008753 }, 280 | { url = "https://files.pythonhosted.org/packages/7c/76/1c42e384e8d78452ededac8b583fe2550c84abfef83a0552e0e7478ccbc3/pydantic_core-2.33.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ef99779001d7ac2e2461d8ab55d3373fe7315caefdbecd8ced75304ae5a6fc6b", size = 2114849 }, 281 | { url = "https://files.pythonhosted.org/packages/00/72/7d0cf05095c15f7ffe0eb78914b166d591c0eed72f294da68378da205101/pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:fc6bf8869e193855e8d91d91f6bf59699a5cdfaa47a404e278e776dd7f168b39", size = 2069541 }, 282 | { url = "https://files.pythonhosted.org/packages/b3/69/94a514066bb7d8be499aa764926937409d2389c09be0b5107a970286ef81/pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:b1caa0bc2741b043db7823843e1bde8aaa58a55a58fda06083b0569f8b45693a", size = 2239225 }, 283 | { url = "https://files.pythonhosted.org/packages/84/b0/e390071eadb44b41f4f54c3cef64d8bf5f9612c92686c9299eaa09e267e2/pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:ec259f62538e8bf364903a7d0d0239447059f9434b284f5536e8402b7dd198db", size = 2248373 }, 284 | { url = "https://files.pythonhosted.org/packages/d6/b2/288b3579ffc07e92af66e2f1a11be3b056fe1214aab314748461f21a31c3/pydantic_core-2.33.1-cp312-cp312-win32.whl", hash = "sha256:e14f369c98a7c15772b9da98987f58e2b509a93235582838bd0d1d8c08b68fda", size = 1907034 }, 285 | { url = "https://files.pythonhosted.org/packages/02/28/58442ad1c22b5b6742b992ba9518420235adced665513868f99a1c2638a5/pydantic_core-2.33.1-cp312-cp312-win_amd64.whl", hash = "sha256:1c607801d85e2e123357b3893f82c97a42856192997b95b4d8325deb1cd0c5f4", size = 1956848 }, 286 | { url = "https://files.pythonhosted.org/packages/a1/eb/f54809b51c7e2a1d9f439f158b8dd94359321abcc98767e16fc48ae5a77e/pydantic_core-2.33.1-cp312-cp312-win_arm64.whl", hash = "sha256:8d13f0276806ee722e70a1c93da19748594f19ac4299c7e41237fc791d1861ea", size = 1903986 }, 287 | { url = "https://files.pythonhosted.org/packages/7a/24/eed3466a4308d79155f1cdd5c7432c80ddcc4530ba8623b79d5ced021641/pydantic_core-2.33.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:70af6a21237b53d1fe7b9325b20e65cbf2f0a848cf77bed492b029139701e66a", size = 2033551 }, 288 | { url = "https://files.pythonhosted.org/packages/ab/14/df54b1a0bc9b6ded9b758b73139d2c11b4e8eb43e8ab9c5847c0a2913ada/pydantic_core-2.33.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:282b3fe1bbbe5ae35224a0dbd05aed9ccabccd241e8e6b60370484234b456266", size = 1852785 }, 289 | { url = "https://files.pythonhosted.org/packages/fa/96/e275f15ff3d34bb04b0125d9bc8848bf69f25d784d92a63676112451bfb9/pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4b315e596282bbb5822d0c7ee9d255595bd7506d1cb20c2911a4da0b970187d3", size = 1897758 }, 290 | { url = "https://files.pythonhosted.org/packages/b7/d8/96bc536e975b69e3a924b507d2a19aedbf50b24e08c80fb00e35f9baaed8/pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1dfae24cf9921875ca0ca6a8ecb4bb2f13c855794ed0d468d6abbec6e6dcd44a", size = 1986109 }, 291 | { url = "https://files.pythonhosted.org/packages/90/72/ab58e43ce7e900b88cb571ed057b2fcd0e95b708a2e0bed475b10130393e/pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6dd8ecfde08d8bfadaea669e83c63939af76f4cf5538a72597016edfa3fad516", size = 2129159 }, 292 | { url = "https://files.pythonhosted.org/packages/dc/3f/52d85781406886c6870ac995ec0ba7ccc028b530b0798c9080531b409fdb/pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2f593494876eae852dc98c43c6f260f45abdbfeec9e4324e31a481d948214764", size = 2680222 }, 293 | { url = "https://files.pythonhosted.org/packages/f4/56/6e2ef42f363a0eec0fd92f74a91e0ac48cd2e49b695aac1509ad81eee86a/pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:948b73114f47fd7016088e5186d13faf5e1b2fe83f5e320e371f035557fd264d", size = 2006980 }, 294 | { url = "https://files.pythonhosted.org/packages/4c/c0/604536c4379cc78359f9ee0aa319f4aedf6b652ec2854953f5a14fc38c5a/pydantic_core-2.33.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e11f3864eb516af21b01e25fac915a82e9ddad3bb0fb9e95a246067398b435a4", size = 2120840 }, 295 | { url = "https://files.pythonhosted.org/packages/1f/46/9eb764814f508f0edfb291a0f75d10854d78113fa13900ce13729aaec3ae/pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:549150be302428b56fdad0c23c2741dcdb5572413776826c965619a25d9c6bde", size = 2072518 }, 296 | { url = "https://files.pythonhosted.org/packages/42/e3/fb6b2a732b82d1666fa6bf53e3627867ea3131c5f39f98ce92141e3e3dc1/pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:495bc156026efafd9ef2d82372bd38afce78ddd82bf28ef5276c469e57c0c83e", size = 2248025 }, 297 | { url = "https://files.pythonhosted.org/packages/5c/9d/fbe8fe9d1aa4dac88723f10a921bc7418bd3378a567cb5e21193a3c48b43/pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ec79de2a8680b1a67a07490bddf9636d5c2fab609ba8c57597e855fa5fa4dacd", size = 2254991 }, 298 | { url = "https://files.pythonhosted.org/packages/aa/99/07e2237b8a66438d9b26482332cda99a9acccb58d284af7bc7c946a42fd3/pydantic_core-2.33.1-cp313-cp313-win32.whl", hash = "sha256:ee12a7be1742f81b8a65b36c6921022301d466b82d80315d215c4c691724986f", size = 1915262 }, 299 | { url = "https://files.pythonhosted.org/packages/8a/f4/e457a7849beeed1e5defbcf5051c6f7b3c91a0624dd31543a64fc9adcf52/pydantic_core-2.33.1-cp313-cp313-win_amd64.whl", hash = "sha256:ede9b407e39949d2afc46385ce6bd6e11588660c26f80576c11c958e6647bc40", size = 1956626 }, 300 | { url = "https://files.pythonhosted.org/packages/20/d0/e8d567a7cff7b04e017ae164d98011f1e1894269fe8e90ea187a3cbfb562/pydantic_core-2.33.1-cp313-cp313-win_arm64.whl", hash = "sha256:aa687a23d4b7871a00e03ca96a09cad0f28f443690d300500603bd0adba4b523", size = 1909590 }, 301 | { url = "https://files.pythonhosted.org/packages/ef/fd/24ea4302d7a527d672c5be06e17df16aabfb4e9fdc6e0b345c21580f3d2a/pydantic_core-2.33.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:401d7b76e1000d0dd5538e6381d28febdcacb097c8d340dde7d7fc6e13e9f95d", size = 1812963 }, 302 | { url = "https://files.pythonhosted.org/packages/5f/95/4fbc2ecdeb5c1c53f1175a32d870250194eb2fdf6291b795ab08c8646d5d/pydantic_core-2.33.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7aeb055a42d734c0255c9e489ac67e75397d59c6fbe60d155851e9782f276a9c", size = 1986896 }, 303 | { url = "https://files.pythonhosted.org/packages/71/ae/fe31e7f4a62431222d8f65a3bd02e3fa7e6026d154a00818e6d30520ea77/pydantic_core-2.33.1-cp313-cp313t-win_amd64.whl", hash = "sha256:338ea9b73e6e109f15ab439e62cb3b78aa752c7fd9536794112e14bee02c8d18", size = 1931810 }, 304 | { url = "https://files.pythonhosted.org/packages/9c/c7/8b311d5adb0fe00a93ee9b4e92a02b0ec08510e9838885ef781ccbb20604/pydantic_core-2.33.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5c834f54f8f4640fd7e4b193f80eb25a0602bba9e19b3cd2fc7ffe8199f5ae02", size = 2041659 }, 305 | { url = "https://files.pythonhosted.org/packages/8a/d6/4f58d32066a9e26530daaf9adc6664b01875ae0691570094968aaa7b8fcc/pydantic_core-2.33.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:049e0de24cf23766f12cc5cc71d8abc07d4a9deb9061b334b62093dedc7cb068", size = 1873294 }, 306 | { url = "https://files.pythonhosted.org/packages/f7/3f/53cc9c45d9229da427909c751f8ed2bf422414f7664ea4dde2d004f596ba/pydantic_core-2.33.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a28239037b3d6f16916a4c831a5a0eadf856bdd6d2e92c10a0da3a59eadcf3e", size = 1903771 }, 307 | { url = "https://files.pythonhosted.org/packages/f0/49/bf0783279ce674eb9903fb9ae43f6c614cb2f1c4951370258823f795368b/pydantic_core-2.33.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9d3da303ab5f378a268fa7d45f37d7d85c3ec19769f28d2cc0c61826a8de21fe", size = 2083558 }, 308 | { url = "https://files.pythonhosted.org/packages/9c/5b/0d998367687f986c7d8484a2c476d30f07bf5b8b1477649a6092bd4c540e/pydantic_core-2.33.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:25626fb37b3c543818c14821afe0fd3830bc327a43953bc88db924b68c5723f1", size = 2118038 }, 309 | { url = "https://files.pythonhosted.org/packages/b3/33/039287d410230ee125daee57373ac01940d3030d18dba1c29cd3089dc3ca/pydantic_core-2.33.1-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:3ab2d36e20fbfcce8f02d73c33a8a7362980cff717926bbae030b93ae46b56c7", size = 2079315 }, 310 | { url = "https://files.pythonhosted.org/packages/1f/85/6d8b2646d99c062d7da2d0ab2faeb0d6ca9cca4c02da6076376042a20da3/pydantic_core-2.33.1-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:2f9284e11c751b003fd4215ad92d325d92c9cb19ee6729ebd87e3250072cdcde", size = 2249063 }, 311 | { url = "https://files.pythonhosted.org/packages/17/d7/c37d208d5738f7b9ad8f22ae8a727d88ebf9c16c04ed2475122cc3f7224a/pydantic_core-2.33.1-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:048c01eee07d37cbd066fc512b9d8b5ea88ceeb4e629ab94b3e56965ad655add", size = 2254631 }, 312 | { url = "https://files.pythonhosted.org/packages/13/e0/bafa46476d328e4553b85ab9b2f7409e7aaef0ce4c937c894821c542d347/pydantic_core-2.33.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:5ccd429694cf26af7997595d627dd2637e7932214486f55b8a357edaac9dae8c", size = 2080877 }, 313 | { url = "https://files.pythonhosted.org/packages/0b/76/1794e440c1801ed35415238d2c728f26cd12695df9057154ad768b7b991c/pydantic_core-2.33.1-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:3a371dc00282c4b84246509a5ddc808e61b9864aa1eae9ecc92bb1268b82db4a", size = 2042858 }, 314 | { url = "https://files.pythonhosted.org/packages/73/b4/9cd7b081fb0b1b4f8150507cd59d27b275c3e22ad60b35cb19ea0977d9b9/pydantic_core-2.33.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:f59295ecc75a1788af8ba92f2e8c6eeaa5a94c22fc4d151e8d9638814f85c8fc", size = 1873745 }, 315 | { url = "https://files.pythonhosted.org/packages/e1/d7/9ddb7575d4321e40d0363903c2576c8c0c3280ebea137777e5ab58d723e3/pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:08530b8ac922003033f399128505f513e30ca770527cc8bbacf75a84fcc2c74b", size = 1904188 }, 316 | { url = "https://files.pythonhosted.org/packages/d1/a8/3194ccfe461bb08da19377ebec8cb4f13c9bd82e13baebc53c5c7c39a029/pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bae370459da6a5466978c0eacf90690cb57ec9d533f8e63e564ef3822bfa04fe", size = 2083479 }, 317 | { url = "https://files.pythonhosted.org/packages/42/c7/84cb569555d7179ca0b3f838cef08f66f7089b54432f5b8599aac6e9533e/pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e3de2777e3b9f4d603112f78006f4ae0acb936e95f06da6cb1a45fbad6bdb4b5", size = 2118415 }, 318 | { url = "https://files.pythonhosted.org/packages/3b/67/72abb8c73e0837716afbb58a59cc9e3ae43d1aa8677f3b4bc72c16142716/pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:3a64e81e8cba118e108d7126362ea30e021291b7805d47e4896e52c791be2761", size = 2079623 }, 319 | { url = "https://files.pythonhosted.org/packages/0b/cd/c59707e35a47ba4cbbf153c3f7c56420c58653b5801b055dc52cccc8e2dc/pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:52928d8c1b6bda03cc6d811e8923dffc87a2d3c8b3bfd2ce16471c7147a24850", size = 2250175 }, 320 | { url = "https://files.pythonhosted.org/packages/84/32/e4325a6676b0bed32d5b084566ec86ed7fd1e9bcbfc49c578b1755bde920/pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:1b30d92c9412beb5ac6b10a3eb7ef92ccb14e3f2a8d7732e2d739f58b3aa7544", size = 2254674 }, 321 | { url = "https://files.pythonhosted.org/packages/12/6f/5596dc418f2e292ffc661d21931ab34591952e2843e7168ea5a52591f6ff/pydantic_core-2.33.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:f995719707e0e29f0f41a8aa3bcea6e761a36c9136104d3189eafb83f5cec5e5", size = 2080951 }, 322 | ] 323 | 324 | [[package]] 325 | name = "pydantic-settings" 326 | version = "2.9.1" 327 | source = { registry = "https://pypi.org/simple" } 328 | dependencies = [ 329 | { name = "pydantic" }, 330 | { name = "python-dotenv" }, 331 | { name = "typing-inspection" }, 332 | ] 333 | sdist = { url = "https://files.pythonhosted.org/packages/67/1d/42628a2c33e93f8e9acbde0d5d735fa0850f3e6a2f8cb1eb6c40b9a732ac/pydantic_settings-2.9.1.tar.gz", hash = "sha256:c509bf79d27563add44e8446233359004ed85066cd096d8b510f715e6ef5d268", size = 163234 } 334 | wheels = [ 335 | { url = "https://files.pythonhosted.org/packages/b6/5f/d6d641b490fd3ec2c4c13b4244d68deea3a1b970a97be64f34fb5504ff72/pydantic_settings-2.9.1-py3-none-any.whl", hash = "sha256:59b4f431b1defb26fe620c71a7d3968a710d719f5f4cdbbdb7926edeb770f6ef", size = 44356 }, 336 | ] 337 | 338 | [[package]] 339 | name = "pygments" 340 | version = "2.19.1" 341 | source = { registry = "https://pypi.org/simple" } 342 | sdist = { url = "https://files.pythonhosted.org/packages/7c/2d/c3338d48ea6cc0feb8446d8e6937e1408088a72a39937982cc6111d17f84/pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f", size = 4968581 } 343 | wheels = [ 344 | { url = "https://files.pythonhosted.org/packages/8a/0b/9fcc47d19c48b59121088dd6da2488a49d5f72dacf8262e2790a1d2c7d15/pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c", size = 1225293 }, 345 | ] 346 | 347 | [[package]] 348 | name = "pyright" 349 | version = "1.1.399" 350 | source = { registry = "https://pypi.org/simple" } 351 | dependencies = [ 352 | { name = "nodeenv" }, 353 | { name = "typing-extensions" }, 354 | ] 355 | sdist = { url = "https://files.pythonhosted.org/packages/db/9d/d91d5f6d26b2db95476fefc772e2b9a16d54c6bd0ea6bb5c1b6d635ab8b4/pyright-1.1.399.tar.gz", hash = "sha256:439035d707a36c3d1b443aec980bc37053fbda88158eded24b8eedcf1c7b7a1b", size = 3856954 } 356 | wheels = [ 357 | { url = "https://files.pythonhosted.org/packages/2f/b5/380380c9e7a534cb1783c70c3e8ac6d1193c599650a55838d0557586796e/pyright-1.1.399-py3-none-any.whl", hash = "sha256:55f9a875ddf23c9698f24208c764465ffdfd38be6265f7faf9a176e1dc549f3b", size = 5592584 }, 358 | ] 359 | 360 | [[package]] 361 | name = "python-dotenv" 362 | version = "1.1.0" 363 | source = { registry = "https://pypi.org/simple" } 364 | sdist = { url = "https://files.pythonhosted.org/packages/88/2c/7bb1416c5620485aa793f2de31d3df393d3686aa8a8506d11e10e13c5baf/python_dotenv-1.1.0.tar.gz", hash = "sha256:41f90bc6f5f177fb41f53e87666db362025010eb28f60a01c9143bfa33a2b2d5", size = 39920 } 365 | wheels = [ 366 | { url = "https://files.pythonhosted.org/packages/1e/18/98a99ad95133c6a6e2005fe89faedf294a748bd5dc803008059409ac9b1e/python_dotenv-1.1.0-py3-none-any.whl", hash = "sha256:d7c01d9e2293916c18baf562d95698754b0dbbb5e74d457c45d4f6561fb9d55d", size = 20256 }, 367 | ] 368 | 369 | [[package]] 370 | name = "rich" 371 | version = "14.0.0" 372 | source = { registry = "https://pypi.org/simple" } 373 | dependencies = [ 374 | { name = "markdown-it-py" }, 375 | { name = "pygments" }, 376 | { name = "typing-extensions", marker = "python_full_version < '3.11'" }, 377 | ] 378 | sdist = { url = "https://files.pythonhosted.org/packages/a1/53/830aa4c3066a8ab0ae9a9955976fb770fe9c6102117c8ec4ab3ea62d89e8/rich-14.0.0.tar.gz", hash = "sha256:82f1bc23a6a21ebca4ae0c45af9bdbc492ed20231dcb63f297d6d1021a9d5725", size = 224078 } 379 | wheels = [ 380 | { url = "https://files.pythonhosted.org/packages/0d/9b/63f4c7ebc259242c89b3acafdb37b41d1185c07ff0011164674e9076b491/rich-14.0.0-py3-none-any.whl", hash = "sha256:1c9491e1951aac09caffd42f448ee3d04e58923ffe14993f6e83068dc395d7e0", size = 243229 }, 381 | ] 382 | 383 | [[package]] 384 | name = "shellingham" 385 | version = "1.5.4" 386 | source = { registry = "https://pypi.org/simple" } 387 | sdist = { url = "https://files.pythonhosted.org/packages/58/15/8b3609fd3830ef7b27b655beb4b4e9c62313a4e8da8c676e142cc210d58e/shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de", size = 10310 } 388 | wheels = [ 389 | { url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755 }, 390 | ] 391 | 392 | [[package]] 393 | name = "sniffio" 394 | version = "1.3.1" 395 | source = { registry = "https://pypi.org/simple" } 396 | sdist = { url = "https://files.pythonhosted.org/packages/a2/87/a6771e1546d97e7e041b6ae58d80074f81b7d5121207425c964ddf5cfdbd/sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc", size = 20372 } 397 | wheels = [ 398 | { url = "https://files.pythonhosted.org/packages/e9/44/75a9c9421471a6c4805dbf2356f7c181a29c1879239abab1ea2cc8f38b40/sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2", size = 10235 }, 399 | ] 400 | 401 | [[package]] 402 | name = "sse-starlette" 403 | version = "2.2.1" 404 | source = { registry = "https://pypi.org/simple" } 405 | dependencies = [ 406 | { name = "anyio" }, 407 | { name = "starlette" }, 408 | ] 409 | sdist = { url = "https://files.pythonhosted.org/packages/71/a4/80d2a11af59fe75b48230846989e93979c892d3a20016b42bb44edb9e398/sse_starlette-2.2.1.tar.gz", hash = "sha256:54470d5f19274aeed6b2d473430b08b4b379ea851d953b11d7f1c4a2c118b419", size = 17376 } 410 | wheels = [ 411 | { url = "https://files.pythonhosted.org/packages/d9/e0/5b8bd393f27f4a62461c5cf2479c75a2cc2ffa330976f9f00f5f6e4f50eb/sse_starlette-2.2.1-py3-none-any.whl", hash = "sha256:6410a3d3ba0c89e7675d4c273a301d64649c03a5ef1ca101f10b47f895fd0e99", size = 10120 }, 412 | ] 413 | 414 | [[package]] 415 | name = "starlette" 416 | version = "0.46.2" 417 | source = { registry = "https://pypi.org/simple" } 418 | dependencies = [ 419 | { name = "anyio" }, 420 | ] 421 | sdist = { url = "https://files.pythonhosted.org/packages/ce/20/08dfcd9c983f6a6f4a1000d934b9e6d626cff8d2eeb77a89a68eef20a2b7/starlette-0.46.2.tar.gz", hash = "sha256:7f7361f34eed179294600af672f565727419830b54b7b084efe44bb82d2fccd5", size = 2580846 } 422 | wheels = [ 423 | { url = "https://files.pythonhosted.org/packages/8b/0c/9d30a4ebeb6db2b25a841afbb80f6ef9a854fc3b41be131d249a977b4959/starlette-0.46.2-py3-none-any.whl", hash = "sha256:595633ce89f8ffa71a015caed34a5b2dc1c0cdb3f0f1fbd1e69339cf2abeec35", size = 72037 }, 424 | ] 425 | 426 | [[package]] 427 | name = "typer" 428 | version = "0.15.2" 429 | source = { registry = "https://pypi.org/simple" } 430 | dependencies = [ 431 | { name = "click" }, 432 | { name = "rich" }, 433 | { name = "shellingham" }, 434 | { name = "typing-extensions" }, 435 | ] 436 | sdist = { url = "https://files.pythonhosted.org/packages/8b/6f/3991f0f1c7fcb2df31aef28e0594d8d54b05393a0e4e34c65e475c2a5d41/typer-0.15.2.tar.gz", hash = "sha256:ab2fab47533a813c49fe1f16b1a370fd5819099c00b119e0633df65f22144ba5", size = 100711 } 437 | wheels = [ 438 | { url = "https://files.pythonhosted.org/packages/7f/fc/5b29fea8cee020515ca82cc68e3b8e1e34bb19a3535ad854cac9257b414c/typer-0.15.2-py3-none-any.whl", hash = "sha256:46a499c6107d645a9c13f7ee46c5d5096cae6f5fc57dd11eccbbb9ae3e44ddfc", size = 45061 }, 439 | ] 440 | 441 | [[package]] 442 | name = "typing-extensions" 443 | version = "4.13.2" 444 | source = { registry = "https://pypi.org/simple" } 445 | sdist = { url = "https://files.pythonhosted.org/packages/f6/37/23083fcd6e35492953e8d2aaaa68b860eb422b34627b13f2ce3eb6106061/typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef", size = 106967 } 446 | wheels = [ 447 | { url = "https://files.pythonhosted.org/packages/8b/54/b1ae86c0973cc6f0210b53d508ca3641fb6d0c56823f288d108bc7ab3cc8/typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c", size = 45806 }, 448 | ] 449 | 450 | [[package]] 451 | name = "typing-inspection" 452 | version = "0.4.0" 453 | source = { registry = "https://pypi.org/simple" } 454 | dependencies = [ 455 | { name = "typing-extensions" }, 456 | ] 457 | sdist = { url = "https://files.pythonhosted.org/packages/82/5c/e6082df02e215b846b4b8c0b887a64d7d08ffaba30605502639d44c06b82/typing_inspection-0.4.0.tar.gz", hash = "sha256:9765c87de36671694a67904bf2c96e395be9c6439bb6c87b5142569dcdd65122", size = 76222 } 458 | wheels = [ 459 | { url = "https://files.pythonhosted.org/packages/31/08/aa4fdfb71f7de5176385bd9e90852eaf6b5d622735020ad600f2bab54385/typing_inspection-0.4.0-py3-none-any.whl", hash = "sha256:50e72559fcd2a6367a19f7a7e610e6afcb9fac940c650290eed893d61386832f", size = 14125 }, 460 | ] 461 | 462 | [[package]] 463 | name = "uvicorn" 464 | version = "0.34.2" 465 | source = { registry = "https://pypi.org/simple" } 466 | dependencies = [ 467 | { name = "click" }, 468 | { name = "h11" }, 469 | { name = "typing-extensions", marker = "python_full_version < '3.11'" }, 470 | ] 471 | sdist = { url = "https://files.pythonhosted.org/packages/a6/ae/9bbb19b9e1c450cf9ecaef06463e40234d98d95bf572fab11b4f19ae5ded/uvicorn-0.34.2.tar.gz", hash = "sha256:0e929828f6186353a80b58ea719861d2629d766293b6d19baf086ba31d4f3328", size = 76815 } 472 | wheels = [ 473 | { url = "https://files.pythonhosted.org/packages/b1/4b/4cef6ce21a2aaca9d852a6e84ef4f135d99fcd74fa75105e2fc0c8308acd/uvicorn-0.34.2-py3-none-any.whl", hash = "sha256:deb49af569084536d269fe0a6d67e3754f104cf03aba7c11c40f01aadf33c403", size = 62483 }, 474 | ] 475 | 476 | [[package]] 477 | name = "websockets" 478 | version = "15.0.1" 479 | source = { registry = "https://pypi.org/simple" } 480 | sdist = { url = "https://files.pythonhosted.org/packages/21/e6/26d09fab466b7ca9c7737474c52be4f76a40301b08362eb2dbc19dcc16c1/websockets-15.0.1.tar.gz", hash = "sha256:82544de02076bafba038ce055ee6412d68da13ab47f0c60cab827346de828dee", size = 177016 } 481 | wheels = [ 482 | { url = "https://files.pythonhosted.org/packages/1e/da/6462a9f510c0c49837bbc9345aca92d767a56c1fb2939e1579df1e1cdcf7/websockets-15.0.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d63efaa0cd96cf0c5fe4d581521d9fa87744540d4bc999ae6e08595a1014b45b", size = 175423 }, 483 | { url = "https://files.pythonhosted.org/packages/1c/9f/9d11c1a4eb046a9e106483b9ff69bce7ac880443f00e5ce64261b47b07e7/websockets-15.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ac60e3b188ec7574cb761b08d50fcedf9d77f1530352db4eef1707fe9dee7205", size = 173080 }, 484 | { url = "https://files.pythonhosted.org/packages/d5/4f/b462242432d93ea45f297b6179c7333dd0402b855a912a04e7fc61c0d71f/websockets-15.0.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:5756779642579d902eed757b21b0164cd6fe338506a8083eb58af5c372e39d9a", size = 173329 }, 485 | { url = "https://files.pythonhosted.org/packages/6e/0c/6afa1f4644d7ed50284ac59cc70ef8abd44ccf7d45850d989ea7310538d0/websockets-15.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0fdfe3e2a29e4db3659dbd5bbf04560cea53dd9610273917799f1cde46aa725e", size = 182312 }, 486 | { url = "https://files.pythonhosted.org/packages/dd/d4/ffc8bd1350b229ca7a4db2a3e1c482cf87cea1baccd0ef3e72bc720caeec/websockets-15.0.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4c2529b320eb9e35af0fa3016c187dffb84a3ecc572bcee7c3ce302bfeba52bf", size = 181319 }, 487 | { url = "https://files.pythonhosted.org/packages/97/3a/5323a6bb94917af13bbb34009fac01e55c51dfde354f63692bf2533ffbc2/websockets-15.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ac1e5c9054fe23226fb11e05a6e630837f074174c4c2f0fe442996112a6de4fb", size = 181631 }, 488 | { url = "https://files.pythonhosted.org/packages/a6/cc/1aeb0f7cee59ef065724041bb7ed667b6ab1eeffe5141696cccec2687b66/websockets-15.0.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:5df592cd503496351d6dc14f7cdad49f268d8e618f80dce0cd5a36b93c3fc08d", size = 182016 }, 489 | { url = "https://files.pythonhosted.org/packages/79/f9/c86f8f7af208e4161a7f7e02774e9d0a81c632ae76db2ff22549e1718a51/websockets-15.0.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:0a34631031a8f05657e8e90903e656959234f3a04552259458aac0b0f9ae6fd9", size = 181426 }, 490 | { url = "https://files.pythonhosted.org/packages/c7/b9/828b0bc6753db905b91df6ae477c0b14a141090df64fb17f8a9d7e3516cf/websockets-15.0.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3d00075aa65772e7ce9e990cab3ff1de702aa09be3940d1dc88d5abf1ab8a09c", size = 181360 }, 491 | { url = "https://files.pythonhosted.org/packages/89/fb/250f5533ec468ba6327055b7d98b9df056fb1ce623b8b6aaafb30b55d02e/websockets-15.0.1-cp310-cp310-win32.whl", hash = "sha256:1234d4ef35db82f5446dca8e35a7da7964d02c127b095e172e54397fb6a6c256", size = 176388 }, 492 | { url = "https://files.pythonhosted.org/packages/1c/46/aca7082012768bb98e5608f01658ff3ac8437e563eca41cf068bd5849a5e/websockets-15.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:39c1fec2c11dc8d89bba6b2bf1556af381611a173ac2b511cf7231622058af41", size = 176830 }, 493 | { url = "https://files.pythonhosted.org/packages/9f/32/18fcd5919c293a398db67443acd33fde142f283853076049824fc58e6f75/websockets-15.0.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:823c248b690b2fd9303ba00c4f66cd5e2d8c3ba4aa968b2779be9532a4dad431", size = 175423 }, 494 | { url = "https://files.pythonhosted.org/packages/76/70/ba1ad96b07869275ef42e2ce21f07a5b0148936688c2baf7e4a1f60d5058/websockets-15.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678999709e68425ae2593acf2e3ebcbcf2e69885a5ee78f9eb80e6e371f1bf57", size = 173082 }, 495 | { url = "https://files.pythonhosted.org/packages/86/f2/10b55821dd40eb696ce4704a87d57774696f9451108cff0d2824c97e0f97/websockets-15.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d50fd1ee42388dcfb2b3676132c78116490976f1300da28eb629272d5d93e905", size = 173330 }, 496 | { url = "https://files.pythonhosted.org/packages/a5/90/1c37ae8b8a113d3daf1065222b6af61cc44102da95388ac0018fcb7d93d9/websockets-15.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d99e5546bf73dbad5bf3547174cd6cb8ba7273062a23808ffea025ecb1cf8562", size = 182878 }, 497 | { url = "https://files.pythonhosted.org/packages/8e/8d/96e8e288b2a41dffafb78e8904ea7367ee4f891dafc2ab8d87e2124cb3d3/websockets-15.0.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:66dd88c918e3287efc22409d426c8f729688d89a0c587c88971a0faa2c2f3792", size = 181883 }, 498 | { url = "https://files.pythonhosted.org/packages/93/1f/5d6dbf551766308f6f50f8baf8e9860be6182911e8106da7a7f73785f4c4/websockets-15.0.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8dd8327c795b3e3f219760fa603dcae1dcc148172290a8ab15158cf85a953413", size = 182252 }, 499 | { url = "https://files.pythonhosted.org/packages/d4/78/2d4fed9123e6620cbf1706c0de8a1632e1a28e7774d94346d7de1bba2ca3/websockets-15.0.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8fdc51055e6ff4adeb88d58a11042ec9a5eae317a0a53d12c062c8a8865909e8", size = 182521 }, 500 | { url = "https://files.pythonhosted.org/packages/e7/3b/66d4c1b444dd1a9823c4a81f50231b921bab54eee2f69e70319b4e21f1ca/websockets-15.0.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:693f0192126df6c2327cce3baa7c06f2a117575e32ab2308f7f8216c29d9e2e3", size = 181958 }, 501 | { url = "https://files.pythonhosted.org/packages/08/ff/e9eed2ee5fed6f76fdd6032ca5cd38c57ca9661430bb3d5fb2872dc8703c/websockets-15.0.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:54479983bd5fb469c38f2f5c7e3a24f9a4e70594cd68cd1fa6b9340dadaff7cf", size = 181918 }, 502 | { url = "https://files.pythonhosted.org/packages/d8/75/994634a49b7e12532be6a42103597b71098fd25900f7437d6055ed39930a/websockets-15.0.1-cp311-cp311-win32.whl", hash = "sha256:16b6c1b3e57799b9d38427dda63edcbe4926352c47cf88588c0be4ace18dac85", size = 176388 }, 503 | { url = "https://files.pythonhosted.org/packages/98/93/e36c73f78400a65f5e236cd376713c34182e6663f6889cd45a4a04d8f203/websockets-15.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:27ccee0071a0e75d22cb35849b1db43f2ecd3e161041ac1ee9d2352ddf72f065", size = 176828 }, 504 | { url = "https://files.pythonhosted.org/packages/51/6b/4545a0d843594f5d0771e86463606a3988b5a09ca5123136f8a76580dd63/websockets-15.0.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:3e90baa811a5d73f3ca0bcbf32064d663ed81318ab225ee4f427ad4e26e5aff3", size = 175437 }, 505 | { url = "https://files.pythonhosted.org/packages/f4/71/809a0f5f6a06522af902e0f2ea2757f71ead94610010cf570ab5c98e99ed/websockets-15.0.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:592f1a9fe869c778694f0aa806ba0374e97648ab57936f092fd9d87f8bc03665", size = 173096 }, 506 | { url = "https://files.pythonhosted.org/packages/3d/69/1a681dd6f02180916f116894181eab8b2e25b31e484c5d0eae637ec01f7c/websockets-15.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0701bc3cfcb9164d04a14b149fd74be7347a530ad3bbf15ab2c678a2cd3dd9a2", size = 173332 }, 507 | { url = "https://files.pythonhosted.org/packages/a6/02/0073b3952f5bce97eafbb35757f8d0d54812b6174ed8dd952aa08429bcc3/websockets-15.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e8b56bdcdb4505c8078cb6c7157d9811a85790f2f2b3632c7d1462ab5783d215", size = 183152 }, 508 | { url = "https://files.pythonhosted.org/packages/74/45/c205c8480eafd114b428284840da0b1be9ffd0e4f87338dc95dc6ff961a1/websockets-15.0.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0af68c55afbd5f07986df82831c7bff04846928ea8d1fd7f30052638788bc9b5", size = 182096 }, 509 | { url = "https://files.pythonhosted.org/packages/14/8f/aa61f528fba38578ec553c145857a181384c72b98156f858ca5c8e82d9d3/websockets-15.0.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:64dee438fed052b52e4f98f76c5790513235efaa1ef7f3f2192c392cd7c91b65", size = 182523 }, 510 | { url = "https://files.pythonhosted.org/packages/ec/6d/0267396610add5bc0d0d3e77f546d4cd287200804fe02323797de77dbce9/websockets-15.0.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:d5f6b181bb38171a8ad1d6aa58a67a6aa9d4b38d0f8c5f496b9e42561dfc62fe", size = 182790 }, 511 | { url = "https://files.pythonhosted.org/packages/02/05/c68c5adbf679cf610ae2f74a9b871ae84564462955d991178f95a1ddb7dd/websockets-15.0.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:5d54b09eba2bada6011aea5375542a157637b91029687eb4fdb2dab11059c1b4", size = 182165 }, 512 | { url = "https://files.pythonhosted.org/packages/29/93/bb672df7b2f5faac89761cb5fa34f5cec45a4026c383a4b5761c6cea5c16/websockets-15.0.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3be571a8b5afed347da347bfcf27ba12b069d9d7f42cb8c7028b5e98bbb12597", size = 182160 }, 513 | { url = "https://files.pythonhosted.org/packages/ff/83/de1f7709376dc3ca9b7eeb4b9a07b4526b14876b6d372a4dc62312bebee0/websockets-15.0.1-cp312-cp312-win32.whl", hash = "sha256:c338ffa0520bdb12fbc527265235639fb76e7bc7faafbb93f6ba80d9c06578a9", size = 176395 }, 514 | { url = "https://files.pythonhosted.org/packages/7d/71/abf2ebc3bbfa40f391ce1428c7168fb20582d0ff57019b69ea20fa698043/websockets-15.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:fcd5cf9e305d7b8338754470cf69cf81f420459dbae8a3b40cee57417f4614a7", size = 176841 }, 515 | { url = "https://files.pythonhosted.org/packages/cb/9f/51f0cf64471a9d2b4d0fc6c534f323b664e7095640c34562f5182e5a7195/websockets-15.0.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ee443ef070bb3b6ed74514f5efaa37a252af57c90eb33b956d35c8e9c10a1931", size = 175440 }, 516 | { url = "https://files.pythonhosted.org/packages/8a/05/aa116ec9943c718905997412c5989f7ed671bc0188ee2ba89520e8765d7b/websockets-15.0.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5a939de6b7b4e18ca683218320fc67ea886038265fd1ed30173f5ce3f8e85675", size = 173098 }, 517 | { url = "https://files.pythonhosted.org/packages/ff/0b/33cef55ff24f2d92924923c99926dcce78e7bd922d649467f0eda8368923/websockets-15.0.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:746ee8dba912cd6fc889a8147168991d50ed70447bf18bcda7039f7d2e3d9151", size = 173329 }, 518 | { url = "https://files.pythonhosted.org/packages/31/1d/063b25dcc01faa8fada1469bdf769de3768b7044eac9d41f734fd7b6ad6d/websockets-15.0.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:595b6c3969023ecf9041b2936ac3827e4623bfa3ccf007575f04c5a6aa318c22", size = 183111 }, 519 | { url = "https://files.pythonhosted.org/packages/93/53/9a87ee494a51bf63e4ec9241c1ccc4f7c2f45fff85d5bde2ff74fcb68b9e/websockets-15.0.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3c714d2fc58b5ca3e285461a4cc0c9a66bd0e24c5da9911e30158286c9b5be7f", size = 182054 }, 520 | { url = "https://files.pythonhosted.org/packages/ff/b2/83a6ddf56cdcbad4e3d841fcc55d6ba7d19aeb89c50f24dd7e859ec0805f/websockets-15.0.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f3c1e2ab208db911594ae5b4f79addeb3501604a165019dd221c0bdcabe4db8", size = 182496 }, 521 | { url = "https://files.pythonhosted.org/packages/98/41/e7038944ed0abf34c45aa4635ba28136f06052e08fc2168520bb8b25149f/websockets-15.0.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:229cf1d3ca6c1804400b0a9790dc66528e08a6a1feec0d5040e8b9eb14422375", size = 182829 }, 522 | { url = "https://files.pythonhosted.org/packages/e0/17/de15b6158680c7623c6ef0db361da965ab25d813ae54fcfeae2e5b9ef910/websockets-15.0.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:756c56e867a90fb00177d530dca4b097dd753cde348448a1012ed6c5131f8b7d", size = 182217 }, 523 | { url = "https://files.pythonhosted.org/packages/33/2b/1f168cb6041853eef0362fb9554c3824367c5560cbdaad89ac40f8c2edfc/websockets-15.0.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:558d023b3df0bffe50a04e710bc87742de35060580a293c2a984299ed83bc4e4", size = 182195 }, 524 | { url = "https://files.pythonhosted.org/packages/86/eb/20b6cdf273913d0ad05a6a14aed4b9a85591c18a987a3d47f20fa13dcc47/websockets-15.0.1-cp313-cp313-win32.whl", hash = "sha256:ba9e56e8ceeeedb2e080147ba85ffcd5cd0711b89576b83784d8605a7df455fa", size = 176393 }, 525 | { url = "https://files.pythonhosted.org/packages/1b/6c/c65773d6cab416a64d191d6ee8a8b1c68a09970ea6909d16965d26bfed1e/websockets-15.0.1-cp313-cp313-win_amd64.whl", hash = "sha256:e09473f095a819042ecb2ab9465aee615bd9c2028e4ef7d933600a8401c79561", size = 176837 }, 526 | { url = "https://files.pythonhosted.org/packages/02/9e/d40f779fa16f74d3468357197af8d6ad07e7c5a27ea1ca74ceb38986f77a/websockets-15.0.1-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:0c9e74d766f2818bb95f84c25be4dea09841ac0f734d1966f415e4edfc4ef1c3", size = 173109 }, 527 | { url = "https://files.pythonhosted.org/packages/bc/cd/5b887b8585a593073fd92f7c23ecd3985cd2c3175025a91b0d69b0551372/websockets-15.0.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:1009ee0c7739c08a0cd59de430d6de452a55e42d6b522de7aa15e6f67db0b8e1", size = 173343 }, 528 | { url = "https://files.pythonhosted.org/packages/fe/ae/d34f7556890341e900a95acf4886833646306269f899d58ad62f588bf410/websockets-15.0.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:76d1f20b1c7a2fa82367e04982e708723ba0e7b8d43aa643d3dcd404d74f1475", size = 174599 }, 529 | { url = "https://files.pythonhosted.org/packages/71/e6/5fd43993a87db364ec60fc1d608273a1a465c0caba69176dd160e197ce42/websockets-15.0.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f29d80eb9a9263b8d109135351caf568cc3f80b9928bccde535c235de55c22d9", size = 174207 }, 530 | { url = "https://files.pythonhosted.org/packages/2b/fb/c492d6daa5ec067c2988ac80c61359ace5c4c674c532985ac5a123436cec/websockets-15.0.1-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b359ed09954d7c18bbc1680f380c7301f92c60bf924171629c5db97febb12f04", size = 174155 }, 531 | { url = "https://files.pythonhosted.org/packages/68/a1/dcb68430b1d00b698ae7a7e0194433bce4f07ded185f0ee5fb21e2a2e91e/websockets-15.0.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:cad21560da69f4ce7658ca2cb83138fb4cf695a2ba3e475e0559e05991aa8122", size = 176884 }, 532 | { url = "https://files.pythonhosted.org/packages/fa/a8/5b41e0da817d64113292ab1f8247140aac61cbf6cfd085d6a0fa77f4984f/websockets-15.0.1-py3-none-any.whl", hash = "sha256:f7a866fbc1e97b5c617ee4116daaa09b722101d4a3c170c787450ba409f9736f", size = 169743 }, 533 | ] 534 | --------------------------------------------------------------------------------