Skip to content

Latest commit

 

History

599 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loom-mcp

loom-mcp is the home for the agent, MCP, and registry framework in this repository.

It combines:

  • a Loom-powered design DSL for describing agents, toolsets, MCP servers, and registries,
  • code generation driven by github.com/CaliLuke/loom,
  • a runtime for planning, execution, streaming, memory, and durable workflows.

Current status

The repository is named loom-mcp. Its current Go module path is github.com/CaliLuke/loom-mcp/v2; the /v2 suffix is required by Go semantic import versioning.

Upgrading from v1

Update imports and module requirements from github.com/CaliLuke/loom-mcp to github.com/CaliLuke/loom-mcp/v2. Version 2 intentionally removes the deprecated MCP sampling and roots runtime APIs. It also changes sdkclient.WithClientFeatures to accept ClientFeaturesOptions for official multi-round-trip elicitation. Generated SDK servers that use elicitation must configure a stable 32-byte SDKServerOptions.RequestStateKey; replicas serving the same endpoint must share that key. There is no v1 compatibility shim.

What lives here

  • design/: design source of truth.
  • dsl/: agent, MCP, and registry DSL.
  • codegen/: generators for agents, MCP adapters, codecs, and registries.
  • runtime/: execution runtime, planners, engines, MCP callers, and streaming.
  • features/: production adapters for model providers, MongoDB stores, prompt overrides, policies, and Pulse streaming.
  • registry/: registry service implementation and generated transports.
  • docs/: in-repo technical documentation.
  • quickstart/: runnable starter project and generated walkthrough material.

Dependencies

This repo currently targets:

  • github.com/CaliLuke/loom v1.9.0-alpha.15
  • github.com/modelcontextprotocol/go-sdk v1.8.0
  • Go 1.27.0 or later

The workspace-level go.work file centralizes local multi-module overrides for dependencies that must stay in sync across the root module and integration fixtures. Use make update-mcp-go-sdk MCP_GO_SDK_VERSION=vX.Y.Z when bumping the MCP Go SDK.

The standard CLI for generation is:

go install github.com/CaliLuke/loom/cmd/loom@v1.9.0-alpha.15

Working in this repo

Use make release VERSION=v2.MINOR.PATCH to publish a verified commit from remote main. See release and Git hygiene for requirements.

Common commands:

make loom-status
make loom-local
make loom-remote
make verify-generated
make regen-assistant-fixture
make verify-mcp-local
make lint
make test
make test-docker
make itest
make ci
make test-stress

make ci uses the same complete contract as hosted CI. It checks generated output, builds, lints, and runs all required test lanes. make verify-generated regenerates current surfaces and verifies the frozen external SDK bridge consumer without rewriting it. Increment sdkbridge.CompatibilityVersion before you regenerate the consumer. You can repeat regeneration while the version increase is not committed. Commit the version, the design, and generated files as one change. make loom-remote preserves generator dependencies for isolated fixtures. The Makefile pins protoc and both Go protobuf plugins. Run make install-protoc if the pinned compiler is not already first on PATH. make test enforces global and critical package-group coverage floors without starting containers. It also pins exact floors for the agent runtime, Bedrock, and Gemini so broader package groups cannot hide regressions in those owners. make test-docker runs the Mongo, Pulse, and registry contracts once under race detection and enforces an exact floor for each package. The scheduled stress workflow repeats race-enabled lifecycle tests and requires the Docker-backed Mongo, Redis, and registry tests.

Design changes should always start in design/*.go. Regenerate after changing the DSL and do not hand-edit generated gen/ files.

Documentation

Start here:

License

MIT. See LICENSE.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages