### Package Installation and Setup Source: https://github.com/ariffazil/arifos/blob/main/docs/setup/OPENCLAW_ROOT_ACCESS.md Install packages and set up software repositories. ```bash sudo apt install htop ``` ```bash curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash - ``` -------------------------------- ### Project Setup with uv Source: https://github.com/ariffazil/arifos/blob/main/docs/FASTMCP_ARIFOS_MASTER_GUIDE.md Initializes a new project, installs core and development dependencies, and sets up the basic directory structure. ```bash # Create project mkdir arifos-mcp-server && cd arifos-mcp-server uv init # Install dependencies uv add fastmcp pydantic uv add --dev pytest pytest-asyncio # Directory structure mkdir -p src/{primitives,governance,models,utils} tests constitution ``` -------------------------------- ### New Dependency Install Decision Brief Source: https://github.com/ariffazil/arifos/blob/main/skills/architect-explainer/SKILL.md This example presents a decision brief for installing a new Python package. It assesses the risk, impact on the system, and reversibility of adding a new dependency. ```markdown WHAT: Install new Python package (pydantic-pending) into arifOS venv. WHY: Required by new constitutional validation module. BLAST RADIUS: • arifOS runtime: will load new package on next start • Other agents: no direct impact RISK: LOW Standard dependency. Already in use by similar projects. REVERSIBLE: YES uv pip uninstall pydantic-pending restores previous state. ARIF DECIDES: ○ PROCEED — low risk ○ MODIFY — any concerns first ``` -------------------------------- ### Terminal-style Install Instructions Source: https://github.com/ariffazil/arifos/blob/main/arifosmcp/sites/developer/IMPROVEMENTS.md Provides example terminal commands for installing arifOS MCP, presented in a code preview format. ```bash # Quick Start # Code Preview (install commands) ``` -------------------------------- ### Client Integration Example Source: https://github.com/ariffazil/arifos/blob/main/docs/FASTMCP_ARIFOS_MASTER_GUIDE.md Example Python code for integrating with the MCP server using the Client class. Demonstrates connecting, listing tools, calling tools, reading resources, and getting prompts. ```python # client_example.py from fastmcp import Client import asyncio async def main(): # Connect to server client = Client("http://localhost:3000/mcp") # List available tools tools = await client.list_tools() print(f"Available tools: {[t.name for t in tools]}") # Call init_anchor result = await client.call_tool("init_anchor", { "request": { "session_id": "test-123", "intent": "Test constitutional governance" } }) print(f"Anchor result: {result}") # Call reason_mind result = await client.call_tool("reason_mind", { "request": { "query": "Is this ethically sound?", "session_id": "test-123", "depth": 3 } }) print(f"Reason result: {result}") # Read resource floors = await client.read_resource("audit://floors") print(f"Floor status: {floors}") # Get prompt prompt = await client.get_prompt("constitutional_review", { "topic": "AI governance" }) print(f"Prompt: {prompt}") if __name__ == "__main__": asyncio.run(main()) ``` -------------------------------- ### Environment Setup and Testing Commands Source: https://github.com/ariffazil/arifos/blob/main/static/arifos/docs/AGENTS/A120_TOPOGRAPHY.md Use 'uv' for Python environment management. Install development dependencies and run tests using pytest. ```bash # Environment Setup pip install -e ".[dev]" # or uv pip install -e ".[dev]" # Testing (pytest with asyncio auto-mode) pytest tests/ -v # Run all tests pytest tests/test_file.py -v # Run single file pytest tests/test_file.py::test_name -v # Run single test (CRITICAL) pytest tests/ -v -k "keyword" # Search for tests ``` -------------------------------- ### List Agent Tools Source: https://github.com/ariffazil/arifos/blob/main/docs/AGENT_KICKSTART.md Use `agent-tools` to list all available tools with their versions. You can also organize them by category or get quick usage examples. ```bash agent-tools # list all 41 tools with versions agent-tools --category # organized by function agent-tools probe # run full diagnostic — can every tool run? agent-tools --tldr jq # quick usage examples for any tool ``` -------------------------------- ### Install Prefect Ecosystem Packages Source: https://github.com/ariffazil/arifos/blob/main/arifosmcp/integrations/prefect/README.md Installs the necessary packages for the Prefect ecosystem, including Prefect, Marvin, Cyclopts, and pydantic-ai. Can install all at once with 'prefect[all]'. ```bash pip install prefect marvin cyclopts pydantic-ai ``` ```bash pip install "prefect[all]" marvin cyclopts ``` -------------------------------- ### Install and Run JavaScript/TypeScript with Bun Source: https://github.com/ariffazil/arifos/blob/main/docs/agents/CLAUDE.md Installs project dependencies and runs a script using the Bun runtime. ```bash bun install bun run