Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

orla-tool-fs

A comprehensive file system operations tool for Orla that provides reading, writing, listing, and managing files and directories.


Go Version License Go Report Card Build Coverage

Installation

Install from the orla registry:

orla install fs

This will install the latest version from the default registry. To install a specific version:

orla install --version v0.3.0

Or to use a custom registry:

orla install fs --registry https://github.com/dorcha-inc/orla-registry

Usage

Once installed, the tool will be available as an MCP tool. It supports common file system operations. All operations require the operation parameter to specify which operation to perform. The full parameter schema is defined in tool.yaml and will be automatically available through the MCP protocol.

As an example:

{
  "operation": "read",
  "path": "/path/to/file.txt"
}

Error Handling

All operations return a JSON response with a success field. If success is false, an error field will contain the error message.

Example error response:

{
  "success": false,
  "error": "File not found: /path/to/file.txt"
}

Development

To test locally before publishing:

  1. Build the tool:

    make build

    This creates bin/fs.tool

  2. Copy the tool to your orla project's tools directory:

    cp bin/fs.tool /path/to/orla/tools/fs.tool

    Replace /path/to/orla with the actual path to your orla project. The tool will be discovered by orla automatically.

  3. Start orla (from the orla project directory):

    orla serve

    The tool will be automatically discovered and available.

Publishing

To publish a new version to the registry:

  1. Ensure all changes are committed to the main branch

  2. Publish using the Makefile with a version number:

    make publish VERSION=0.3.0

    This will:

    • Update the version in tool.yaml
    • Build the binary
    • Commit the binary and updated tool.yaml
    • Create and push a git tag v0.3.0
    • Push commits to the main branch
  3. Add the tool entry to the registry's registry.yaml file in the orla-registry repository

  4. After publishing, the tool can be installed with:

    orla install fs --version v0.3.0

Contributing

Contributions are welcome! Please see the Orla project's contribution guide.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages