Skip to content

[Claude] MCP server: implement browse and authors tools - #203

Merged
nerualauren merged 2 commits into
mainfrom
claude/mcp-browse-and-authors
Mar 30, 2026
Merged

nerualauren merged 2 commits into
mainfrom
claude/mcp-browse-and-authors

Conversation

@nerualauren

@nerualauren nerualauren commented Mar 28, 2026

Copy link
Copy Markdown
Collaborator

Not yet reviewed by Lauren.

Summary

  • Replace the lw_af_posts_sorted stub with a working browse tool: sort by "date", "score", or a 0.0-1.0 blend (normalized score + recency computed in SQL via min/max subqueries)
  • Add author, after/before date range, and source filters to browse
  • Returns configurable field list with ~50-char text snippets (start/middle/end) extracted via SQL SUBSTRING
  • Add new lw_af_authors tool: lists authors by article count, splits comma-separated authors field, supports pagination (n/offset) and same date/source filters
  • Docstrings tested with ctoc (250 + 148 tokens) and Claude API calls for unambiguous parameter usage

Test plan

  • Manual testing: date sort, score sort, blend sort, author filter, date range, source filter
  • Manual testing: lw_af_authors with pagination, source filter, date range
  • Existing test suite passes (17/17)
  • Claude API test: Sonnet correctly inferred all 5 usage scenarios from tool descriptions alone
  • Deploy and test via MCP client

🤖 Generated with Claude Code

lauren and others added 2 commits March 28, 2026 18:01
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace lw_af_posts_sorted stub with working browse tool. Sort by date,
karma, karma_per_vote, stampy_score, or lerp_normed(field_a, field_b, t)
for custom blends of any two fields (newness, oldness, karma,
karma_per_vote, stampy_score). Numeric 0-1 shorthand for karma+recency.

Add lw_af_authors: list authors by article count with pagination and
date/source filters. Splits comma-separated authors field.

Add lw_af_tags: all tags grouped by LW wiki category (AI, Rationality,
World Modeling, World Optimization, Practical, Community, Site Meta, Other).

Browse filters: author, source, tag, after/before date range. Default
output includes hash_id, karma_per_vote, tags, snippet_start. Karma from
metadata JSON, stampy_score from miri_confidence. Blend normalization
uses hardcoded corpus bounds in SQL.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nerualauren
nerualauren force-pushed the claude/mcp-browse-and-authors branch from a8afaaf to d1dd4c4 Compare March 30, 2026 00:33
@nerualauren
nerualauren merged commit 619b3d0 into main Mar 30, 2026
1 check passed
@nerualauren
nerualauren deleted the claude/mcp-browse-and-authors branch March 30, 2026 02:08
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.

1 participant