You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mcp.md
+54-12Lines changed: 54 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,32 +10,49 @@ hide:
10
10
11
11
## What is MCP?
12
12
13
-
The **Model Context Protocol (MCP)** is an open standard that enables AI assistants to securely connect to external context. Think of it as a bridge that allows AI models to access real-time, specialized information beyond their training data.
13
+
The **Model Context Protocol (MCP)** is an open standard that enables AI assistants to securely connect to external
14
+
context. Think of it as a bridge that allows AI models to access real-time, specialized information beyond their
15
+
training data.
14
16
15
-
When you connect an AI assistant to an MCP server, it gains the ability to query that server for relevant context, making responses more accurate and up-to-date.
17
+
When you connect an AI assistant to an MCP server, it gains the ability to query that server for relevant context,
18
+
making responses more accurate and up-to-date.
16
19
17
-
## How MCP helps you learn and use the Cadwork Python API
The Cadwork Python API documentation is available as an MCP server, which transforms how you can learn and work with the API:
22
+
## Demo
20
23
21
-
-**Contextual Answers**: Ask questions in natural language and get responses that reference the actual API documentation, including function signatures, parameters, and code examples.
22
-
-**Code Generation**: Request script snippets for specific tasks. The AI can generate code using the correct Cadwork API functions because it has direct access to the documentation.
23
-
-**Discovery**: Explore available modules and functions by simply asking "What functions are available for geometry operations?" or "How do I work with elements?"
24
-
-**Troubleshooting**: Describe an error or unexpected behavior, and get help that's grounded in the actual API specifications.
24
+
See how easy it is to use the Cadwork Python API with an MCP-enabled AI assistant:
25
25
26
+
{width=900}
27
+
28
+
You can use the Cadwork Python MCP for:
29
+
30
+
-**Contextual Answers**: Ask questions in natural language and get responses that reference the actual API
31
+
documentation, including function signatures, parameters, and code examples.
32
+
-**Code Generation**: Request script snippets for specific tasks. The AI can generate code using the correct Cadwork
33
+
API functions because it has direct access to the documentation.
34
+
-**Discovery**: Explore available modules and functions by simply asking "What functions are available for geometry
35
+
operations?" or "How do I work with elements?"
36
+
-**Troubleshooting**: Describe an error or unexpected behavior, and get help that's grounded in the actual API
37
+
specifications.
26
38
27
39
## Setup instructions
28
40
29
-
To use the Cadwork Python API documentation as an MCP server, you need to configure your AI assistant to connect to it. Here are the most common ai code assistants and how to configure them:
41
+
To use the Cadwork Python API documentation as an MCP server, you need to configure your AI assistant to connect to it.
42
+
Here are the most common ai code assistants and how to configure them:
43
+
44
+
30
45
31
46
??? note "Claude Desktop"
47
+
32
48
Add the following to your Claude Desktop configuration file via the UI:
Once added, the Cadwork Python API documentation will be automatically available when you interact with Gemini CLI.
75
117
76
-
Once configured, prompt your request to your AI coding assistant and it will automatically query the Cadwork Python API documentation to help you write grounded scripts to our Cadwork Python API.
0 commit comments