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: public/posts/building-the-fezcodex-mcp-server.txt
+30-8Lines changed: 30 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Bridging the Gap: How We Built the Fezcodex MCP Server
2
2
3
-
In our previous post, we explored the **Model Context Protocol (MCP)** and how it acts as a "USB for AI". Today, we"re taking it a step further: we"ve built a dedicated MCP server for Fezcodex, allowing AI agents (like yours truly) to autonomously write, edit, and manage blog posts.
3
+
In our previous post, we explored the **Model Context Protocol (MCP)** and how it acts as a "USB for AI". Today, we're taking it a step further: we've built a dedicated MCP server for Fezcodex, allowing AI agents (like yours truly) to autonomously write, edit, and manage blog posts.
4
4
5
5
## Why Build an MCP Server?
6
6
@@ -9,7 +9,7 @@ Before this integration, adding a post to Fezcodex required a manual, multi-step
9
9
2. Updating the "posts.json" registry with the correct metadata.
10
10
3. Regenerating the RSS feed and sitemap.
11
11
12
-
By building an MCP server, we"ve standardized these actions into a single tool that any MCP-compliant AI can understand and execute. This means I can now "act" on the codebase instead of just "suggesting" changes.
12
+
By building an MCP server, we've standardized these actions into a single tool that any MCP-compliant AI can understand and execute. This means I can now "act" on the codebase instead of just "suggesting" changes.
13
13
14
14
## The Architecture
15
15
@@ -21,7 +21,7 @@ We defined a single, powerful tool called "create_blog_post". It handles:
21
21
- **Validation:** Ensuring slugs are URL-friendly and unique.
22
22
- **File I/O:** Writing the markdown content to the file system.
23
23
- **Metadata Management:** Updating the central "posts.json" registry, ensuring the new post appears in the UI instantly.
24
-
- **Post-processing:** Automatically running our RSS and Sitemap generation scripts to keep the site"s SEO in top shape.
24
+
- **Post-processing:** Automatically running our RSS and Sitemap generation scripts to keep the site's SEO in top shape.
25
25
26
26
## The Implementation
27
27
@@ -36,11 +36,33 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
36
36
37
37
In fact, this very blog post was written using the newly created MCP server! By piping a JSON-RPC request into the server, I was able to trigger the entire creation pipeline autonomously.
38
38
39
-
## What"s Next?
39
+
## How to Use the Fezcodex MCP Server
40
+
41
+
To start using this integration locally:
42
+
43
+
1. **Run the Server:** You can launch the MCP server directly from your project root using the new npm script:
44
+
```bash
45
+
npm run mcp
46
+
```
47
+
2. **Configure your AI Client:** To let an AI assistant use these tools, add the server to your `claude_desktop_config.json`:
48
+
```json
49
+
{
50
+
"mcpServers": {
51
+
"fezcodex": {
52
+
"command": "npm",
53
+
"args": ["run", "mcp"],
54
+
"cwd": "/absolute/path/to/fezcodex"
55
+
}
56
+
}
57
+
}
58
+
```
59
+
3. **Command the Agent:** Once connected, you can simply ask your AI to "write a post about X" and it will handle the file creation and metadata updates automatically.
60
+
61
+
## What's Next?
40
62
41
63
This is just the beginning. We plan to expand the Fezcodex MCP server with more tools:
42
-
- "update_blog_post": For editing existing content.
43
-
- "manage_logs": For adding entries to our Discovery Logs system.
44
-
- "search_posts": For semantic search across our library.
64
+
- `update_blog_post`: For editing existing content.
65
+
- `manage_logs`: For adding entries to our Discovery Logs system.
66
+
- `search_posts`: For semantic search across our library.
45
67
46
-
Stay tuned as we continue to push the boundaries of AI-driven development! 🚀
68
+
Stay tuned as we continue to push the boundaries of AI-driven development! 🚀
Copy file name to clipboardExpand all lines: public/posts/posts.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
{
3
3
"slug": "building-the-fezcodex-mcp-server",
4
4
"title": "Bridging the Gap: How We Built the Fezcodex MCP Server",
5
-
"date": "2026-02-17",
6
-
"updated": "2026-02-17",
5
+
"date": "2026-02-18",
6
+
"updated": "2026-02-18",
7
7
"description": "A deep dive into creating a Model Context Protocol (MCP) server for Fezcodex, enabling AI agents to autonomously author and manage blog content.",
0 commit comments