Skip to main content
Glama
BastiDood
by BastiDood

Auto-Suggest MCP Prototype

A proof of concept that uses Claude Code hooks to suggest relevant context before Claude processes a prompt. The current demo uses TypeSafe to recommend sample law-firm agent skills.

Getting Started

You need Bun, Claude Code, and a TypeSafe API key.

  1. Open a terminal in this project directory and install the dependencies:

    bun install
  2. Copy .env.example to .env:

    cp .env.example .env

    In PowerShell, use Copy-Item .env.example .env.

  3. Set your API key in .env:

    TYPESAFE_API_KEY=apikey_

    Bun loads .env when it starts the MCP server. The .env file is ignored by Git.

  4. Start Claude Code from this project directory:

    claude

    Accept the workspace trust prompt if shown. Claude Code loads the project configuration automatically: .mcp.json starts the auto-suggest server with bun run mcp, and .claude/settings.json enables it and registers the UserPromptSubmit hook. No manual server registration is needed.

  5. Use /mcp to check that auto-suggest is connected, then try a prompt such as:

    What clauses should I review before signing an employment agreement?

    The hook calls recommend_skills and adds a suggestion to Claude's context when a relevant skill meets the confidence threshold. Unrelated prompts may produce no suggestion. Suggested skills are external marketplace listings and require download and installation before use.

Related MCP server: skills-mcp-server

Development

Run the project checks:

bun run check
bun run lint
bun run fmt

After making changes, run the automatic fixes:

bun run lint:fix
bun run fmt:fix

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    A Model Context Protocol (MCP) server that provides intelligent search capabilities for discovering relevant Claude Agent Skills using vector embeddings and semantic similarity. This server implements the same progressive disclosure architecture that Anthropic describes in their Agent Skills enginee
    3
    406
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    A high-performance MCP server that provides BM25-ranked search and structured access to over 1,300 AI skills, enabling context-efficient discovery and usage of AI capabilities while minimizing token consumption.
    15 npm
    ISC