Files
windmill/backend/windmill-api/src/inkeep_oss.rs
centdix bd3271f967 feat(mcp): add documentation endpoint (#7331)
* simplify inkeep endpoint + add to openapi

* adapt frontend

* add to mcp endpoints

* nit

* udpate ref
2025-12-10 17:28:56 +00:00

24 lines
636 B
Rust

#[cfg(feature = "private")]
#[allow(unused)]
pub use crate::inkeep_ee::*;
#[cfg(not(feature = "private"))]
use axum::{routing::post, Router};
#[cfg(not(feature = "private"))]
use windmill_common::error::Error;
#[cfg(not(feature = "private"))]
pub fn global_service() -> Router {
Router::new().route("/", post(inkeep_not_available))
}
#[cfg(not(feature = "private"))]
async fn inkeep_not_available() -> windmill_common::error::Result<()> {
Err(Error::Generic(
http::StatusCode::FORBIDDEN,
"Inkeep AI documentation assistant is only available in Windmill Enterprise Edition"
.to_string(),
))
}