Skip to content

add MCP server for runtime resource lookup#72

Open
KhaiTrang1995 wants to merge 4 commits into
cobusgreyling:mainfrom
KhaiTrang1995:main
Open

add MCP server for runtime resource lookup#72
KhaiTrang1995 wants to merge 4 commits into
cobusgreyling:mainfrom
KhaiTrang1995:main

Conversation

@KhaiTrang1995

Copy link
Copy Markdown

Summary

Changes

MCP server exposes loop-engineering patterns, skills, state, budget,
and safety docs as queryable resources via Model Context Protocol.
Agents can query what they need on-demand instead of prompt stuffing.

Resources: registry, config, budget, run-log, safety, patterns/{id},
skills/{name}, state/{file}

Tools: list_patterns, list_skills, list_state_files, get_pattern,
get_skill, get_state, recommend_pattern, estimate_cost

Includes 16 tests, CI gate integration, and MCP config example.

Checklist (from CONTRIBUTING)

  • All required sections present for patterns
  • Links work from README, patterns/README, starters/README, docs/index
  • No secrets, tokens, internal company URLs
  • STATE.md* examples use .example suffix
  • Safety-related content references docs/safety.md
  • Ran node tools/loop-audit/dist/cli.js . (or on the starter) and addressed findings

Testing / Dogfood

  • loop-audit passes on affected starters or this repo
  • Manual review of generated state / skill output

Screenshots / Examples (if UI or command output)


This template enforces the high bar this reference is known for.

KhaiTrang1995 and others added 2 commits June 26, 2026 07:42
MCP server exposes loop-engineering patterns, skills, state, budget,
and safety docs as queryable resources via Model Context Protocol.
Agents can query what they need on-demand instead of prompt stuffing.

Resources: registry, config, budget, run-log, safety, patterns/{id},
skills/{name}, state/{file}

Tools: list_patterns, list_skills, list_state_files, get_pattern,
get_skill, get_state, recommend_pattern, estimate_cost

Includes 16 tests, CI gate integration, and MCP config example.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
feat(mcp-server): add MCP server for runtime resource lookup

@cobusgreyling cobusgreyling left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, CI passed. This is a large addition so I need a bit more time to review the MCP server code before approving. Will follow up soon.

@KhaiTrang1995

Copy link
Copy Markdown
Author

Thanks for the heads-up! Take your time with the review.
By the way, I just noticed that zod hasn't been added to the dependencies yet. I'll push a quick fix for this right away.

KhaiTrang1995 and others added 2 commits June 26, 2026 16:41
…ation tests

zod was imported in src/index.ts but only resolved transitively via
@modelcontextprotocol/sdk, so the build could break if the SDK changed
its zod range. Declare it explicitly in dependencies.

Add 4 integration tests that spawn the real server over stdio and exercise
the index.ts tool/resource handlers (tools/list, loop_list_patterns,
loop_estimate_cost, pattern resource read), complementing the existing
resolver-level unit tests. Suite now 20/20 passing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
fix(mcp-server): declare zod as direct dependency + add server ation tests
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.

2 participants