Skip to content

Expose available tools via a GET /api/v1/tools endpoint #102

Description

@alimaandev

Summary

The tool registry (core/registry.py) discovers and stores tool definitions in _TOOL_DEFINITIONS, exposed through get_tool_definitions() (line ~177). The frontend has no way to list which tools Friday currently knows about.

Goal

Add a read-only GET /api/v1/tools endpoint in desktop/api_server.py that returns the list of tool names + descriptions from core.registry.get_tool_definitions().

Tasks

  • Add the route with @require_auth
  • Return { tools: [{name, description}] }
  • Add tests in ests/test_api_server.py under a new TestTools class

Acceptance criteria

  • GET /api/v1/tools returns discovered tools after discover_plugins()
  • Unauthenticated request is rejected (401)
  • Tests cover both success and auth-failure paths

Labels

good first issue, help wanted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions