This repository was archived by the owner on Mar 17, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
feat(cli): embedded MCP server #131
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
56a2bb4
feat(cli): embedded MCP server
tjholm 30aaddb
chore(cli): add contextual LLM instructions based on user goal/context.
tjholm 99afd3e
chore(cli): more platform development details
tjholm c75de13
chore(cli): move MCP command to the suga app
tjholm 3927278
chore(cli): add basic plugin library development guidance to MCP server
tjholm a4e86ed
feat(cli): proxy docs MCP server with embedded mcp server
tjholm ccc726f
docs(cli): include documentation search in agent instructions
tjholm 0a235a3
chore(cli): de-duplicate response handling for mcp tools
tjholm 3f96292
chore(cli): prevent path traversal in build mcp tool
tjholm 172310f
chore(docs): add mcp to vale accept.txt
tjholm 9c061e6
chore(cli): fix public resource routes.
tjholm 04b1547
chore(cli): add a dev script example to app dev instructions
tjholm 6e9ffea
chore(cli): mod tidy
tjholm 52893ee
chore(cli): add new build options to mcp build call
jyecusch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package cmd | ||
|
|
||
| import ( | ||
| "github.com/nitrictech/suga/cli/pkg/app" | ||
| "github.com/samber/do/v2" | ||
| "github.com/spf13/cobra" | ||
| ) | ||
|
|
||
| // NewMcpCmd creates the mcp command | ||
| func NewMcpCmd(injector do.Injector) *cobra.Command { | ||
| mcpCmd := &cobra.Command{ | ||
| Use: "mcp", | ||
| Short: "Start the Suga MCP (Model Context Protocol) server", | ||
| Long: `Start the Suga MCP server that provides access to Suga platform APIs | ||
| through the Model Context Protocol. This allows AI assistants to interact | ||
| with your Suga templates, platforms, and build manifests. | ||
|
|
||
| The server uses stdio transport and requires authentication via 'suga login'.`, | ||
| Run: func(cmd *cobra.Command, args []string) { | ||
| app, err := do.Invoke[*app.SugaApp](injector) | ||
| if err != nil { | ||
| cobra.CheckErr(err) | ||
| } | ||
| cobra.CheckErr(app.MCP()) | ||
| }, | ||
| } | ||
|
|
||
| return mcpCmd | ||
| } | ||
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.