Skip to main content
Glama
nizovtsevnv

Outline knowledge base MCP Server

by nizovtsevnv
full_workflow_tests.rs1.85 kB
//! End-to-end workflow tests mod common; use common::{create_mcp_request, create_test_config}; use serde_json::json; #[tokio::test] async fn test_full_document_workflow() { // This would be a full end-to-end test with a real Outline instance // For now, just test configuration and request creation let config = create_test_config(); assert!(!config.outline_api_key.as_str().is_empty()); // Test full workflow sequence let requests = [ create_mcp_request( "initialize", Some(json!({ "protocolVersion": "2024-11-05" })), ), create_mcp_request("tools/list", None), create_mcp_request( "tools/call", Some(json!({ "name": "create_document", "arguments": { "title": "E2E Test Document", "text": "This is an end-to-end test document" } })), ), ]; // In a real E2E test, these would be sent to a running server assert_eq!(requests.len(), 3); } #[tokio::test] async fn test_error_handling_workflow() { // Test error scenarios let invalid_request = create_mcp_request("invalid_method", None); // Verify that we can create error scenario requests assert!(invalid_request.contains("invalid_method")); } #[tokio::test] async fn test_configuration_validation() { let config = create_test_config(); // Test that config validation would work assert!(config.outline_api_url.as_str().starts_with("https://")); assert!(config.http_port.as_u16() > 0); } // Note: Real E2E tests would require: // - Running Outline instance // - Valid API credentials // - Network access // - Test data cleanup // // These tests serve as a foundation for when such infrastructure is available.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nizovtsevnv/outline-mcp-rs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server