Skip to content

Commit 3d3fd12

Browse files
fix: typos and remove log outside main()
1 parent 192c869 commit 3d3fd12

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

cmd/state-mcp/internal/mcpserver/server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ func (m *Handler) AddPrompt(prompt mcp.Prompt, handler server.PromptHandlerFunc)
5858
m.Server.AddPrompt(prompt, func(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error) {
5959
r, err := handler(ctx, request)
6060
if err != nil {
61-
logging.Error("%s: Error handling prompt request: %v", prompt.Name, err)
6261
return nil, errs.Wrap(err, "Failed to handle prompt request")
6362
}
6463
return r, nil

cmd/state-mcp/internal/registry/prompts.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func ProjectPrompt() Prompt {
1010
return Prompt{
1111
Category: CategoryDebug,
1212
Prompt: mcp.NewPrompt("project",
13-
mcp.WithPromptDescription("A prompt to debug a project build failures"),
13+
mcp.WithPromptDescription("A prompt to debug project build failures"),
1414
mcp.WithArgument("prompt",
1515
mcp.ArgumentDescription("the user prompt with project information"),
1616
),
@@ -19,7 +19,7 @@ func ProjectPrompt() Prompt {
1919
prompt := request.Params.Arguments["prompt"]
2020

2121
return mcp.NewGetPromptResult(
22-
"A prompt to debug a project build failures",
22+
"A prompt to debug project build failures",
2323
[]mcp.PromptMessage{
2424
mcp.NewPromptMessage(
2525
mcp.RoleAssistant,
@@ -55,7 +55,7 @@ func IngredientPrompt() Prompt {
5555
return Prompt{
5656
Category: CategoryDebug,
5757
Prompt: mcp.NewPrompt("ingredient",
58-
mcp.WithPromptDescription("A prompt to debug a ingredient build failure"),
58+
mcp.WithPromptDescription("A prompt to debug an ingredient build failure"),
5959
mcp.WithArgument("prompt",
6060
mcp.ArgumentDescription("the user prompt with ingredient information"),
6161
),
@@ -64,7 +64,7 @@ func IngredientPrompt() Prompt {
6464
prompt := request.Params.Arguments["prompt"]
6565

6666
return mcp.NewGetPromptResult(
67-
"A prompt to debug a project build failures",
67+
"A prompt to debug ingredient build failures",
6868
[]mcp.PromptMessage{
6969
mcp.NewPromptMessage(
7070
mcp.RoleAssistant,

0 commit comments

Comments
 (0)