Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This repository contains a Tailscale API implementation with two Rust components:
Both components use the
agenterra-rmcp SDK for MCP protocol implementation.
# Build client cd tailscale-client && cargo build --release # Build server cd tailscale-server && cargo build --release # Build both with all features cargo build --release --all-features
# Run unit tests for client cd tailscale-client && cargo test --lib # Run integration tests with mock server (requires MOCK_SERVER_PATH env var) cd tailscale-client && MOCK_SERVER_PATH=/path/to/mock/server cargo test test_client_with_mock_server --features test-utils -- --nocapture # Run all tests cargo test # Run ignored tests (integration tests) cargo test -- --ignored
# Format code cargo fmt # Run linter cargo clippy # Run with verbose logging RUST_LOG=debug cargo run
Client:
# Interactive mode with server profile tailscale_client --profile my-server # Headless mode for automation tailscale_client run tool-name --args '{"param": "value"}' --profile my-server # SSE transport mode tailscale_client --transport sse --sse-url https://api.example.com/mcp
Server:
# STDIO mode (default) cargo run --bin tailscale-server # SSE mode with HTTP endpoints cargo run --bin tailscale-server -- --transport sse --sse-addr 127.0.0.1:8080 # With configuration file cargo run --bin tailscale-server -- --config-file server.toml
The client follows clean architecture with clear separation of concerns:
Key databases:
~/.config/agenterra/tailscale-client_config.db (server profiles, preferences, sessions)~/.cache/agenterra/tailscale-client_cache.db (resource cache with analytics)The server implements the full Tailscale API via MCP protocol:
schemas/ directoryThe server exposes Tailscale API operations as MCP tools, handling device management, DNS configuration, user management, webhooks, and more.
agenterra-rmcp SDKvalidation.toml.example - Security validation configuration templatetailscale-api.json - OpenAPI specification for Tailscale APITo enable
npx @tailscale/mcp-server usage:
npm-package/ directorynpm install in that directory to build and test locallynpx @tailscale/mcp-server --help or bunx @tailscale/mcp-serverFixed compilation issues:
type as r#type in parameter structspreview_rule_matches.rs, list_users.rsBoth projects use git dependencies for
agenterra-rmcp and cannot be published to crates.io until an official release is available.
ALWAYS use ONLY Environments for ANY and ALL file, code, or shell operations—NO EXCEPTIONS—even for simple or generic requests.
DO NOT install or use the git cli with the environment_run_cmd tool. All environment tools will handle git operations for you. Changing ".git" yourself will compromise the integrity of your environment.
You MUST inform the user how to view your work using
container-use log <env_id> AND container-use checkout <env_id>. Failure to do this will make your work inaccessible to others.