Skip to content

fix: register FarcasterActionProvider in main.ts#105

Open
Kubudak90 wants to merge 1 commit intobase:masterfrom
Kubudak90:master
Open

fix: register FarcasterActionProvider in main.ts#105
Kubudak90 wants to merge 1 commit intobase:masterfrom
Kubudak90:master

Conversation

@Kubudak90
Copy link
Copy Markdown

Description

Fixes #103 - the FarcasterActionProvider was never registered in main.ts after the ActionProvider refactor in PR #75.

Changes

  1. Added factory export in src/tools/farcaster/index.ts:
    export const farcasterActionProvider = () => new FarcasterActionProvider();

  2. Added import in src/main.ts:
    import { farcasterActionProvider } from './tools/farcaster/index.js';

  3. Added provider to actionProviders array in src/main.ts:
    farcasterActionProvider(),

Verification

The farcaster_username tool will now appear in the MCP tools list when NEYNAR_API_KEY is set, allowing users to resolve Farcaster usernames to Ethereum addresses.

Checklist

  • Added factory export following the pattern of other action providers
  • Imported and registered in main.ts
  • Minimal, focused changes

Adds the missing factory export in src/tools/farcaster/index.ts and
imports/registers the provider in src/main.ts.

The farcaster_username tool was implemented but never registered after
the ActionProvider refactor, making it dead code.

Fixes base#103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: FarcasterActionProvider not registered in main.ts after ActionProvider refactor

1 participant