#1045: ✨ Complete MCP Server Scaffold#1065
Draft
mistryrn wants to merge 4 commits into
Draft
Conversation
Implements a working MCP server for the Arranger introspection API, built on `@modelcontextprotocol/sdk` v1.x with the Streamable HTTP transport.
* Adds configuration via Zod-validated environment variables
* Adds Arranger connection validation at startup
* Adds Pino logging
* Adds an Express server with the configured MCP endpoint for Streamable HTTP transport
* Adds MCP Resources for the Arranger introspection endpoints:
* `arranger://introspection/server`
* `arranger://introspection/sqon`
* `arranger://introspection/catalog/{catalogId}`
* Adds MCP Tools for the Arranger introspection endpoints:
* `list-catalogs`
* `get-sqon-schema`
* `get-catalog-fields`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a working MCP server for the Arranger introspection API, built on
@modelcontextprotocol/sdkv1.x with the Streamable HTTP transport.Issues
Description of Changes
MCP Server
@modelcontextprotocol/sdk,zod(v3 for consistency with repo), andpinoas dependenciesarranger-server-introspection→arranger://introspection/serverarranger-sqon-schema→arranger://introspection/sqonarranger-catalog-fields→arranger://introspection/catalog/{catalogId}list-catalogsget-sqon-schemaget-catalog-fieldsSpecial Instructions
Before running these changes, you will need to:
# from project root npm ci# from project root npm run modules:buildmcp-serverapp:Testing Instructions
Local Arranger
To test the MCP Server against a local instance of Arranger Server:
apps/mcp-server/.envconfig aligns with your local Arranger server# from project root npm run mcp-server:dev# from project root npm run mcp-server:inspecthttp://localhost:6274/?MCP_PROXY_AUTH_TOKEN={AUTH_TOKEN}), connect to the MCP Server via Streamable HTTP, and test the Resources and Tools.Remote Arranger
To test against a remote instance of Arranger Server:
ARRANGER_BASE_URLandARRANGER_CATALOGUESin your MCP Server.envfile to point to and reflect the state of your remote Arranger.LM Studio
To test with LM Studio instead of MCP Inspector:
apps/mcp-server/mcp-inspector.jsonReadiness Checklist
.env.schemafile and documented in the README