### Load MCP Server Documentation Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/CLINE/Cline.md Use this tool when the user requests to create or install an MCP server. It loads documentation detailing the MCP server creation process, setup, best practices, and examples. ```xml ``` -------------------------------- ### Install openai-chatkit Package Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/ChatKit_Docs__Oct-6-25.txt Install the necessary package using pip. ```bash pip install openai-chatkit ``` -------------------------------- ### Example ChatKit Server Implementation Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/ChatKit_Docs__Oct-6-25.txt Implement a ChatKit server by extending the ChatKitServer base class. This example demonstrates how to define an agent and stream its responses using the Agents SDK. ```python class MyChatKitServer(ChatKitServer): def __init__( self, data_store: Store, attachment_store: AttachmentStore | None = None ): super().__init__(data_store, attachment_store) assistant_agent = Agent[AgentContext]( model="gpt-4.1", name="Assistant", instructions="You are a helpful assistant" ) async def respond( self, thread: ThreadMetadata, input: UserMessageItem | None, context: Any, ) -> AsyncIterator[ThreadStreamEvent]: context = AgentContext( thread=thread, store=self.store, request_context=context, ) result = Runner.run_streamed( self.assistant_agent, await simple_to_agent_input(input) if input else [], context=context, ) async for event in stream_agent_response( context, result, ): yield event ``` -------------------------------- ### Pre-commit Hook Installation Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/FACTORY/DROID.txt Installs pre-commit or project-specific Git hooks. Run this after other dependency installations. ```bash pre-commit install ``` -------------------------------- ### Schedule a Task in 15 Minutes Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/Atlas_10-21-25.txt Example of scheduling a task to occur in 15 minutes using the 'automations' tool. The `dtstart_offset_json` parameter is used to specify the relative start time. ```python schedule="" dtstart_offset_json='{"minutes":15}' ``` -------------------------------- ### Configure Starter Prompts for New Threads Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/ChatKit_Docs__Oct-6-25.txt Define starter prompts with names, prompts, and icons to guide users on initial interactions. ```javascript const options: Partial = { startScreen: { greeting: "What can I help you build today?", prompts: [ { name: "Check on the status of a ticket", prompt: "Can you help me check on the status of a ticket?", icon: "search" }, { name: "Create Ticket", prompt: "Can you help me create a new support ticket?", icon: "write" }, ], }, }; ``` -------------------------------- ### Sandbox Environment Configuration Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/MANUS/Manus_Prompt.txt Details the system and development environment setup, including OS, user privileges, installed languages, and sleep settings. ```plaintext System Environment: - Ubuntu 22.04 (linux/amd64), with internet access - User: `ubuntu`, with sudo privileges - Home directory: /home/ubuntu Development Environment: - Python 3.10.12 (commands: python3, pip3) - Node.js 20.18.0 (commands: node, npm) - Basic calculator (command: bc) Sleep Settings: - Sandbox environment is immediately available at task start, no check needed - Inactive sandbox environments automatically sleep and wake up ``` -------------------------------- ### Configuring Action Loading Behavior Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/ChatKit_Docs__Oct-6-25.txt Example of setting the loading behavior for an action using ActionConfig.loadingBehavior. This example sets it to 'container' to block UI interactions. ```python Button( label="This make take a while...", onClickAction=ActionConfig( type="long_running_action_that_should_block_other_ui_interactions", loadingBehavior="container" ) ) ``` -------------------------------- ### Install Optional Viz Dependency Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/ChatKit_Docs__Oct-6-25.txt Install the 'openai-agents' package with the optional 'viz' dependency group to enable graph generation. ```bash pip install "openai-agents[viz]" ``` -------------------------------- ### Asking clarifying questions Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/ANTHROPIC/Claude-Design-Sys-Prompt.txt Use the `questions_v2` tool to ask questions at the start of a project or when the ask is ambiguous. End your turn after calling it to allow the user to respond. ```tool_code questions_v2(question="What is the target audience for this deck?") ``` -------------------------------- ### Card as a Form Example Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/ChatKit_Docs__Oct-6-25.txt Illustrates how to treat a Card component as a form by passing `asForm=True`. This enables form validation and collects fields for the Card's confirm action. ```python Card(asForm=True, confirm_action=...) ``` -------------------------------- ### Create SVG Artifact Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/ANTHROPIC/Claude_Sonnet_3.5.md This example demonstrates how to create an SVG artifact for a simple blue circle. ```svg ``` -------------------------------- ### Schedule a Daily Task Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/Atlas_10-21-25.txt Example of how to schedule a daily task using the 'automations' tool. The schedule is provided in iCal VEVENT format. ```python schedule="BEGIN:VEVENT RRULE:FREQ=DAILY;BYHOUR=9;BYMINUTE=0;BYSECOND=0 END:VEVENT" ``` -------------------------------- ### Suggest Next Steps Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/SAMEDEV/Same_Dev.txt Provides 1-4 actionable prompts for the user's next actions, guiding them through multi-step processes or suggesting alternative directions. ```typescript // Suggest 1-4 next steps that the user could take. Each step should be a clear, actionable prompt that the user could send. This is useful for guiding the user through a multi-step process or suggesting different directions they could take. type suggestions = (_: { // List of 1-4 suggested next steps. No '-', bullet points, or other formatting. suggestions: string[], // minItems: 1, maxItems: 4 }) => any; ``` -------------------------------- ### React and Babel Setup for Inline JSX Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/ANTHROPIC/Claude-Design-Sys-Prompt.txt Include these script tags for React prototypes using inline JSX. Ensure pinned versions and integrity hashes are used. ```html ``` -------------------------------- ### Quickstart Chat Application with Vanilla JS Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/ChatKit_Docs__Oct-6-25.txt This snippet shows how to initialize the ChatKit web component in a vanilla JavaScript environment. It creates the `openai-chatkit` element, sets options including the `clientToken`, and appends it to the document body with specified dimensions. ```js function InitChatkit({ clientToken }) { const chatkit = document.createElement('openai-chatkit'); chatkit.setOptions({ api: { clientToken } }); chatkit.classList.add('h-[600px]', 'w-[320px]'); document.body.appendChild(chatkit); } ``` -------------------------------- ### JavaScript/TypeScript Dependency Installation Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/FACTORY/DROID.txt Installs dependencies using the appropriate package manager for JavaScript and TypeScript projects. Ensure lock files are present for frozen installations. ```bash bun install ``` ```bash pnpm install --frozen-lockfile ``` ```bash yarn install --frozen-lockfile ``` ```bash npm ci ``` -------------------------------- ### List Keys with Prefix Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/ANTHROPIC/Claude-Opus-4.7.txt Illustrates how to list keys in storage that match a given prefix using the window.storage.list method. ```javascript // List keys with prefix const keys = await window.storage.list('entries:'); ``` -------------------------------- ### Use MCP Tool with Server URL Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/CLINE/Cline.md This example demonstrates using an MCP tool where the server name is a unique identifier like a URL. It shows how to create an issue on GitHub. ```xml github.com/modelcontextprotocol/servers/tree/main/src/github create_issue { "owner": "octocat", "repo": "hello-world", "title": "Found a bug", "body": "I'm having a problem with this.", "labels": ["bug", "help wanted"], "assignees": ["octocat"] } ``` -------------------------------- ### Ruby Dependency Installation Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/FACTORY/DROID.txt Installs Ruby dependencies using Bundler. Ensure a Gemfile is present. ```bash bundle install ``` -------------------------------- ### Quickstart Chat Application with React Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/ChatKit_Docs__Oct-6-25.txt This snippet demonstrates how to initialize and use the ChatKit component within a React application. It requires a `clientToken` for authentication and sets the dimensions of the chat interface. ```tsx function MyChat({ clientToken }) { const { control } = useChatKit({ api: { clientToken } }); return ( ); } ``` -------------------------------- ### React Component Example Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/GOOGLE/Gemini-2.5-Pro-04-18-2025.md Example of a React component structure for web applications, using functional components and hooks. ```jsx import React from 'react'; const App = () => { return (

Welcome to Gemini 2.5 Pro Canvas

This is a sample React component.

); }; export default App; ``` -------------------------------- ### Full ChatKit Configuration in Vanilla JS Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/ChatKit_Docs__Oct-6-25.txt Demonstrates extensive customization of ChatKit's theme, header, composer, and entities using the setOptions method. ```javascript el.setOptions({ theme: { colorScheme: "dark", color: { accent: { primary: "#D7263D", level: 2 } }, radius: "round", density: "normal", typography: { fontFamily: "Open Sans, sans-serif" }, }, header: { customButtonLeft: { icon: "settings-cog", onClick: () => alert("Profile settings"), }, }, composer: { placeholder: "Type your product feedback…", tools: [{ id: "rate", label: "Rate", icon: "star", pinned: true }], }, startScreen: { greeting: "Welcome to FeedbackBot!", prompts: [{ name: "Bug", prompt: "Report a bug", icon: "bolt" }], }, entities: { onTagSearch: async (query) => [ { id: "user_123", title: "Jane Doe" }, ], onRequestPreview: async (entity) => ({ preview: { type: "Card", children: [ { type: "Text", value: `Profile: ${entity.title}` }, { type: "Text", value: "Role: Developer" }, ], }, }), }, }); ``` -------------------------------- ### Executing Media Generation Tools Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/META/Muse_Spark_Apr-08-26.txt Instructions for executing media tools, including prompt crafting for image and video generation, handling audio, and using reference images. ```text - Call the tool immediately without announcing or asking clarifying questions. - `media.create_image` and `media.edit_image`: craft a detailed prompt capturing the user's vision. For `media.create_image`, skip `orientation` parameter by default, only include it when the user explicitly states a desired orientation. - `media.animate_image`: describe the desired motion. Default prompt: "animate it". - `media.create_video`: describe what should appear, not "create a video of..." (e.g., "a cat playing with yarn in a sunny garden"). - `media.edit_video`: pass both `prompt` and `video_ids`. Describe the change directly (e.g., "make it black and white"). - `media.get_audio`: specify artist/song for music, or text for TTS. Follow up with `media.animate_image` or `media.create_video` using the `audio_id`. - `media.get_reference_image`: follow up with `media.create_image` or `media.create_video` using the reference. Include the description returned by `media.get_reference_image` in the subsequent prompt. - Maintain input modality for edits (image→image, video→video). - Resolve `image_ids`/`video_ids` from conversation context. Pass all IDs from the same turn together. Copy IDs from the conversation exactly, either numeric IDs or `attachment://N` references. Never guess or fabricate IDs. ``` -------------------------------- ### Python Dependency Installation Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/FACTORY/DROID.txt Installs Python dependencies using pip or Poetry. Ensure a requirements.txt file or pyproject.toml is present. ```bash pip install -r requirements.txt ``` ```bash poetry install ``` -------------------------------- ### Create File Tool (create_file) Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/ANTHROPIC/Claude-Opus-4.7.txt Creates a new file with specified content at a given path. The description of the file's purpose must be provided first, followed by the path, and finally the file content. ```JSON Schema { "description": "Create a new file with content in the container", "name": "create_file", "parameters": { "properties": { "description": { "title": "Why I'm creating this file. ALWAYS PROVIDE THIS PARAMETER FIRST.", "type": "string" }, "file_text": { "title": "Content to write to the file. ALWAYS PROVIDE THIS PARAMETER LAST.", "type": "string" }, "path": { "title": "Path to the file to create. ALWAYS PROVIDE THIS PARAMETER SECOND.", "type": "string" } }, "required": [ "description", "file_text", "path" ], "title": "CreateFileInput", "type": "object" } } ``` -------------------------------- ### Python Factorial Script Example Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/ANTHROPIC/Claude_Sonnet_3.5.md A Python script to calculate the factorial of a number. This is a self-contained code example suitable for an artifact. ```python def factorial(n): if n == 0: return 1 else: return n * factorial(n - 1) ``` -------------------------------- ### Suggest Project Deployment Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/REPLIT/Replit_Functions.md Call this function when the project is ready for deployment and the user confirms. Replit Deployments will handle the build and hosting process automatically. This is a terminal action. ```python {"name": "suggest_deploy", "parameters": {}} ``` -------------------------------- ### Override Composer Placeholder and Start Screen Greeting Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/ChatKit_Docs__Oct-6-25.txt Customize the placeholder text in the composer and the greeting message on the start screen. ```javascript const options: Partial = { composer: { placeholder: "Ask anything about your data…", }, startScreen: { greeting: "Welcome to FeedbackBot!", }, }; ``` -------------------------------- ### Create a New File Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/ANTHROPIC/Claude-4.5-Opus.txt Use this function to create a new file with specified content and path. Ensure the description is provided first, followed by the path, and the file content last. ```python create_file(description="Why I'm creating this file. ALWAYS PROVIDE THIS PARAMETER FIRST.", path="Path to the file to create. ALWAYS PROVIDE THIS PARAMETER SECOND.", file_text="Content to write to the file. ALWAYS PROVIDE THIS PARAMETER LAST.") ``` -------------------------------- ### Deploy Static Site Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/SAMEDEV/Same_Dev.txt Use this to deploy a static site. You must provide a command to build the project and zip the output, along with the path to the zip file. ```typescript type deploy = (_: { deploy_as_static_site?: { build_and_zip_command: string, output_path: string, }, deploy_as_dynamic_site?: boolean, }) => any; ``` -------------------------------- ### Create a React Component in Canvas Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/OPENAI/Atlas_10-21-25.txt Example of creating a React component to be displayed in the canvas using the `canmore.create_textdoc` function. This example includes basic styling with Tailwind CSS and uses shadcn/ui components. ```javascript canmore.create_textdoc({ name: "my_react_app", type: "code/react", content: `import { Button } from '@/components/ui/button'; import { Card, CardContent } from '@/components/ui/card'; import { motion } from 'framer-motion'; export default function MyComponent() { return (

Welcome to the Canvas!

This is a React component rendered in the canvas with Tailwind CSS and Framer Motion.

); }` }) ``` -------------------------------- ### copy_starter_component Source: https://github.com/elder-plinius/cl4r1t4s/blob/main/ANTHROPIC/Claude-Design-Sys-Prompt.txt Copies a starter component into the project. Starter components are pre-built scaffolds for common design frames like device bezels, OS windows, and design canvases. They can be plain JS or React (JSX) components. The 'kind' parameter must include the exact file extension (.js or .jsx). ```APIDOC ## copy_starter_component ### Description Copies a starter component into the project. Starter components are ready-made scaffolds for common design frames: device bezels with status bars and keyboards, OS window chrome, a design canvas for presenting multiple options side-by-side, and a slide-deck shell. Starter components are a mix of plain JS (vanilla web components — load with a normal `