-
Notifications
You must be signed in to change notification settings - Fork 272
Prompt not visible in Claude Desktop #389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you share a complete repro? How are you loading in MyPrompts? |
I'm loading it using
|
I've not tried your repro, but just from glancing at it, I expect you're logging to stdout, which is going to interfere with this using a stdio transport. As in the README, try adding: builder.Logging.AddConsole(consoleLogOptions =>
{
// Configure all logs to go to stderr
consoleLogOptions.LogToStandardErrorThreshold = LogLevel.Trace;
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm trying to create a prompt, but I don't see it when I test the Stdio server with Desktop Claude. This is similar to #186
To Reproduce
`[McpServerPromptType]
public static class MyPrompts
{
[McpServerPrompt, Description("Creates a prompt to summarize the provided message.")]
public static ChatMessage Summarize([Description("The content to summarize")] string content) =>
new(ChatRole.User, $"Please summarize this content into a single sentence: {content}");
}`
Expected behavior
Be able to see and use the prompt in Claude Desktop.
Logs
If applicable, add logs to help explain your problem.
Additional context
<PackageReference Include="ModelContextProtocol" Version="0.1.0-preview.12" />
The text was updated successfully, but these errors were encountered: