From Idea to Real Product, Leveraging MCP to Prepare Your Specification with IBM Bob

2026-11-28来源 dev.toEnglish
From Idea to Real Product, Leveraging MCP to Prepare Your Specification with IBM Bob

Background

I usually write down my tasks and add some details in Notion. However, unformatted data can be difficult to read and hard to digest if the tasks or information get bloated. For example, I have a monthly task to log every transaction I make. I would love to summarize each month automatically, but building a custom parsing tool from scratch would take too much time that I simply don't have.

What if I asked AI to prepare the requirements for our application or tool? What if I asked AI to build it? I decided to let AI learn the requirements and data directly by connecting via MCP. Let's get started!

What's MCP?

I'll quote a short explanation of MCP below. If you're keen to learn more, check out the link.

MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems.

Using MCP, AI applications like Claude or ChatGPT can connect to data sources (e.g., local files, databases), tools (e.g., search engines, calculators), and workflows (e.g., specialized prompts)—enabling them to access key information and perform tasks.

Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect electronic devices, MCP provides a standardized way to connect AI applications to external systems.

Preparing & Connecting the MCP

  1. Navigate to your Notion account and open the settings menu.
  2. Go to Notion MCP and select Add an MCP client.
  3. Copy the configuration to .bob/mcp.json.

    { "mcpServers": { "notion": { "url": "https://mcp.notion.com/mcp" } } } 
  4. Navigate to the MCP config in the IBM Bob IDE and ensure you have authenticated your account. Here is a screenshot of a successful MCP configuration and connection:

MCP connected

Preparing Specification

  1. Open a new chat and ensure you have selected Plan mode.
  2. I explained the software requirements and asked IBM Bob to explore the concept and specify the database ID so it could target the database directly. I also asked IBM Bob to look up a specific task title to avoid loading the full context too quickly. Honestly, IBM Bob made a great call by asking whether my assumption was correct, as my initial prompt contained some ambiguity.

    Example prompt:

    I have a database or task list with ID {...}. In this database, analyse tasks named Prefix: Reflection (Month) (Year). Your task now is to prepare the requirements for the tool. Requirements: 1. The tool will fetch the data and write down the details, from unformatted data to formatted data. 2. The detailed data will contain, for each transaction/transfer, the destination and the source (if not available, just null), usually in the format: destination: <value> 3. After that, there is an option to summarize the details, so I can get the monthly report. Either we create a view or another table. Some considerations: 1. Using C# (.NET) - console app 2. Database, either Mongo or just SQLite. 3. Connect the CLI with the Notion API. 4. Try to connect with local database first (containerised) 

    Follow-up question from IBM Bob:

    Follow-up Question

  3. IBM Bob generated a first draft of the plan and tasks. However, it didn't quite satisfy me because it felt incomplete given my varied data formats. I decided to refine the plan with a new prompt since the context was already established.

    Followed up on the task to refine

    We should refine the plan for the Notion API app. 1. Use .NET 10. 2. Explore other formats; the date format should be flexible; some dates might have different date formats. 3. Have a flexible format for parsing. 4. The source is not always null; it's only null when the format is <destination>: value, but if you find another format, it's possible to have a source. Use Notion MCP. 
  4. The refinement cost is around ~4.7 IBM Bob coins. The requirements and tasks now look clear.

Agent Mode

  1. Next, I switched to Agent mode and asked IBM Bob to run each subtask. I started with the first task, which cost around ~4.7 Bob Coins.

    Note: I noticed something unexpected. I expected that after finishing the task, it would try to update the status in the plan document automatically, but it did not—likely because I didn't ask it to do so explicitly. I'll try explicitly asking it to close the task for Sub-Task 2.

  2. After I asked it to close the task, IBM Bob followed the instruction successfully. I think it might be helpful to set a hook so that each sub-task is closed automatically. This step cost around ~12.79 IBM Bob coins, which felt quite high. The reason: it tried to inspect the Notion DLL, meaning it had to read a lot of external data. One key takeaway here: prepare your plan as concisely as possible so that agent mode doesn't explore target libraries or SDKs excessively.

  3. Recognizing that some sub-tasks are token-heavy due to unknown elements, I decided to combine sub-tasks 3 & 4 (along with 5 & 6, out of 6 total sub-tasks) so I wouldn't have to ask the agent to read the plan files repeatedly. The combined tasks 3 & 4 used around 10.54 coins, which felt fair.

  4. Surprisingly, the final sub-tasks only consumed around ~7.83 IBM Bob coins, which was a welcome relief. Now, time to test it! :D

Testing Result

I would say that IBM Bob successfully captured around 60% of my data, as it matched the transaction format I've been using for a year. However, about 20% of the data was unmatched due to a different format. I suppose I only have myself to blame!

I decided to fix the remaining data manually since there wasn't all that much of it. I might need to ask IBM Bob later: if I ever need to fix a larger batch of data, should I have the agent handle it? :D

GitHub logo bervProject / SyncUnformattedData

Sync unformatted data from Notion Database

SyncUnformattedData

A .NET 10 console tool that syncs spending/transfer entries from Notion Reflection pages into a local MongoDB database and reports monthly summaries.

Prerequisites

Requirement Version
.NET SDK 10.0+
Docker / Docker Desktop any recent

Quickstart

# 1. Clone the repo git clone <repo-url> cd SyncUnformattedData # 2. Fill in credentials cp .env.example .env # Edit .env — set NOTION_API_KEY and NOTION_DATABASE_ID # 3. Start MongoDB docker compose up -d # 4. Sync Notion pages into MongoDB dotnet run --project DataSync -- sync

Configuration

Copy .env.example to .env and set the following variables:

Variable Description
NOTION_API_KEY Notion Internal Integration Token
NOTION_DATABASE_ID ID of the Notion database containing Reflection pages
MONGO_CONNECTION_STRING MongoDB connection string (default: mongodb://localhost:27017)

The .env file is loaded automatically at startup. It is git-ignored and must never be committed.

Commands

sync

Fetches all Reflection <Month> <Year> pages from Notion, parses transaction lines, and upserts the…

Lessons Learned

Building this integration with IBM Bob and MCP taught me a few invaluable lessons about working with AI-driven development agents:

  • Context Conciseness Saves Tokens: Letting the agent freely explore external SDKs or massive databases without strict boundaries can quickly drain your token budget. Providing precise file paths and targeted context keeps costs manageable.
  • Explicit Instructions for State Management: AI agents won't always update task lists or documentation unless you explicitly instruct them to do so as part of their "Definition of Done."
  • MCP Bridges the Gap: Using Model Context Protocol made pulling live unstructured data directly from Notion into a local .NET workflow seamless, eliminating the need to write custom API scaffolding from scratch.

Thank You!

Have you experimented with Model Context Protocol (MCP) or AI coding agents like IBM Bob yet? How are you bridging unstructured data sources—like Notion or local files—into your development workflows? I’d love to hear about your wins, your token-budget surprises, or any edge cases you've run into—let me know in the comments below! 👇

原文:https://www.a8q9.cn/en/article/from-idea-to-real-product-leveraging-mcp-to-prepare-your-specification-with-ibm--0fa615.html

相关文章