Skip to content

Commit 7654d13

Browse files
authored
better prompts (#302)
1 parent 6317c8f commit 7654d13

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

_posts/2025-12-04-From-Zero-to-Package-in-Seconds-the-new-Conan-MCP.markdown

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ feedback in natural language.
4343
Let’s move on to one of the highlights of the MCP server: initial project setup using prompts. Suppose we want to start a project of a library
4444
that uses CMake, with dependencies on fmt and OpenSSL. We can let Conan MCP create the entire project scaffolding and
4545
install the dependencies.
46-
{% highlight bash %}
47-
Create a project for a CMake library using Conan, with dependencies on the
48-
latest versions of fmt and OpenSSL. Install the dependencies of the project.
49-
{% endhighlight %}
46+
<div style="background-color: #f5f5f5; border-left: 4px solid #007bff; padding: 15px 20px; margin: 20px 0; border-radius: 4px; font-style: italic; color: #333;">
47+
"Create a project for a CMake library using Conan, with dependencies on the latest versions of fmt and OpenSSL. Install the dependencies of the project."
48+
</div>
5049
<div style="text-align: center;">
5150
<img src="{{ site.baseurl }}/assets/post_images/2025-12-04/gif3-Create-project-x6.gif"
5251
alt="Create project gif example"/>
@@ -57,9 +56,9 @@ latest versions of fmt and OpenSSL. Install the dependencies of the project.
5756
One of the most powerful features is how easily the Conan MCP server helps you check vulnerabilities and list dependency licenses. Using the previous
5857
project as a base, let’s ask the language model to ensure that the resolved versions have no vulnerabilities and that
5958
all the licenses used by our dependencies are suitable for commercial use.
60-
{% highlight bash %}
61-
Ensure my projects third-party libraries are secure and licensed for commercial use.
62-
{% endhighlight %}
59+
<div style="background-color: #f5f5f5; border-left: 4px solid #007bff; padding: 15px 20px; margin: 20px 0; border-radius: 4px; font-style: italic; color: #333;">
60+
"Ensure my project's third-party libraries are secure and licensed for commercial use."
61+
</div>
6362
<div style="text-align: center;">
6463
<img src="{{ site.baseurl }}/assets/post_images/2025-12-04/gif4-Verify-x10.gif"
6564
alt="Verify project gif example"/>
@@ -70,9 +69,9 @@ Ensure my project’s third-party libraries are secure and licensed for commerci
7069
Let’s see a simpler one: we’re going to try to search for the compiled packages on ConanCenter for a library,
7170
such as zlib, with some options, including the architecture being arm and the shared option set to false, and have it tell
7271
us which versions we have packages for.
73-
{% highlight bash %}
74-
Tell me which versions of zlib packages are available with armv8 architecture and statically linked
75-
{% endhighlight %}
72+
<div style="background-color: #f5f5f5; border-left: 4px solid #007bff; padding: 15px 20px; margin: 20px 0; border-radius: 4px; font-style: italic; color: #333;">
73+
"Tell me which versions of zlib packages are available with armv8 architecture and statically linked"
74+
</div>
7675
<div style="text-align: center;">
7776
<img src="{{ site.baseurl }}/assets/post_images/2025-12-04/gif1-List-versions-x6.gif"
7877
alt="List versions gif example"/>
@@ -82,9 +81,9 @@ Tell me which versions of zlib packages are available with armv8 architecture an
8281
### Manage existing profiles
8382
The Conan MCP Server can also access the list of profiles and is able to query it, so that, for example, if you want to check which
8483
C++ version my Windows profile with MSVC 193 is configured for, you can simply ask:
85-
{% highlight bash %}
86-
Check my Conan profiles and tell me which cppstd is configured in the Windows profile that uses compiler version 193.
87-
{% endhighlight %}
84+
<div style="background-color: #f5f5f5; border-left: 4px solid #007bff; padding: 15px 20px; margin: 20px 0; border-radius: 4px; font-style: italic; color: #333;">
85+
"Check my Conan profiles and tell me which cppstd is configured in the Windows profile that uses compiler version 193."
86+
</div>
8887
<div style="text-align: center;">
8988
<img src="{{ site.baseurl }}/assets/post_images/2025-12-04/gif2-profile-x6.gif"
9089
alt="Search profile gif example"/>

0 commit comments

Comments
 (0)